= " . C_SETUP_MIN_PHP_VERSION . " to install ConLite " . C_SETUP_VERSION . ". Sorry, even the setup doesn't work otherwise. Your version: " . PHP_VERSION . "\n"); } $iVersionMax = substr(C_SETUP_MAX_PHP_VERSION, 0, strrpos(C_SETUP_MAX_PHP_VERSION, ".") + 1) . (1 + substr(C_SETUP_MAX_PHP_VERSION, strrpos(C_SETUP_MAX_PHP_VERSION, ".") + 1)); if (!(version_compare($iVersionMax, PHP_VERSION, ">") && version_compare(C_SETUP_MAX_PHP_VERSION, PHP_VERSION, "<="))) { die("You need PHP >= " . C_SETUP_MIN_PHP_VERSION . " and <= " . C_SETUP_MAX_PHP_VERSION . " to install ConLite " . C_SETUP_VERSION . ". Sorry, even the setup doesn't work otherwise. Your version: " . PHP_VERSION . "\n"); } /* * Do not edit this value! * * If you want to set a different enviroment value please define it in your .htaccess file * or in the server configuration. * * SetEnv CONLITE_ENVIRONMENT development */ if (!defined('CL_ENVIRONMENT')) { if (getenv('CONLITE_ENVIRONMENT')) { $sEnvironment = getenv('CONLITE_ENVIRONMENT'); } else if (getenv('CL_ENVIRONMENT')) { $sEnvironment = getenv('CL_ENVIRONMENT'); } else { // @TODO: provide a possibility to set the environment value via file $sEnvironment = 'production'; } define('CL_ENVIRONMENT', $sEnvironment); } // include security class and check request variables include_once(CON_BE_PATH . 'classes/class.security.php'); Contenido_Security::checkRequests(); /** * Setup file inclusion * * @param string $filename * @return void */ function checkAndInclude($filename) { if (file_exists($filename) && is_readable($filename)) { require_once($filename); } else { echo "
";
        echo "Setup was unable to include neccessary files. The file $filename was not found. Solutions:\n\n";
        echo "- Make sure that all files are correctly uploaded to the server.\n";
        echo "- Make sure that include_path is set to '.' (of course, it can contain also other directories). Your include path is: " . ini_get("include_path") . "\n";
        echo "
"; } } // Some basic configuration global $cfg; $cfg['path']['frontend'] = CON_FRONTEND_PATH; $cfg['path']['conlite'] = $cfg['path']['frontend'] . '/conlite/'; $cfg['path']['conlite_config'] = CON_FRONTEND_PATH . '/data/config/' . CL_ENVIRONMENT . '/'; if(!is_dir($cfg['path']['conlite_config'])) { die("Setup cannot find the config folder \"".$cfg['path']['conlite_config']."\"! Make shure folder exists and is readable."); } // (bool) Flag to use native i18n. // Note: Enabling this could create unwanted side effects, because of // native gettext() behavior. $cfg['native_i18n'] = false; session_start(); // includes checkAndInclude('lib/defines.php'); checkAndInclude($cfg['path']['frontend'] . '/pear/HTML/Common2.php'); checkAndInclude($cfg['path']['conlite'] . 'classes/cHTML5/class.chtml.php'); checkAndInclude($cfg['path']['conlite'] . 'classes/class.htmlelements.php'); checkAndInclude($cfg['path']['conlite'] . 'classes/con2con/class.filehandler.php'); checkAndInclude($cfg['path']['conlite'] . 'includes/functions.php54.php'); checkAndInclude($cfg['path']['conlite'] . 'classes/class.i18n.php'); checkAndInclude($cfg['path']['conlite'] . 'includes/functions.i18n.php'); checkAndInclude('lib/class.setupcontrols.php'); checkAndInclude('lib/functions.filesystem.php'); checkAndInclude('lib/functions.environment.php'); checkAndInclude('lib/functions.safe_mode.php'); checkAndInclude('lib/functions.mysql.php'); checkAndInclude('lib/functions.phpinfo.php'); checkAndInclude('lib/functions.system.php'); checkAndInclude('lib/functions.libraries.php'); checkAndInclude('lib/functions.sql.php'); checkAndInclude('lib/functions.setup.php'); checkAndInclude('lib/class.template.php'); checkAndInclude('lib/class.setupmask.php'); ?>