public function routeShutdown(Zend_Controller_Request_Abstract $request) { parent::routeStartup($request); /** * * Отключение плагинов Evil_Acces && Evil_Auth * для экономии запросов, при сливе любого трафика на определенные контроллеры * Например это нужно чтоб считать какуюнить левую анонимную статистику и не засирать бд * ну и для той цели которая нужна мне) * @author NuR */ $config = Zend_Registry::get('config'); $ingore = Evil_Array::get('evil.auth.ignoreControllers', $config); if (is_array($ingore)) { if (in_array($request->getControllerName(), $ingore)) { return null; } } $this->init(); if (Zend_Controller_Front::getInstance()->getDispatcher()->isDispatchable($request)) { if ($this->denied($request->getParam('id'), $request->getControllerName(), $request->getActionName())) { /** * я считаю что так будет лучше * @author NuR */ $this->_response->setRedirect('/'); // throw new Evil_Exception ( 'Access Denied for ' . $request->getControllerName () . '::' . $request->getActionName (), 403 ); } } else { throw new Evil_Exception('Not found ' . $request->getControllerName() . '::' . $request->getActionName(), 404); } }
public function routeShutdown(Zend_Controller_Request_Abstract $request) { parent::routeStartup($request); $config = Zend_Registry::get('config'); $ingore = Evil_Array::get('evil.auth.ignoreControllers', $config); if (is_array($ingore)) { if (in_array($request->getControllerName(), $ingore)) { return null; } } $this->init(); $this->audit(); }
/** * @description reset keys * @param int $left * @param int $right * @return void * @author Se# * @version 0.0.1 */ public static function resetKeys($left = 0, $right = 0) { self::$_lk = (int) $left; self::$_rk = (int) $right; }