/**
  * Class constructor - setup paging and keyboard shortcuts as well as
  * load various libraries
  *
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('template');
     $this->load->library('assets');
     $this->load->library('ui/contexts');
     // Pagination config
     $this->pager = array('full_tag_open' => '<div class="pagination pagination-right"><ul>', 'full_tag_close' => '</ul></div>', 'next_link' => '&rarr;', 'prev_link' => '&larr;', 'next_tag_open' => '<li>', 'next_tag_close' => '</li>', 'prev_tag_open' => '<li>', 'prev_tag_close' => '</li>', 'first_tag_open' => '<li>', 'first_tag_close' => '</li>', 'last_tag_open' => '<li>', 'last_tag_close' => '</li>', 'cur_tag_open' => '<li class="active"><a href="#">', 'cur_tag_close' => '</a></li>', 'num_tag_open' => '<li>', 'num_tag_close' => '</li>');
     $this->limit = $this->settings_lib->item('site.list_limit');
     // load the keyboard shortcut keys
     $shortcut_data = array('shortcuts' => config_item('ui.current_shortcuts'), 'shortcut_keys' => $this->settings_lib->find_all_by('module', 'core.ui'));
     Template::set('shortcut_data', $shortcut_data);
     // Profiler Bar?
     if (ENVIRONMENT == 'development') {
         if ($this->settings_lib->item('site.show_profiler') and has_permission('Bonfire.Profiler.View')) {
             // Profiler bar?
             if (!$this->input->is_cli_request() and !$this->input->is_ajax_request()) {
                 $this->load->library('Console');
                 $this->output->enable_profiler(TRUE);
             }
         }
     }
     // Basic setup
     Template::set_theme($this->config->item('template.admin_theme'), 'junk');
 }
Example #2
0
 /**
  * Constructor
  *
  * @return void
  */
 public function __construct()
 {
     parent::__construct();
     $this->load->library('form_validation');
     $this->load->model('profile_model', null, true);
     //$this->lang->load('profile');
     Assets::add_module_js('profile', 'profile.js');
 }
 /**
  * Class constructor - setup paging and keyboard shortcuts as well as
  * load various libraries
  *
  */
 public function __construct()
 {
     $this->autoload['libraries'][] = 'ui/contexts';
     parent::__construct();
     // Pagination config
     $this->pager = array('full_tag_open' => '<div class="pagination pagination-right"><ul>', 'full_tag_close' => '</ul></div>', 'next_link' => '&rarr;', 'prev_link' => '&larr;', 'next_tag_open' => '<li>', 'next_tag_close' => '</li>', 'prev_tag_open' => '<li>', 'prev_tag_close' => '</li>', 'first_tag_open' => '<li>', 'first_tag_close' => '</li>', 'last_tag_open' => '<li>', 'last_tag_close' => '</li>', 'cur_tag_open' => '<li class="active"><a href="#">', 'cur_tag_close' => '</a></li>', 'num_tag_open' => '<li>', 'num_tag_close' => '</li>');
     $this->limit = $this->settings_lib->item('site.list_limit');
     // load the keyboard shortcut keys
     $shortcut_data = array('shortcuts' => config_item('ui.current_shortcuts'), 'shortcut_keys' => $this->settings_lib->find_all_by('module', 'core.ui'));
     Template::set('shortcut_data', $shortcut_data);
     // Profiler Bar?
     if (ENVIRONMENT == 'development') {
         if ($this->settings_lib->item('site.show_profiler') && $this->auth->has_permission('Bonfire.Profiler.View')) {
             // Profiler bar?
             $this->showProfiler(false);
         }
     }
     // Basic setup
     Template::set_theme($this->config->item('template.admin_theme'), $this->config->item('template.default_theme'));
 }
Example #4
0
	function Admin_Controller(){
		parent::Authenticated_Controller();
		if ($_SESSION['userrole'] != '-1') {
			redirect(base_url() . index_page() . 'client/open/' . $_SESSION['userrole']);
		}
	}
Example #5
0
 public function __construct()
 {
     parent::__construct();
     $this->lang->load('application');
     $this->load->helper('application');
     $this->load->library('pagination');
     // Pagination config
     $this->pager = array();
     $this->pager['full_tag_open'] = '<div class="pagination">';
     $this->pager['full_tag_close'] = '</div>';
     $this->pager['next_link'] = 'Next &raquo;';
     $this->pager['prev_link'] = '&laquo; Previous';
     $this->limit = $this->settings_lib->item('site.list_limit');
     // load the keyboard shortcut keys
     $shortcut_data = array('shortcuts' => config_item('ui.current_shortcuts'), 'shortcut_keys' => unserialize($this->settings_lib->item('ui.shortcut_keys')));
     Template::set('shortcut_data', $shortcut_data);
     // Profiler Bar?
     if (ENVIRONMENT == 'development') {
         $this->load->library('Console');
         if (!$this->input->is_cli_request() && $this->settings_lib->item('site.show_profiler')) {
             $this->output->enable_profiler(true);
         }
     }
     // Basic setup
     Template::set_theme('admin');
     Assets::add_css(array('ui.css', 'notifications.css', 'buttons.css'));
 }
Example #6
0
 public function __construct()
 {
     parent::__construct();
     $this->lang->load('application');
     $this->load->helper('application');
     $this->load->library('pagination');
     // Pagination config
     $this->pager = array();
     $this->pager['full_tag_open'] = '<div class="pagination">';
     $this->pager['full_tag_close'] = '</div>';
     $this->pager['next_link'] = 'Next &raquo;';
     $this->pager['prev_link'] = '&laquo; Previous';
     $this->limit = $this->config->item('site.list_limit');
     // Basic setup
     Template::set_theme('admin');
     Assets::add_css(array('ui.css', 'notifications.css', 'buttons.css'));
 }