diff --git a/setup/lib/defines.php b/setup/lib/defines.php index 78702f9..eec6cc1 100644 --- a/setup/lib/defines.php +++ b/setup/lib/defines.php @@ -38,5 +38,5 @@ define('C_SETUP_STEPFILE_ACTIVE', 'images/steps/s%da.png'); define('C_SETUP_STEPWIDTH', 28); define('C_SETUP_STEPHEIGHT', 28); define('C_SETUP_MIN_PHP_VERSION', '7.2.0'); -define('C_SETUP_MAX_PHP_VERSION', '8.0.3'); -define('C_SETUP_VERSION', '2.1.2'); \ No newline at end of file +define('C_SETUP_MAX_PHP_VERSION', '8.1.0'); +define('C_SETUP_VERSION', '2.2.0 beta'); \ No newline at end of file diff --git a/setup/lib/startup.php b/setup/lib/startup.php index 3bb96bd..49c3708 100644 --- a/setup/lib/startup.php +++ b/setup/lib/startup.php @@ -33,9 +33,10 @@ ini_set("error_log", "../data/logs/setup_errorlog.txt"); header('Content-Type: text/html; charset=UTF-8'); // Check php version -if (version_compare(PHP_VERSION, C_SETUP_MIN_PHP_VERSION, '<') - || version_compare(PHP_VERSION, C_SETUP_MAX_PHP_VERSION, '>')) { +if (version_compare(PHP_VERSION, C_SETUP_MIN_PHP_VERSION, '<')) { die("You need PHP >= " . C_SETUP_MIN_PHP_VERSION . " to install ConLite " . C_SETUP_VERSION . ". Sorry, even the setup doesn't work otherwise. Your version: " . PHP_VERSION . "\n"); +} else if (version_compare(PHP_VERSION, C_SETUP_MAX_PHP_VERSION, '>=')) { + die("You need PHP < " . C_SETUP_MAX_PHP_VERSION . " to install ConLite " . C_SETUP_VERSION . ". Sorry, even the setup doesn't work otherwise. Your version: " . PHP_VERSION . "\n"); }