public function run(FilterChain $oFilterChain)
 {
     if (Core::app()->request()->isAjaxRequest()) {
         $oFilterChain->next();
     } else {
         throw new RxException('Your request is not valid.', 400);
     }
 }
 public function run(FilterChain $oFilterChain)
 {
     $aDb = Core::app()->config()->getCache();
     foreach ($aDb as $k => $val) {
         Manager::getInstance()->getCache()->add(Cache::factory($val['Driver'], $val['Params']), $k);
     }
     $oFilterChain->next();
 }
 public function run(FilterChain $oFilterChain)
 {
     if (Toolkit::getInstance()->auth->checkAdminAccess()) {
         $oFilterChain->next();
     } else {
         header("Location: " . Toolkit::getInstance()->auth->loginUrl);
         Core::app()->hardEnd();
     }
 }
 public function run(FilterChain $oFilterChain)
 {
     $aDb = Core::app()->config()->getDb();
     foreach ($aDb as $k => $val) {
         $oDb = new Db($val['ConnectionString'], $val['Username'], $val['Password'], $val['Params']);
         $oDb->open();
         Manager::getInstance()->getDb()->add($oDb, $k);
     }
     $oFilterChain->next();
 }
 public function run(FilterChain $oFilterChain)
 {
     if (count($this->getParams())) {
         foreach ($this->getParams() as $key => $val) {
             $class_name = $val['class'];
             unset($val['class']);
             Toolkit::getInstance()->addToolkit($key, new $class_name($val));
         }
     }
     $oFilterChain->next();
 }