コード例 #1
0
ファイル: js.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     while (ob_get_level()) {
         ob_end_clean();
     }
 }
コード例 #2
0
ファイル: uploadimage.php プロジェクト: lukamacun/CMS
 public function __construct()
 {
     parent::__construct();
     if (empty($this->user)) {
         die('Not allowed!');
     }
 }
コード例 #3
0
ファイル: process.php プロジェクト: nunodotferreira/CMS-2
 public function __construct()
 {
     parent::__construct();
     error_reporting(E_ALL);
     $this->load->helper('cookie');
     $this->load->helper('text');
 }
コード例 #4
0
ファイル: connector.php プロジェクト: lukamacun/CMS
 public function __construct()
 {
     parent::__construct();
     //require login
     if (!$this->loginmanager->is_logged_in()) {
         redirect($this->loginmanager->login_url);
     }
 }
コード例 #5
0
ファイル: statistics.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     //require login
     if (!$this->loginmanager->is_logged_in()) {
         redirect($this->loginmanager->login_url);
     }
     $this->templatemanager->set_title(__("Statistics"));
 }
コード例 #6
0
ファイル: auth.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     $this->load->library('email');
     $this->load->helper('string');
     $this->templatemanager->popup(true);
     //hide sidebar, header, footer and notifications
     //	$this->templatemanager->set_template_name(Setting::value('default_template', 'default'));
 }
コード例 #7
0
ファイル: backup.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     //require login
     if (!$this->loginmanager->is_logged_in()) {
         redirect($this->loginmanager->login_url);
     }
     $this->load->library('zip');
     $this->load->dbutil();
 }
コード例 #8
0
ファイル: images.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     /*$allowed = $this->loginmanager->is_administrator();
     		if (!$allowed)
     		{
     			$login_link = anchor($this->loginmanager->login_url, "Log in");
     			$this->loginmanager->showError("Only administrators are allowed in here, not " . $this->loginmanager->user->role ."s");
     		}*/
 }
コード例 #9
0
ファイル: assets.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     //require login
     if (!$this->loginmanager->is_logged_in()) {
         redirect($this->loginmanager->login_url);
     }
     //if can edit everything
     //if ($this->user->can('edit_templates'))
     //	redirect('administration/templates');
 }
コード例 #10
0
ファイル: connector.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     //require login
     if (!$this->loginmanager->is_logged_in()) {
         redirect($this->loginmanager->login_url);
     }
     if (defined('DEMO')) {
         show_error(__("This function is disabled in online demo!"));
     }
 }
コード例 #11
0
ファイル: settings.php プロジェクト: lukamacun/CMS
 public function __construct()
 {
     parent::__construct();
     $allowed = $this->loginmanager->is_logged_in();
     if (!$allowed) {
         redirect($this->loginmanager->login_url);
     }
     if (!$this->user->can('edit_settings')) {
         $this->templatemanager->notify_next("You don't have enough permissions to edit website settings!", 'failure');
         redirect('administration/dashboard');
     }
 }
コード例 #12
0
ファイル: userroles.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     //require login
     if (!$this->loginmanager->is_logged_in()) {
         redirect($this->loginmanager->login_url);
     }
     if (!$this->user->can('manage_user_roles')) {
         $this->templatemanager->notify_next("You are not allowed to edit user roles!", 'failure');
         redirect('administration/dashboard');
     }
     $this->templatemanager->set_title(__("Manage roles"));
 }
コード例 #13
0
ファイル: templates.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     //require login
     if (!$this->loginmanager->is_logged_in()) {
         redirect($this->loginmanager->login_url);
     }
     if (!$this->user->can('edit_templates')) {
         if ($this->user->can('edit_all_assets') || $this->user->can('edit_assets')) {
             redirect('administration/assets');
         } else {
             show_error('You are not allowed to edit templates.');
         }
     }
     $this->templatemanager->set_title("Manage Templates");
 }
コード例 #14
0
ファイル: nothing.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
 }
コード例 #15
0
ファイル: plugins.php プロジェクト: jotavejv/CMS
 public function __construct()
 {
     parent::__construct();
     $this->templatemanager->set_title(__('Plugins'));
 }