0) { define('YII_DEBUG', true); error_reporting(E_ALL); } else { define('YII_DEBUG', false); error_reporting(0); } } else { error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED);// Not needed if user don't remove his 'debug'=>0, for application/config/config.php (Installation is OK with E_ALL) } if (version_compare(PHP_VERSION, '5.3.0', '<')) die ('This script can only be run on PHP version 5.3.0 or later! Your version: '.PHP_VERSION.'
'); /* * -------------------------------------------------------------------- * LOAD THE BOOTSTRAP FILE * -------------------------------------------------------------------- * * And away we go... * */ require_once BASEPATH . 'yii' . EXT; require_once APPPATH . 'core/LSYii_Application' . EXT; $config = require_once(APPPATH . 'config/internal' . EXT); if (!file_exists(APPPATH . 'config/config' . EXT)) { // If Yii can not start due to unwritable runtimePath, present an error $runtimePath = $config['runtimePath']; if (!is_dir($runtimePath) || !is_writable($runtimePath)) { // @@TODO: present html page styled like the installer die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath)); } } Yii::createApplication('LSYii_Application', $config)->run(); /* End of file index.php */ /* Location: ./index.php */