mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-04 22:20:57 -04:00
Don't allow the installer to run if PHP < 5.2.3
This commit is contained in:
@@ -21,6 +21,11 @@ define("DOCROOT", dirname(dirname(__FILE__)) . "/");
|
||||
define("VARPATH", DOCROOT . "var/");
|
||||
define("SYSPATH", "DEFINED_TO_SOMETHING_SO_THAT_WE_CAN_KEEP_CONSISTENT_PREAMBLES_IN_THE_INSTALLER");
|
||||
|
||||
if (version_compare(PHP_VERSION, "5.2.3", "<")) {
|
||||
print "Gallery 3 requires PHP 5.2.3 or newer.\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
require(DOCROOT . "installer/installer.php");
|
||||
if (php_sapi_name() == "cli") {
|
||||
include("cli.php");
|
||||
|
||||
Reference in New Issue
Block a user