first commit

This commit is contained in:
Erreur32 2021-02-06 13:32:02 +01:00
parent 5ed9977567
commit cab6762cbd
6 changed files with 27 additions and 22 deletions

1
SQL/config.php Symbolic link
View File

@ -0,0 +1 @@
../config.php

1
SQL/consql.php Symbolic link
View File

@ -0,0 +1 @@
../consql.php

View File

@ -1,14 +1,14 @@
<?php
include_once('./config.php');
include_once('./consql.php');
include_once('config.php');
include_once('consql.php');
// set the default timezone to use. Available since PHP 5.1
// https://www.php.net/manual/en/timezones.others.php
date_default_timezone_set('Etc/GMT-1');
//date_default_timezone_set('Europe/Paris');
// date_default_timezone_set('Etc/GMT-1');
// date_default_timezone_set('Asia/Bangkok');
date_default_timezone_set('Europe/Paris');
$date = date('Y-m-d H:i:s');
// if server down update sql
@ -29,12 +29,13 @@ $timespeedn="0";
$insql = "INSERT INTO $table (date,name,players,maxplayers,map,game,version,timeserver,timespeed,timespeedn,mods,battleye,hive,connect,secure,ping) VALUES ('$date','$HostName','$PLayers','$MaxPlayers','$Map','$Game','$Version','$timeserver','$timespeed','$timespeedn','$mods','$battleye','$hive','$urlserv','$Secure','$ping')";
if (mysqli_query($con, $insql)) {
// echo "New record created successfully";
echo "New record created successfully";
} else {
echo "Error: . $insql . <br>" . mysqli_error($con);
}
mysqli_close($con);
} else {
// REGEX TIME let's go :)
@ -42,9 +43,7 @@ mysqli_close($con);
// time server
$regtimsev = "/[0-9]{1,2}[:][0-9]{1,2}/";
$result = preg_grep($regtimsev, explode(",", $InfoGT));
foreach ($result as $key => $val) {
$timeserver = $val;
}
foreach ($result as $key => $val) { $timeserver = $val; }
// speedtime dayz
$regtimeacc = "/etm[0-9]{1,2}[.][0-9]{1}/";
@ -73,15 +72,19 @@ $result = preg_grep($regmod, explode(",", $InfoGT));
// SQL insert Query.
$insql = "INSERT INTO $table (date,name,players,maxplayers,map,game,version,timeserver,timespeed,timespeedn,mods,battleye,hive,connect,secure,ping) VALUES ('$date','$HostName','$PLayers','$MaxPlayers','$Map','$Game','$Version','$timeserver','$timespeed','$timespeedn','$mods','$battleye','$hive','$urlserv','$Secure','$ping')";
// Check if errors with SQL query
if (mysqli_query($con, $insql)) {
// echo "New record created successfully";
// echo $insql;
} else { echo "SQL to inject: \n" . $insql . "<br>" . mysqli_error($con); }
mysqli_close($con);
// Check if errors with SQL query
if (mysqli_query($con, $insql)) {
echo "New record created successfully \n";
// echo $insql;
} else { echo "SQL to inject: \n" . $insql . "<br>" . mysqli_error($con); }
mysqli_close($con);
}
// end

View File

@ -5,9 +5,9 @@
$ipserv = "82.64.214.194" ; // IP server game
$servport = "3201" ; // Game Server Port
$modport = "3211" ; // Mod port omega (+10)
$queryport= "27001" ; // Queryport
$servport = "3222" ; // Game Server Port
$modport = "3232" ; // Mod port omega (+10)
$queryport= "27022" ; // Queryport
/*
$ipserv = "103.58.149.102" ; // IP server game
$portserv = "2302" ; // Game Server Port

View File

@ -5,6 +5,7 @@
// Edit this bloc for SQL
$servdb = "localhost";
$userdb = "user";
$pdb = "pass";

View File

@ -588,10 +588,9 @@ $sec = "300";
<div class="card">
<div class="card-header" style="padding: 15px;"> <i class="fas fa-map"></i> MAP <span style='color: grey;'><?php echo $Info['Map']; ?></span> </div>
<!--a href=""--> <div style="width:100%;height:620px;">
<iframe src="https://dayz.ginfo.gg/<?php echo $namemap; ?>/#c=37;-4;3" frameborder="0" allowfullscreen style="width:100%;height:600px;" security="restricted"></iframe>
<!--img src="imagemap.jpg" style="width:100%;max-width:1200px;height:auto;padding:5px;" class="arrondie2" -->
</div>
<iframe src="https://dayz.ginfo.gg/<?php echo $Info['Map']; ?>/#c=37;-4;3" frameborder="0" allowfullscreen style="width:100%;height:600px;" security="restricted"></iframe>
<!--img src="imagemap.jpg" style="width:100%;max-width:1200px;height:auto;padding:5px;" class="arrondie2" -->
</div>
<!--/a-->
</div>
</div>