Datenstrom Yellow requires PHP 5.4 or higher

This commit is contained in:
markseu 2017-03-15 13:21:57 +01:00
parent e4c7244d07
commit 6ab44885ef

View file

@ -1,8 +1,9 @@
<?php
// Yellow is for people who make websites. http://datenstrom.se/yellow
// Yellow is for people who make websites. http://datenstrom.se/yellow/
// Copyright (c) 2013-2017 Datenstrom, https://datenstrom.se
// This file may be used and distributed under the terms of the public license.
version_compare(PHP_VERSION, "5.3", '>=') || die("Yellow requires PHP 5.3 or higher!");
version_compare(PHP_VERSION, "5.4", ">=") || die("Datenstrom Yellow requires PHP 5.4 or higher!");
require_once("system/plugins/core.php");
if(PHP_SAPI!="cli")
@ -16,4 +17,4 @@ if(PHP_SAPI!="cli")
$statusCode = $yellow->command($argv[1], $argv[2], $argv[3], $argv[4], $argv[5], $argv[6], $argv[7]);
exit($statusCode<400 ? 0 : 1);
}
?>
?>