コード例 #1
0
ファイル: account.php プロジェクト: Kheros/Plexis
 public function __construct()
 {
     // Build the Core Controller
     parent::__construct();
     // Make the user info a little easier to get
     $this->user = $this->User->data;
 }
コード例 #2
0
ファイル: admin.php プロジェクト: Kheros/Plexis
 public function __construct()
 {
     // Build the Core Controller
     parent::__construct();
     // Load user data
     $this->user = $this->User->data;
     // Make sure the user has admin access'
     if (!$this->User->has_permission('admin_access')) {
         redirect(SITE_URL);
         die;
     }
 }
コード例 #3
0
ファイル: ajax.php プロジェクト: Kheros/Plexis
 public function __construct()
 {
     // Build the Core Controller
     parent::__construct(true, false);
     // Get our user data into an array
     $this->user = $this->User->data;
     // Make sure the request is an ajax request, and came from this website!
     if (!$this->Input->is_ajax()) {
         die('No direct linking allowed');
     } elseif (strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST']) === false) {
         $this->output(false, 'Unauthorized');
         die;
     }
 }
コード例 #4
0
ファイル: support.php プロジェクト: Kheros/Plexis
 public function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
ファイル: news.php プロジェクト: Kheros/Plexis
 public function __construct()
 {
     parent::__construct();
     // Load the News Model
     $this->load->model('News_Model', 'news');
 }
コード例 #6
0
ファイル: forum.php プロジェクト: Kheros/Plexis
 public function __construct()
 {
     parent::__construct();
     // Load the Forum Model, instance as $this->forum
     $this->load->model('Forum_Model', 'forum');
 }