0) { define('YII_DEBUG', true); if($aSettings['config']['debug']>1) error_reporting(E_ALL); else error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); } 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.3', '<')) die ('This script can only be run on PHP version 5.3.3 or later! Your version: '.PHP_VERSION.'
'); /** * Load Psr4 autoloader, should be replaced by composer autoloader at some point. */ require_once 'application/Psr4AutoloaderClass.php'; $loader = new Psr4AutoloaderClass(); $loader->register(); $loader->addNamespace('ls\\pluginmanager', __DIR__ . '/application/libraries/PluginManager'); $loader->addNamespace('ls\\pluginmanager', __DIR__ . '/application/libraries/PluginManager/Storage'); $loader->addNamespace('ls\\menu', __DIR__ . '/application/libraries/MenuObjects'); $loader->addNamespace('ls\\helpers', __DIR__ . '/application/helpers'); /* * -------------------------------------------------------------------- * 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 $sDefaultRuntimePath = dirname(__FILE__).DIRECTORY_SEPARATOR.'tmp'.DIRECTORY_SEPARATOR.'runtime'; if (!is_dir($sDefaultRuntimePath) || !is_writable($sDefaultRuntimePath)) { // @@TODO: present html page styled like the installer die (sprintf('%s should be writable by the webserver (766 or 776).', $sDefaultRuntimePath)); } } Yii::$enableIncludePath = false; Yii::createApplication('LSYii_Application', $config)->run(); /* End of file index.php */ /* Location: ./index.php */