예제 #1
0
파일: marks.php 프로젝트: iweave/unmark
 public function __construct()
 {
     $this->localized = true;
     parent::__construct();
     $this->redirectIfLoggedOut();
     $this->load->model('users_to_marks_model', 'user_marks');
 }
예제 #2
0
파일: labels.php 프로젝트: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     $this->redirectIfLoggedOut();
     $this->redirectIfWebView();
     // Load user marks model
     $this->load->model('labels_model', 'labels');
 }
예제 #3
0
파일: register.php 프로젝트: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfNotInternal();
     parent::redirectIfLoggedIn();
     if ($this->config->item('plain_enable_registrations') === false) {
         show_error('Public registrations have been disabled.');
     }
 }
예제 #4
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;
 }
예제 #5
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');
 }
예제 #6
0
파일: json.php 프로젝트: iweave/unmark
 public function __construct()
 {
     parent::__construct();
 }
예제 #7
0
파일: help.php 프로젝트: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfLoggedOut();
 }
예제 #8
0
파일: tools.php 프로젝트: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfNotInternalAJAX();
 }
예제 #9
0
파일: cron.php 프로젝트: iweave/unmark
 public function __construct()
 {
     parent::__construct();
     parent::redirectIfNotCommandLine();
 }