Exemple #1
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     // Permissions
     if (!$this->cp->allowed_group('can_access_content', 'can_access_files')) {
         show_error(lang('unauthorized_access'));
     }
     $this->lang->loadfile('filemanager');
     $this->load->library('api');
     $this->load->library('filemanager');
     $this->load->model('file_model');
     $this->load->model('file_upload_preferences_model');
     $this->cp->add_to_head($this->view->head_link('css/file_browser.css'));
     // Get upload dirs
     $upload_dirs = $this->filemanager->fetch_upload_dirs(array('ignore_site_id' => FALSE));
     foreach ($upload_dirs as $row) {
         $this->_upload_dirs[$row['id']] = $row;
     }
     if (AJAX_REQUEST) {
         $this->output->enable_profiler(FALSE);
     }
     $nav['file_manager'] = BASE . AMP . 'C=content_files' . AMP . 'M=index';
     if ($this->cp->allowed_group('can_admin_upload_prefs')) {
         $nav['file_upload_preferences'] = BASE . AMP . 'C=content_files' . AMP . 'M=file_upload_preferences';
         $nav['watermark_prefs'] = BASE . AMP . 'C=content_files' . AMP . 'M=watermark_preferences';
         //$nav['batch_upload']	= BASE.AMP.'C=content_files'.AMP.'M=batch_upload';
     }
     $this->cp->set_right_nav($nav);
     $this->_base_url = BASE . AMP . 'C=content_files';
 }
Exemple #2
0
 /**
  * Admin::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     $this->load->model('admin/admin_model', 'admin');
     $this->session->set_flashdata('redirect', current_url());
 }
    /**
     * Constructor
     */
    function __construct()
    {
        parent::__construct();
        if (FALSE === ($this->id = $this->auth_id())) {
            show_error(lang('unauthorized_access'));
        }
        // Load the language files
        $this->lang->loadfile('myaccount');
        $this->lang->loadfile('member');
        $this->load->model('member_model');
        // Fetch username/screen name
        $query = $this->member_model->get_member_data($this->id, array('username', 'screen_name'));
        if ($query->num_rows() == 0) {
            show_error(lang('unauthorized_access'));
        }
        if ($this->cp->allowed_group('can_edit_html_buttons')) {
            $this->javascript->output('
				$("#myaccountHtmlButtonsLink").show(); // JS only feature, its hidden by default
			');
        }
        $this->view->message = '';
        $this->view->id = $this->id;
        $this->username = $query->row('screen_name') == '' ? $query->row('username') : $query->row('screen_name');
        $this->view->member_username = $this->username;
        // Set self_edit to determine whether or not someone else is editing
        $this->self_edit = (int) $this->id === (int) $this->session->userdata('member_id') ? TRUE : FALSE;
    }
Exemple #4
0
 /**
  * Constructor
  *
  * @access	public
  */
 function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_content')) {
         show_error(lang('unauthorized_access'));
     }
 }
 /**
  * Searchengine::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->search_index = APPPATH . 'cache/search_index/index';
     $this->load->library('zend');
     $this->zend->load('Zend/Search/Lucene');
     Zend_Search_Lucene_Analysis_Analyzer::setDefault(new Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8());
 }
Exemple #6
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->lang->loadfile('admin');
     $this->lang->loadfile('admin_content');
     $this->cp->set_breadcrumb(BASE . AMP . 'C=admin_content', lang('admin_content'));
     // Note- no access check here to allow the publish page access to categories
 }
 /**
  * Constructor
  *
  * @access	public
  */
 function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_addons', 'can_access_plugins')) {
         show_error(lang('unauthorized_access'));
     }
     $this->lang->loadfile('admin');
 }
Exemple #8
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     $this->load->model('user/user_model', 'user');
     $this->load->model('admin/admin_model', 'admin');
     $this->load->helper('load_controller');
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('accessories');
     $this->human_names = $this->_fetch_human_names();
     $this->load->library('addons');
     $files = $this->addons->get_files();
 }
Exemple #10
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_tools', 'can_access_utilities')) {
         show_error(lang('unauthorized_access'));
     }
     $this->lang->loadfile('tools');
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_addons', 'can_access_modules')) {
         show_error(lang('unauthorized_access'));
     }
     $this->load->model('addons_model');
     $this->lang->loadfile('modules');
 }
Exemple #12
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     // Berechtigungsprüfung TEIL 1: eingelogged und Admin
     if (!$this->cp_auth->is_logged_in_admin()) {
         redirect('admin', 'refresh');
     }
 }
Exemple #13
0
 /**
  * Maps::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->api_key = 'AIzaSyCIdNCnXP0RCrhpGxjGuS_qZEnz7QCLns4';
     $this->lat_lng_1 = '50.143521';
     $this->lat_lng_2 = '8.502216';
     $this->zoom = '14';
     $this->_set_config();
 }
Exemple #14
0
 /**
  * Maintenance::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('maintenance/maintenance_model', 'maintain');
     $this->load->model('module/module_model', 'module');
     $this->load->library('CP_auth');
     $this->load->model('admin/admin_model', 'admin');
     $this->load->model('einsatz/einsatz_model', 'einsatz');
 }
Exemple #15
0
 /**
  * Pages::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->model('pages/pages_model', 'm_pages');
     $this->load->model('menue/menue_model', 'm_menue');
     $this->load->model('fahrzeug/fahrzeug_model', 'm_fahrzeug');
     $this->load->model('mannschaft/mannschaft_model', 'm_mannschaft');
     $this->load->library('weather');
     $this->load->helper('load_controller');
 }
Exemple #16
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_tools', 'can_access_logs')) {
         show_error(lang('unauthorized_access'));
     }
     $this->load->model('tools_model');
     $this->lang->loadfile('tools');
     $this->load->vars(array('controller' => 'tools/tools_logs'));
 }
Exemple #17
0
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     // Can't access addons? Can't see this page!
     if (!$this->cp->allowed_group('can_access_addons')) {
         show_error(lang('unauthorized_access'));
     }
     $this->lang->loadfile('addons');
     $this->load->model('addons_model');
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->perpage = $this->config->item('memberlist_row_limit');
     if (!$this->cp->allowed_group('can_access_members')) {
         show_error(lang('unauthorized_access'));
     }
     $this->lang->loadfile('members');
     $this->load->model('member_model');
 }
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     $this->load->model('module/module_model', 'module');
     $this->load->model('admin/admin_model', 'admin');
     // Berechtigungsprüfung TEIL 1: eingelogged und Admin
     if (!$this->cp_auth->is_logged_in_admin()) {
         redirect('admin', 'refresh');
     }
     $this->session->set_flashdata('redirect', current_url());
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_tools', 'can_access_comm')) {
         show_error(lang('unauthorized_access'));
     }
     if (file_exists(PATH_MOD . 'mailinglist/mod.mailinglist.php') && $this->db->table_exists($this->db->dbprefix . 'mailing_lists') === TRUE) {
         $this->mailinglist_exists = TRUE;
     }
     $this->load->model('communicate_model');
     $this->lang->loadfile('communicate');
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->installed_modules = $this->cp->get_installed_modules();
     $this->allowed_channels = $this->functions->fetch_assigned_channels();
     $this->publish_base_uri = 'C=content_publish';
     $this->publish_base_url = BASE . AMP . $this->publish_base_uri;
     $this->edit_base_uri = 'C=content_edit';
     $this->edit_base_url = BASE . AMP . $this->edit_base_uri;
     $this->load->library('api');
     $this->load->model('channel_model');
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_content')) {
         show_error(lang('unauthorized_access'));
     }
     $this->load->library('api');
     $this->load->library('spellcheck');
     $this->load->model('channel_model');
     $this->load->helper(array('typography', 'spellcheck'));
     $this->cp->get_installed_modules();
     $this->_assigned_channels = $this->functions->fetch_assigned_channels();
 }
 /**
  * Fahrzeug_Admin::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     $this->load->model('fahrzeug/fahrzeug_model', 'fahrzeug');
     $this->load->model('admin/admin_model', 'admin');
     // Berechtigungsprüfung TEIL 1: eingelogged und Admin
     if (!$this->cp_auth->is_logged_in_admin()) {
         redirect('admin', 'refresh');
     }
     $this->upload_path = CONTENT_IMG_FAHRZEUG_UPLOAD_PATH;
     if (ENVIRONMENT == 'development') {
         $this->output->enable_profiler(TRUE);
     }
 }
Exemple #24
0
 /**
  * Constructor
  *
  * @access	public
  */
 function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_tools', 'can_access_data')) {
         show_error(lang('unauthorized_access'));
     }
     $this->load->model('tools_model');
     $this->lang->loadfile('tools_data');
     $this->sub_breadcrumbs['sql_view_database'] = BASE . AMP . 'C=tools_data' . AMP . 'M=sql_view_database';
     // Only show Database Query Form link for Super Admins
     if ($this->session->userdata('group_id') == '1') {
         $this->sub_breadcrumbs['sql_query_form'] = BASE . AMP . 'C=tools_data' . AMP . 'M=sql_query_form';
     }
     $this->sub_breadcrumbs = array_merge($this->sub_breadcrumbs, array('sql_status' => BASE . AMP . 'C=tools_data' . AMP . 'M=sql_status', 'sql_system_vars' => BASE . AMP . 'C=tools_data' . AMP . 'M=sql_system_vars', 'sql_processlist' => BASE . AMP . 'C=tools_data' . AMP . 'M=sql_processlist'));
 }
 /**
  * Einsatz_Admin::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     $this->load->model('einsatz/einsatz_model', 'einsatz');
     $this->load->model('einsatz/einsatz_cue_model', 'einsatz_cue');
     $this->load->model('fahrzeug/fahrzeug_model', 'fahrzeug');
     $this->load->model('admin/admin_model', 'admin');
     $this->load->model('autosuggest/autosuggest_model', 'autosuggest');
     // Berechtigungsprüfung TEIL 1: eingelogged und Admin
     if (!$this->cp_auth->is_logged_in_admin()) {
         redirect('admin', 'refresh');
     }
     $this->upload_path = CONTENT_IMG_EINSATZ_UPLOAD_PATH;
 }
 /**
  * Mannschaft_Admin::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     $this->load->model('mannschaft/mannschaft_model', 'mannschaft');
     $this->load->model('mannschaft/dienstgrad_model', 'dienstgrad');
     $this->load->model('mannschaft/team_model', 'team');
     $this->load->model('mannschaft/funktion_model', 'funktion');
     $this->load->model('mannschaft/abteilung_model', 'abteilung');
     $this->load->model('admin/admin_model', 'admin');
     // Berechtigungsprüfung TEIL 1: eingelogged und Admin
     if (!$this->cp_auth->is_logged_in_admin()) {
         redirect('admin', 'refresh');
     }
     $this->upload_path = CONTENT_IMG_MANNSCHAFT_UPLOAD_PATH;
 }
Exemple #27
0
 /**
  * Menue_Admin::__construct()
  * 
  * @return
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('CP_auth');
     $this->load->model('admin/admin_model', 'admin');
     $this->load->model('menue/menue_model', 'menue');
     // Berechtigungsprüfung TEIL 1: eingelogged und Admin
     if (!$this->cp_auth->is_logged_in_admin()) {
         redirect('admin', 'refresh');
     }
     // Menübereich setzen
     if (!strpos(uri_string(), 'backend')) {
         $this->area = 'frontend';
     } else {
         $this->area = 'backend';
     }
     $this->session->set_flashdata('redirect', current_url());
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     if (!$this->cp->allowed_group('can_access_design')) {
         show_error(lang('unauthorized_access'));
     }
     $this->load->model('template_model');
     $this->lang->loadfile('design');
     $this->javascript->compile();
     $this->sub_breadcrumbs = array();
     if ($this->cp->allowed_group('can_admin_templates')) {
         $this->sub_breadcrumbs = array_merge($this->sub_breadcrumbs, array('global_variables' => BASE . AMP . 'C=design' . AMP . 'M=global_variables', 'snippets' => BASE . AMP . 'C=design' . AMP . 'M=snippets', 'sync_templates' => BASE . AMP . 'C=design' . AMP . 'M=sync_templates'));
     }
     // This is worded as "Can administrate design preferences" in member group management.
     if ($this->cp->allowed_group('can_admin_design')) {
         $this->sub_breadcrumbs = array_merge($this->sub_breadcrumbs, array('global_template_preferences' => BASE . AMP . 'C=design' . AMP . 'M=global_template_preferences', 'template_preferences_manager' => BASE . AMP . 'C=design' . AMP . 'M=template_preferences_manager'));
     }
     $this->view->wiki_installed = (bool) $this->db->table_exists('wikis');
     $this->view->forum_installed = (bool) $this->db->table_exists('forums');
 }
 public function __construct()
 {
     parent::__construct();
     // Permissions
     if (!$this->cp->allowed_group('can_access_content')) {
         show_error(lang('unauthorized_access'));
     }
     $this->load->library('filemanager');
     $this->load->model(array('file_model', 'file_upload_preferences_model'));
     // Get upload dirs
     $upload_dirs = $this->filemanager->fetch_upload_dirs();
     foreach ($upload_dirs as $row) {
         $this->_upload_dirs[$row['id']] = $row;
     }
     // Turn off the profiler, everything is in a modal
     $this->output->enable_profiler(FALSE);
     $this->_base_url = BASE . AMP . 'C=content_files_modal';
     // Clear out the preloaded core javacript files
     $this->cp->requests = array();
     $this->cp->loaded = array();
 }
Exemple #30
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->lang->loadfile('sites');
     /** --------------------------------
     		/**  Is the MSM enabled?
     		/** --------------------------------*/
     if ($this->config->item('multiple_sites_enabled') !== 'y') {
         show_error(lang('unauthorized_access'));
     }
     /** --------------------------------
     		/**  Are they trying to switch?
     		/** --------------------------------*/
     $site_id = $this->input->get_post('site_id');
     if ($this->router->fetch_method() == 'index' && $site_id && is_numeric($site_id)) {
         $this->_switch_site($site_id);
         return;
     }
     if ($this->router->fetch_method() != 'index') {
         $this->load->library('sites');
         $this->lang->loadfile('sites_cp');
         $this->lang->loadfile('admin_content');
     }
 }