示例#1
0
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->helper(array('view', 'tools'));
     save_log_data();
 }
 function __construct()
 {
     parent::__construct();
     if ($this->uid) {
         $this->redirect('/?m=home');
     }
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->_files = $this->loadModel('model_files');
     $this->_user = $this->loadModel('model_user');
     $this->checkCookie();
 }
示例#4
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->language->load('Welcome');
     $this->users = new \Models\Users();
     $this->userLogged();
 }
 public function __construct()
 {
     parent::__construct();
     if ($this->uid) {
         $this->redirect('/?');
     }
 }
 public function __construct()
 {
     parent::__construct();
     $this->locale->load('Welcome');
     // Model can be initialized in constructur
     // $this->model = new \Modules\Test\Models\SampleModelInModule();
 }
示例#7
0
 public function __construct()
 {
     // Normally construct the application controller
     parent::__construct();
     // !!! Your module cunstructer here !!! //
     /* 
         Module template option ('module_view_paths') When set to true, the template system will load
         the pages view file from the the templates module view folder if it exists: 
         ( template_path/module_views/module_name/viewname.php )
         
         If it doesnt exist, then it loads the default module view file: 
         ( modules/module_name/views/viewname.php )
         
         If set to false, it will load the default view for the URI 
         ( template_path/views/controller/viewname.php ) ) 
     */
     $this->Template->config('module_view_paths', true);
     /*    
         Example loading a module config file
         First Param => 'Module Name', 
         Second Param => 'Config Array Name', ( !! Must be Unique! Cannot be 'Core', 'App', OR 'DB' !! )
         Third Param => 'Config File Name', 
         Forth Param => 'Array Variable Name' ( !! ONLY IF config options are in an array !! ) 
     */
     load_module_config('Devtest', 'mod_config', 'config.php', 'config_options');
     // Usage
     $this->Config = load_class('Config');
     $this->Config->get('var_name', 'mod_config');
     // OR
     config('var_name', 'mod_config');
 }
示例#8
0
 /**
  * Error
  *
  * Display an error page if there's no controller
  * that corresponds with the current url.
  */
 private static function error()
 {
     $error = self::$url[0] == '500' ? '500' : '404';
     self::$controller = new Controllers\Error();
     self::$controller->index($error);
     exit;
 }
示例#9
0
 public function __construct()
 {
     parent::__construct();
     $this->audit = new \Models\Audit();
     $this->users = new \Models\Users();
     $this->keys = new \Models\Keys();
 }
示例#10
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->language->load('Welcome');
     $this->_pages = new \Models\Pages();
     $this->_welcomes = new \Models\Welcomes();
 }
 public function __construct()
 {
     parent::__construct();
     $this->loadModel('messageModel');
     $this->loadModel('pageModel');
     $this->loadModel('slideModel');
 }
示例#12
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->entradas = new \Models\Entradas();
     $this->tags = new \Models\Tags();
     $this->entradashastags = new \Models\Entradashastags();
 }
 public function __construct()
 {
     parent::__construct();
     if (!Session::get('loggedin')) {
         Url::redirect('login');
     }
 }
 function __construct()
 {
     parent::__construct();
     if (!$this->uid) {
         $this->redirect('/?m=member&c=login');
     }
 }
示例#15
0
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->model('travflex/search_model');
     $this->load->helper(array('view', 'tools'));
     save_log_data();
 }
示例#16
0
 public function __construct()
 {
     parent::__construct();
     if (!Session::get('loggedin')) {
         Url::redirect('admin-login');
     }
     $this->_model = new \App\Models\Administrador();
 }
示例#17
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->_pages = new \Models\Pages();
     $this->_users = new \Models\Users();
     $this->_welcomes = new \Models\Welcomes();
     \Helpers\Security::require_login();
 }
示例#18
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->method = $_SERVER['REQUEST_METHOD'];
     $this->entradas = new \Models\Entradas();
     $this->tags = new \Models\Tags();
     $this->entradashastags = new \Models\Entradashastags();
 }
示例#19
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     if (!Session::get('loggedin')) {
         Url::redirect('login');
     }
     $this->language->load('Dashboard');
 }
示例#20
0
 public function __construct()
 {
     parent::__construct();
     $this->user_model = new \Models\User();
     $this->album_model = new \Models\Album();
     $this->role_model = new \Models\Role();
     $this->status_model = new \Models\Status();
 }
示例#21
0
 public function __construct()
 {
     parent::__construct();
     $this->albumModel = new \Models\Album();
     $this->status_model = new Status();
     $this->mediaModel = new Media();
     $this->categoryModel = new Category();
 }
示例#22
0
 public function handle()
 {
     $aConfig = c\Config::get('dsn');
     u\DB::connect($aConfig['data']);
     $aData = parent::handle();
     $aData['data']['host'] = "http://{$_SERVER['HTTP_HOST']}/?static=";
     return $aData;
 }
示例#23
0
 public function __construct()
 {
     parent::__construct();
     $this->model = new \Modules\AdminPanel\Models\AdminPanel();
     $this->forum = new \Modules\AdminPanel\Models\ForumAdmin();
     $this->pages = new \Helpers\Paginator(USERS_PAGEINATOR_LIMIT);
     // How many rows per page
 }
示例#24
0
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->suppliercode = GetSupplierCode();
     $this->url = config_item(_SITEMINDER_STAGE . '_url');
     save_log_data();
 }
示例#25
0
 public function __construct()
 {
     parent::__construct();
     // footer da da olduğu için buradan verdim
     $this->request = Request::createFromGlobals();
     // dil objelerini set et
     $this->footerDatasi = $data;
 }
示例#26
0
 public function __construct()
 {
     parent::__construct();
     $this->load->database();
     $this->load->model('siteminder/LunchServer', 'serv');
     $this->load->model('siteminder/ServerException', 'ex');
     log_message('info', 'Enter: SiteConnect');
 }
示例#27
0
文件: base.php 项目: phpsa/CoreCMS
 public function __construct()
 {
     parent::__construct();
     if (!isset($this->session->data['api_id'])) {
         $json['error']['warning'] = $this->language->get('error_permission');
         $this->response->addHeader('Content-Type: application/json');
         return $this->response->setOutput(json_encode($json));
     }
 }
示例#28
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->user = new \Models\Users();
     $this->post = new \Models\Posts();
     $this->sobre = new \Models\Sobre();
     $this->link = new \Models\Links();
     $this->enquete = new \Models\Enquete();
 }
示例#29
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     $this->course = new \Models\Course();
     // On page load, redirect if not logged in
     if (\Helpers\Session::get('loggedin') == false) {
         \Helpers\Url::redirect('Login');
     }
 }
示例#30
0
 /**
  * Call the parent construct
  */
 public function __construct()
 {
     parent::__construct();
     if (!Auth::isLogged()) {
         Url::redirect('login');
     }
     $this->language->load('groups');
     $this->group = new \Models\Group();
 }