Exemple #1
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group('can_access_comm')) {
         show_error(lang('unauthorized_access'));
     }
 }
Exemple #2
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group('can_access_translate')) {
         show_error(lang('unauthorized_access'));
     }
     if (!is_really_writable(APPPATH . 'translations/')) {
         $not_writeable = lang('translation_dir_unwritable');
     }
 }
Exemple #3
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group('can_access_addons') or !ee()->cp->allowed_group('can_admin_addons')) {
         show_error(lang('unauthorized_access'));
     }
     ee()->lang->loadfile('addons');
     $this->params['perpage'] = $this->perpage;
     // Set a default
     // Add in any submitted search phrase
     ee()->view->search_value = ee()->input->get_post('search');
     $this->base_url = ee('CP/URL')->make('utilities/extensions');
     ee()->load->library('addons');
     ee()->load->helper(array('file', 'directory'));
 }
Exemple #4
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if (!ee()->cp->allowed_group('can_access_data')) {
         show_error(lang('unauthorized_access'));
     }
     // Do the forums exist?
     if (ee()->config->item('forum_is_installed') == "y") {
         $query = ee()->db->query("SELECT COUNT(*) AS count FROM exp_modules WHERE module_name = 'Forum'");
         if ($query->row('count') > 0) {
             $this->forums_exist = TRUE;
             $this->sources = array_merge($this->sources, array('forums', 'forum_topics'));
         }
     }
 }