correctly displaing indev version
This commit is contained in:
parent
8f4406c68d
commit
5c14884de5
1 changed files with 3 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
||||||
ini_set('display_startup_errors', 1);
|
ini_set('display_startup_errors', 1);
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
|
|
||||||
$WEB_CLIENT = (!isset($CLIENT) || !$CLIENT) && http_response_code() !== false || (defined("WEB_CLIENT") && WEB_CLIENT);
|
$WEB_CLIENT = (!isset($CLIENT) || !$CLIENT) && http_response_code() !== false || WEB_CLIENT;
|
||||||
$localhost = false;
|
$localhost = false;
|
||||||
if(gethostname() == "WolverinDEV")
|
if(gethostname() == "WolverinDEV")
|
||||||
$localhost = true;
|
$localhost = true;
|
||||||
|
@ -49,8 +49,8 @@
|
||||||
spawn_property('connect_default_host', $localhost ? "localhost" : "ts.TeaSpeak.de");
|
spawn_property('connect_default_host', $localhost ? "localhost" : "ts.TeaSpeak.de");
|
||||||
spawn_property('localhost_debug', $localhost ? "true" : "false");
|
spawn_property('localhost_debug', $localhost ? "true" : "false");
|
||||||
|
|
||||||
if(defined("WEB_CLIENT") && WEB_CLIENT) {
|
if(WEB_CLIENT) {
|
||||||
$version = "000000";
|
$version = "0000000";
|
||||||
} else {
|
} else {
|
||||||
$version = file_get_contents("./version");
|
$version = file_get_contents("./version");
|
||||||
if ($version === false)
|
if ($version === false)
|
||||||
|
|
Loading…
Add table
Reference in a new issue