array_push($errors, "Configuration file not found. Looks like you forgot to copy config.php-dist to config.php and edit it.");
} else {
array_push($errors, "Configuration file not found. Looks like you forgot to copy config.php-dist to config.php and edit it.");
} else {
- define('EXPECTED_CONFIG_VERSION', 25);
- define('SCHEMA_VERSION', 91);
-
- require_once "config.php";
require_once "sanity_config.php";
if (function_exists('posix_getuid') && posix_getuid() == 0) {
array_push($errors, "Please don't run this script as root.");
}
require_once "sanity_config.php";
if (function_exists('posix_getuid') && posix_getuid() == 0) {
array_push($errors, "Please don't run this script as root.");
}
+ if (version_compare("5.3.0", phpversion()) == 1) {
+ array_push($errors, "PHP version 5.3.0 or newer required.");
+ }
+
if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
if (CONFIG_VERSION != EXPECTED_CONFIG_VERSION) {
- $array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");
+ array_push($errors, "Configuration file (config.php) has incorrect version. Update it with new options from config.php-dist and set CONFIG_VERSION to the correct value.");