v7‰PNG  IHDR Ÿ f Õ†C1 sRGB ®Îé gAMA ± üa pHYs à ÃÇo¨d GIDATx^íÜL”÷ð÷Yçªö("Bh_ò«®¸¢§q5kÖ*:þ0A­ºšÖ¥]VkJ¢M»¶f¸±8\k2íll£1]q®ÙÔ‚ÆT home/ajdemo/public_html/mempro/library/Am/Controller/Plugin.php000064400000002651152101641070020630 0ustar00di = $di; } public function preDispatch(Zend_Controller_Request_Abstract $request) { // check if we need to handle admin auth if (stripos($this->getRequest()->getControllerName(), 'admin')===0) { defined('AM_ADMIN') || define('AM_ADMIN', true); if (($this->di->authAdmin->getUserId() <= 0) && $request->getControllerName() != 'admin-auth') { $request->setControllerName('admin-auth')->setActionName('index')->setModuleName('default'); } // check for maintenance mode } elseif ($msg = $this->di->config->get('maintenance')) { if (!$this->di->authAdmin->getUserId()) return amMaintenance($msg); } // check if we are accessing disabled module $module = $request->getModuleName(); if ($module != 'default') { if (!$this->di->modules->isEnabled($module)) throw new Am_Exception_InputError(___('You are trying to access disabled module [%s]', htmlentities($module))); } } }