コード例 #1
0
 public function before()
 {
     parent::before();
     if (!\Auth::check()) {
         \Output::redirect('myauth');
     }
     \Asset::remove_path('assets/');
     \Asset::add_path('assets/uploadify/');
     $this->template->css = \Asset::css(array('style.css'), array(), 'layout', false);
     $this->template->js = \Asset::js(array('jquery-1.3.2.min.js', 'swfobject.js', 'jquery.uploadify.v2.1.0.min.js', 'jquery.application.js'), array(), 'layout', false);
 }
コード例 #2
0
 public function before()
 {
     parent::before();
     try {
         if (!$this->user) {
             \Session::set_flash('error', "Please login to access this page.");
             //non logged in users must login first
             $destination = Uri::create(Input::uri());
             Response::redirect(Uri::create('user/login', array(), array('destination' => $destination)));
             //require login first
         }
     } catch (Exception $e) {
         \Session::set_flash('error', $e->getMessage());
         \Response::redirect('/welcome/404');
     }
 }
コード例 #3
0
ファイル: myauth.php プロジェクト: huglester/fuel-uploadify
 public function before()
 {
     parent::before();
 }