diff --git a/SQL/config.php b/SQL/config.php
new file mode 120000
index 0000000..4ad2f86
--- /dev/null
+++ b/SQL/config.php
@@ -0,0 +1 @@
+../config.php
\ No newline at end of file
diff --git a/SQL/consql.php b/SQL/consql.php
new file mode 120000
index 0000000..3c7d9a3
--- /dev/null
+++ b/SQL/consql.php
@@ -0,0 +1 @@
+../consql.php
\ No newline at end of file
diff --git a/SQL/dayz2json_parser_sql.php b/SQL/dayz2json_parser_sql.php
index 936b5de..3064e72 100644
--- a/SQL/dayz2json_parser_sql.php
+++ b/SQL/dayz2json_parser_sql.php
@@ -1,14 +1,14 @@
" . 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 . "
" . 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 . "
" . mysqli_error($con); }
+
+ mysqli_close($con);
+
}
// end
diff --git a/config.php b/config.php
index 1df37e2..30a352c 100644
--- a/config.php
+++ b/config.php
@@ -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
diff --git a/consql.php b/consql.php
index eebd03b..62e954a 100644
--- a/consql.php
+++ b/consql.php
@@ -5,6 +5,7 @@
// Edit this bloc for SQL
+
$servdb = "localhost";
$userdb = "user";
$pdb = "pass";
diff --git a/index.php b/index.php
index a766ec1..b66be1b 100644
--- a/index.php
+++ b/index.php
@@ -588,10 +588,9 @@ $sec = "300";