Пример #1
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->lang->load('theme');
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     //make sure we're not always behind ssl
     remove_ssl();
     $this->load->model('Customer_model');
 }
Пример #3
0
 function __construct()
 {
     parent::__construct();
     // Load in the admin helper functions if the current user is an administrator
     if ($this->secure->group_types(array(ADMINISTRATOR))->is_auth()) {
         $this->load->helper('admin_helper');
     }
     $this->cms_parameters = array();
     $this->cms_base_route = '';
     // Check if to force ssl on controller
     if (in_uri($this->config->item('ssl_pages'))) {
         force_ssl();
     } else {
         remove_ssl();
     }
     // Create Dynamic Page Title
     if (!($title = str_replace('-', ' ', $this->uri->segment(1)))) {
         $title = 'Home';
     }
     if ($segment2 = str_replace('-', ' ', $this->uri->segment(2))) {
         $title = $segment2 . " - " . $title;
     }
     $this->template->set_meta_title(ucwords($title) . " | " . $this->settings->site_name);
     // Set Group
     if ($this->session->userdata('user_session')) {
         $this->group_id = $this->session->userdata('user_session')->group_id;
         $this->Group_session = $this->session->userdata('group_session');
     }
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     //        echo 'test';
     //make sure we're not always behind ssl
     remove_ssl();
 }
Пример #5
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model('Newsletter_model');
     $this->load->helper(array('formatting', 'utility'));
 }
Пример #6
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin,Employee', true);
     $this->load->model('Page_model');
     $this->lang->load('page');
 }
Пример #7
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model('Order_model');
     $this->load->helper(array('formatting'));
     $this->lang->load('order');
 }
Пример #8
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->load->model('Brand_model');
     $this->lang->load('location');
 }
Пример #9
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->lang->load('category');
     $this->load->model('Category_model');
 }
Пример #10
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model('Settings_model');
     $this->load->model('Messages_model');
     $this->lang->load('settings');
 }
Пример #11
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->load->model('Batch_model');
     $this->load->helper('date');
 }
Пример #12
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model('Customer_model');
     $this->load->model(array('Customer_model', 'Travel_model', 'Trip_model', 'Vehicles_model', 'subscribe_model', 'enquiry_model', 'testimonial_model', 'category_model'));
     $this->load->helper('date');
     $this->lang->load('dashboard');
 }
Пример #13
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->lang->load('image');
     $this->load->model(array('messages_model'));
     $this->load->helper('date');
 }
Пример #14
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->lang->load('lookbooks');
     $this->load->model('Lookbook_model');
     $this->load->helper('date');
 }
Пример #15
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->load->model('Settings_model');
     $this->load->model('Messages_model');
     $this->lang->load('settings');
 }
Пример #16
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model('Merchant_model');
     $this->load->helper('date');
     $this->lang->load('dashboard');
     $this->admin = $this->auth->logged_data();
 }
Пример #17
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->load->model('Product_model');
     $this->load->helper('form');
     $this->lang->load('product');
 }
Пример #18
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->CI =& get_instance();
     $this->load->model('Enquiry_model');
     $this->load->model('vechicle_model');
     $this->load->model('travel_model');
     $this->load->helper('date');
 }
Пример #19
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model(array('Deals_model', 'Deal_type_model', 'Merchant_model'));
     $this->load->helper('url');
     $this->load->library('Auth_front');
     $this->setting = $this->Settings_model->get_setting();
     $this->load->add_package_path(APPPATH . 'themes/' . $this->config->item('theme') . '/');
 }
Пример #20
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->lang->load('tips');
     $this->load->model('Tip_model');
     $this->load->model('Common_model');
     $this->load->helper('date');
 }
Пример #21
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model('Order_model');
     $this->load->model('Search_model');
     $this->load->model('Place_model');
     $this->load->model('Payment_transfer_model');
     $this->load->helper(array('formatting', 'utility'));
 }
Пример #22
0
 function __construct()
 {
     parent::__construct();
     //        echo 'test';
     //make sure we're not always behind ssl
     remove_ssl();
     $this->load->model('Autoship_model');
     $this->load->model('location_model');
     //        force_ssl();
 }
Пример #23
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->auth->check_access('Admin', true);
     $this->load->model('Order_model');
     $this->load->model('Search_model');
     $this->load->helper(array('formatting'));
     $this->lang->load('report');
 }
Пример #24
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     if (!$this->auth->check_access('Admin')) {
         redirect($this->config->item('admin_folder') . '/sproducts');
     }
     $this->load->model('Order_model');
     $this->load->model('Customer_model');
     $this->load->helper('date');
     $this->lang->load('dashboard');
 }
 /**
  * Initialise the controller, tie into the CodeIgniter superobject
  * and try to autoload the models
  */
 public function __construct()
 {
     parent::__construct();
     //If the page is a SSL Page redirect to its place
     if ($this->ssl_page == true && $this->config->item('use_ssl') == true) {
         force_ssl();
     } else {
         remove_ssl();
     }
     //Load the models
     $this->_load_models();
     //Get any error messages
     $this->_get_messages();
     //Get any validation data / errors to pass back to the form
     $this->_get_validation_errors();
     //Check any session tracking paramaters that should be in here
     $this->_session();
 }
Пример #26
0
 function __construct()
 {
     parent::__construct();
     //make sure we're not always behind ssl
     remove_ssl();
     $this->load->library('Go_cart');
     $this->load->model(array('Page_model', 'Product_model', 'Digital_Product_model', 'Gift_card_model', 'Option_model', 'Order_model', 'Settings_model'));
     $this->load->helper(array('form_helper', 'formatting_helper'));
     //fill in our variables
     $this->categories = $this->Category_model->get_categories_tierd(0);
     $this->pages = $this->Page_model->get_pages();
     // check if giftcards are enabled
     $gc_setting = $this->Settings_model->get_settings('gift_cards');
     if (!empty($gc_setting['enabled']) && $gc_setting['enabled'] == 1) {
         $this->gift_cards_enabled = true;
     } else {
         $this->gift_cards_enabled = false;
     }
     //load the theme package
     $this->load->add_package_path(APPPATH . 'themes/' . $this->config->item('theme') . '/');
 }
Пример #27
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
     $this->load->model(array('Deals_model'));
 }
Пример #28
0
 function __construct()
 {
     parent::__construct();
     remove_ssl();
 }
Пример #29
0
/**
 * Вкл/выкл SSL
 * @return unknown_type
 */
function hook_ssl_on()
{
    $ci =& get_instance();
    return $ci->config->item('crm_ssl_on') ? force_ssl() : remove_ssl();
}