Example #1
0
 function __construct()
 {
     parent::controller();
     parent::database();
     parent::module('models', 'models_auth', 'culck');
     header('Content-type: application/json');
 }
Example #2
0
 function EmailSettings()
 {
     parent::controller();
     //Check For Admin Logged in
     if (!isAdmin()) {
         redirect_admin('login');
     }
     //Get Config Details From Db
     $this->config->db_config_fetch();
     //Debug Tool
     //$this->output->enable_profiler=true;
     // loading the lang files
     $this->lang->load('admin/common', $this->config->item('language_code'));
     $this->lang->load('admin/setting', $this->config->item('language_code'));
     $this->lang->load('admin/validation', $this->config->item('language_code'));
     //Load Models Common to all the functions in this controller
     $this->load->model('common_model');
 }
Example #3
0
 /**
  * This method sets the Controller and run it.
  * @param type $controller
  * @return boolean
  * @throws Exception
  * @version 14.11.2014
  */
 public static function set($controller = "")
 {
     if (empty($controller)) {
         $controller = "index";
     }
     // For security purposes, we will add additional validation
     // on user input.
     if (!preg_match("/[-_0-9a-z]{2,15}/u", $controller)) {
         throw new Exception(_("Controller parameter is not valid."));
     }
     // Take Controller name into the Configuration:
     config::set("controller", $controller);
     // If the script founds selected controller (must begin with "controller_":
     if (!function_exists("controller_" . $controller)) {
         throw new Exception(_("Controller is not found."));
     }
     self::$controller = $controller;
     $ControllerName = "controller_" . $controller;
     return $ControllerName();
 }
Example #4
0
 function __construct()
 {
     parent::controller();
 }
 function __construct()
 {
     parent::controller();
     $this->load->model('prefs_model');
 }
 function __construct()
 {
     parent::controller();
     $this->load->model('directory_model');
     $this->load->library('Image_upload');
 }
 function __construct()
 {
     //Load model for all pages
     parent::controller();
     $this->load->model('stats_model');
 }
Example #8
0
 function __construct()
 {
     parent::controller();
     parent::module('helpers', 'functions_validate_helpers');
 }
 function __construct()
 {
     parent::controller();
     $this->load->helper('googlemaps');
 }
Example #10
0
File: layout.php Project: nukem/NEC
 function __construct()
 {
     parent::controller();
     $this->load->helper('cookie');
 }