示例#1
0
文件: tags.php 项目: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfLoggedOut();
     parent::redirectIfWebView();
     // Load user marks model
     $this->load->model('tags_model', 'tags');
 }
示例#2
0
文件: export.php 项目: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfLoggedOut();
     // If we can't find a user id, get them out of here
     if (!isset($this->user_id) || !is_numeric($this->user_id)) {
         header('Location: /');
         exit;
     }
     // Set default success to false
     $this->data['success'] = false;
 }
示例#3
0
文件: user.php 项目: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfLoggedOut();
     parent::redirectIfNotInternalAJAX();
     parent::redirectIfInvalidCSRF();
     // If we can't find a user id, get them out of here
     if (!isset($this->user_id) || !is_numeric($this->user_id)) {
         header('Location: /');
         exit;
     }
     // Set default success to false
     $this->data['success'] = false;
     // Load user model
     $this->load->model('users_model', 'user');
 }
示例#4
0
文件: help.php 项目: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfLoggedOut();
 }