From a2bbe893db721e6beb6157c0b0f98fb5243a50ef Mon Sep 17 00:00:00 2001 From: Erreur32 Date: Fri, 5 Feb 2021 23:57:13 +0100 Subject: [PATCH] first commit --- config.php | 24 ++++++++++++++++-------- index.php | 34 +++++----------------------------- server.json | 24 ------------------------ 3 files changed, 21 insertions(+), 61 deletions(-) delete mode 100644 server.json diff --git a/config.php b/config.php index f436059..0e70d9c 100644 --- a/config.php +++ b/config.php @@ -8,7 +8,12 @@ $servport = "3201" ; // Game Server Port $modport = "3211" ; // Mod port omega (+10) $queryport= "27001" ; // Queryport - +/* + $ipserv = "103.58.149.102" ; // IP server game + $portserv = "2302" ; // Game Server Port + $modport = "2312" ; // Mod port omega (+10) + $queryport= "27016" ; // Queryport +*/ $title = "DayZ Stat SERVER Clan | by TOX" ; // Web title page $descript = "Your Clan/server desciption"; // Your clan/server description $logoteam = "logoteam.png"; @@ -26,16 +31,19 @@ // Don't touch below // - $urlserv = $ipserv.":".$servport ; + $urlserv = '$ipserv.":". $portserv' ; $json = file_get_contents("http://".$ipserv.":".$modport."/"); // get info from server - if (!$json) { - //echo "The variable is not empty"; + +// if (!$json) { +//echo "The variable is not empty"; + $objhigher = json_decode($json); //converts to an object - $objlower = $objhigher[0]; // if the json response its multidimensional this lowers it +// $objlower = $objhigher[0]; // if the json response its multidimensional this lowers it $objlower = json_decode($json); //converts to an array of objects - } else { - $mods = ""; - } + +// } else { +// $mods = ""; +// } // librarie SQ - info serv game diff --git a/index.php b/index.php index 879be54..407d6c7 100644 --- a/index.php +++ b/index.php @@ -181,18 +181,6 @@ $sec = "300"; echo $timeserver ; echo " x ".$timespeed." - x ".$timespeedn." "; - -/* - if (count($objlower) == 0){ // if no mod - echo $InfoGT[67].$InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72].$InfoGT[73]; - echo " x ". $InfoGT[42]. " - x ".$InfoGT[55]." "; - } - - if (count($objlower) > 0) { - echo $InfoGT[67].$InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72].$InfoGT[73].$InfoGT[74]; - echo " x ". $InfoGT[41].$InfoGT[42].$InfoGT[43]. " - x ".$InfoGT[54].$InfoGT[55].$InfoGT[56].""; - } -*/ ?> @@ -211,26 +199,14 @@ $sec = "300";
-
+
SERVER VERSION
-
- 0){ - echo $InfoGT[18].$InfoGT[19].$InfoGT[20].$InfoGT[21].$InfoGT[22].$InfoGT[23].$InfoGT[24].$InfoGT[25]; - } -*/ - ?> - -
+
HIVE
@@ -396,7 +372,7 @@ $sec = "300";
- (..) +
@@ -411,8 +387,8 @@ $sec = "300"; From User -
- SQL not active +
+
diff --git a/server.json b/server.json deleted file mode 100644 index 70de227..0000000 --- a/server.json +++ /dev/null @@ -1,24 +0,0 @@ - -Array -( - [Protocol] => 17 - [HostName] => [TH] F2P SERVER | Chernarus Map | No Mod | F2P.IN.TH | - [Map] => chernarusplus - [ModDir] => dayz - [ModDesc] => DayZ - [AppID] => 0 - [Players] => 18 - [MaxPlayers] => 60 - [Bots] => 0 - [Dedicated] => d - [Os] => w - [Password] => - [Secure] => 1 - [Version] => 1.10.153598 - [ExtraDataFlags] => 177 - [GamePort] => 2302 - [ServerID] => 90142715919842311 - [GameTags] => battleye,external,privHive,shard,lqs0,etm12.000000,entm2.000000,mod,22:23 - [GameID] => 221100 -) -