예제 #1
0
파일: user.php 프로젝트: anjuna/nipple
 function __construct()
 {
     parent::__construct();
     auth::handleLogin();
     $type = session::get('role');
     if ($type != 'owner') {
         session::destroy();
         header('Location: ' . URL . 'index');
     }
 }
예제 #2
0
파일: note.php 프로젝트: anjuna/nipple
 public function __construct()
 {
     parent::__construct();
     auth::handleLogin();
     $this->view->js = array('note/js/default.js');
 }