first commit

This commit is contained in:
Erreur32 2021-02-05 23:57:13 +01:00
parent 65ccbb1363
commit a2bbe893db
3 changed files with 21 additions and 61 deletions

View file

@ -8,7 +8,12 @@
$servport = "3201" ; // Game Server Port $servport = "3201" ; // Game Server Port
$modport = "3211" ; // Mod port omega (+10) $modport = "3211" ; // Mod port omega (+10)
$queryport= "27001" ; // Queryport $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 $title = "DayZ Stat SERVER Clan | by TOX" ; // Web title page
$descript = "Your Clan/server desciption"; // Your clan/server description $descript = "Your Clan/server desciption"; // Your clan/server description
$logoteam = "logoteam.png"; $logoteam = "logoteam.png";
@ -26,16 +31,19 @@
// Don't touch below // Don't touch below
// //
$urlserv = $ipserv.":".$servport ; $urlserv = '$ipserv.":". $portserv' ;
$json = file_get_contents("http://".$ipserv.":".$modport."/"); // get info from server $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 $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 $objlower = json_decode($json); //converts to an array of objects
} else {
$mods = ""; // } else {
} // $mods = "";
// }
// librarie SQ - info serv game // librarie SQ - info serv game

View file

@ -181,18 +181,6 @@ $sec = "300";
echo $timeserver ; echo $timeserver ;
echo " <small style='color: grey;'> <i class='fas fa-sun'></i> <span style='color: white;'> x ".$timespeed."</span> - <i class='fas fa-moon'></i><span style='color: white;'> x ".$timespeedn." </span>"; echo " <small style='color: grey;'> <i class='fas fa-sun'></i> <span style='color: white;'> x ".$timespeed."</span> - <i class='fas fa-moon'></i><span style='color: white;'> x ".$timespeedn." </span>";
/*
if (count($objlower) == 0){ // if no mod
echo $InfoGT[67].$InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72].$InfoGT[73];
echo " <small style='color: grey;'> <i class='fas fa-sun'></i> <span style='color: white;'> x ". $InfoGT[42]. "</span> - <i class='fas fa-moon'></i><span style='color: white;'> x ".$InfoGT[55]." </span>";
}
if (count($objlower) > 0) {
echo $InfoGT[67].$InfoGT[68].$InfoGT[69].$InfoGT[70].$InfoGT[71].$InfoGT[72].$InfoGT[73].$InfoGT[74];
echo " <small style='color: grey;'> <i class='fas fa-sun'></i> <span style='color: white;'> x ". $InfoGT[41].$InfoGT[42].$InfoGT[43]. "</span> - <i class='fas fa-moon'></i><span style='color: white;'> x ".$InfoGT[54].$InfoGT[55].$InfoGT[56]."</span>";
}
*/
?> ?>
</small></h5> </small></h5>
@ -211,26 +199,14 @@ $sec = "300";
<div class="col-md-2 col-xs-12 border-right"> <div class="col-md-2 col-xs-12 border-right">
<div class="description-block"> <div class="description-block">
<h5 class="description-header"> <?php echo $Info['Version'] ; ?></h5> <h5 class="description-header"> <?php echo $Info['Version']; ?></h5>
<span class="description-text">SERVER VERSION</span> <span class="description-text">SERVER VERSION</span>
</div> </div>
</div> </div>
<div class="col-md-2 col-xs-12"> <div class="col-md-2 col-xs-12">
<div class="description-block"> <div class="description-block">
<h5 class="description-header"> <h5 class="description-header"><?php echo $hive; ?></h5>
<?php //echo count($objlower)
echo $hive ;
/* if (count($objlower) == 0){
echo $InfoGT[18].$InfoGT[19].$InfoGT[20].$InfoGT[21].$InfoGT[22].$InfoGT[23].$InfoGT[24].$InfoGT[25];
}
if (count($objlower) > 0){
echo $InfoGT[18].$InfoGT[19].$InfoGT[20].$InfoGT[21].$InfoGT[22].$InfoGT[23].$InfoGT[24].$InfoGT[25];
}
*/
?>
</h5>
<span class="description-text">HIVE</span> <span class="description-text">HIVE</span>
</div> </div>
</div> </div>
@ -396,7 +372,7 @@ $sec = "300";
</label> </label>
</div> </div>
<div class="col-sm-7"> <div class="col-sm-7">
<i class="fa fa-user"> (..)</i> <i class="fa fa-user"> <font color=orange></font></i>
</div> </div>
</div> </div>
</div> </div>
@ -411,8 +387,8 @@ $sec = "300";
<small> From User</small--> <small> From User</small-->
</label> </label>
</div> </div>
<div class="col-sm-7"><i class="fas fa-dot-circle" style="color:#20a8d8"></i> <div class="col-sm-7"><i class="fas fa-dot-circle" style="color:#20a8d8"></i>
SQL not active <font color=orange></font> <font color=orange></font>
</div> </div>
</div> </div>
</div> </div>

View file

@ -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
)