/** * Constructor * * @access public * @return void */ function __construct() { parent::__construct(); $this->load->helper('image'); $this->load->library(array('form_validation', 'session')); $this->load->model('Installer_model'); }
function __construct() { parent::__construct(); // make sure people don't get here if FoOlSlide is already installed if (file_exists("config.php")) { redirect('admin'); } $this->viewdata["controller_title"] = _("Installation"); }
function __construct() { parent::__construct(); $this->load->library('myclass'); $file = FCPATH . 'install.lock'; if (file_exists($file)) { show_message('系统已安装过,请删除/intall.lock再重新安装', site_url()); } }
<?php define('DVELUM_ROOT', str_replace('\\', '/', dirname(__DIR__))); date_default_timezone_set('Europe/Moscow'); include './app/Install/Controller.php'; /** * Connect an autoloader */ include '../system/library/Autoloader.php'; /** * Add the library path */ $autoloader = new Autoloader(array('paths' => array('../system/library', '../system/app'), 'useMap' => false)); $controller = new Install_Controller(); $controller->run();
function __construct() { parent::__construct(); if (file_exists("config.php")) redirect('admin'); $this->viewdata["controller_title"] = "Installation"; }