This commit is contained in:
GameHerobrine 2023-10-24 16:08:38 +03:00
parent c7e509960e
commit 385c89ab15
2 changed files with 4 additions and 4 deletions

View file

@ -48,11 +48,11 @@ set_include_path(get_include_path() . PATH_SEPARATOR . FILE_PATH);
ini_set("memory_limit", "256M"); //Default ini_set("memory_limit", "256M"); //Default
define("LOG", true); define("LOG", true);
define("START_TIME", microtime(true)); define("START_TIME", microtime(true));
define("MAJOR_VERSION", "1.1.0dev"); define("MAJOR_VERSION", "1.1.0beta1");
define("CODENAME", "懐かしさ (Nostalgia)"); //i'm not very creative - kotyaralih define("CODENAME", "懐かしさ (Nostalgia)"); //i'm not very creative - kotyaralih
define("CURRENT_MINECRAFT_VERSION", "v0.8.1 alpha"); define("CURRENT_MINECRAFT_VERSION", "v0.8.1 alpha");
define("CURRENT_API_VERSION", '12.1'); define("CURRENT_API_VERSION", '12.1');
define("CURRENT_PHP_VERSION", "5.5"); define("CURRENT_PHP_VERSION", "8.0");
$gitsha1 = false; $gitsha1 = false;
if(file_exists(FILE_PATH . ".git/refs/heads/master")){ //Found Git information! if(file_exists(FILE_PATH . ".git/refs/heads/master")){ //Found Git information!
define("GIT_COMMIT", strtolower(trim(file_get_contents(FILE_PATH . ".git/refs/heads/master")))); define("GIT_COMMIT", strtolower(trim(file_get_contents(FILE_PATH . ".git/refs/heads/master"))));

View file

@ -20,9 +20,9 @@ while getopts "p:f:l" OPTION 2> /dev/null; do
done done
if [ "$PHP_BINARY" == "" ]; then if [ "$PHP_BINARY" == "" ]; then
if [ -f ./bin/php5/bin/php ]; then if [ -f ./bin/php7/bin/php ]; then
export PHPRC="" export PHPRC=""
PHP_BINARY="./bin/php5/bin/php" PHP_BINARY="./bin/php7/bin/php"
elif [[ ! -z $(type php) ]]; then elif [[ ! -z $(type php) ]]; then
PHP_BINARY=$(type -p php) PHP_BINARY=$(type -p php)
else else