コード例 #1
0
ファイル: error.php プロジェクト: uzura8/flockbird
 public function before()
 {
     if (defined('IS_ADMIN') && IS_ADMIN) {
         $this->template = 'admin::template';
     }
     parent::before();
 }
コード例 #2
0
ファイル: Auth.php プロジェクト: ariol/adminshop
 public function before()
 {
     if (!Auth::instance()->logged_in()) {
         $this->redirect('/');
     }
     parent::before();
 }
コード例 #3
0
ファイル: student.php プロジェクト: xXLXx/ddc
 public function before()
 {
     $returnData = parent::before();
     if (Model_User::is_current_user('teacher')) {
         Response::redirect('site/404');
     }
     return $returnData;
 }
コード例 #4
0
ファイル: facebook.php プロジェクト: uzura8/flockbird
 public function before()
 {
     parent::before();
     if (!FBD_FACEBOOK_APP_ID) {
         throw new HttpNotFoundException();
     }
     Config::load('facebook', 'facebook');
     $this->fb = new Facebook(Config::get('facebook.init'));
 }
コード例 #5
0
ファイル: auth.php プロジェクト: uzura8/flockbird
 public function before()
 {
     if (!conf('auth.isEnabled')) {
         throw new \HttpNotFoundException();
     }
     parent::before();
     if (!isset($this->_config)) {
         $this->_config = Config::load('opauth', 'opauth');
     }
 }
コード例 #6
0
ファイル: Backend.php プロジェクト: piotrtheis/ko3
 public function after()
 {
     View::set_global('title', $this->title);
     View::set_global('keywords', $this->keywords);
     View::set_global('meta_title', $this->meta_title);
     View::set_global('meta_description', $this->meta_description);
     View::set_global('og_title', $this->og_title);
     View::set_global('og_image', $this->og_image);
     View::set_global('og_description', $this->og_description);
     View::set_global('twitter_title', $this->twitter_title);
     View::set_global('twitter_image', $this->twitter_image);
     View::set_global('twitter_description', $this->twitter_description);
     View::set_global('asets', $this->_assets->render());
     View::set_global('breadcrumbs', $this->_breadcrumbs);
     parent::after();
 }
コード例 #7
0
ファイル: setting.php プロジェクト: uzura8/flockbird
 public function before()
 {
     parent::before();
 }
コード例 #8
0
ファイル: admin.php プロジェクト: jonlb/JxCMS
 public function after()
 {
     parent::after();
 }