diff --git a/GameQ/statserver_expansion.json b/GameQ/statserver_expansion.json
deleted file mode 120000
index 613a6b2..0000000
--- a/GameQ/statserver_expansion.json
+++ /dev/null
@@ -1 +0,0 @@
-/home/dayz/Dayz/server/statserver_expansion.json
\ No newline at end of file
diff --git a/GameQ/statserver_livonia.json b/GameQ/statserver_livonia.json
deleted file mode 120000
index deff1a1..0000000
--- a/GameQ/statserver_livonia.json
+++ /dev/null
@@ -1 +0,0 @@
-/home/dayz/Dayz/server/statserver_livonia.json
\ No newline at end of file
diff --git a/GameQ/status_expansion.php b/GameQ/status_expansion.php
index 9b28a1d..510bd8c 100644
--- a/GameQ/status_expansion.php
+++ b/GameQ/status_expansion.php
@@ -1,12 +1,13 @@
addServer([
'type' => 'dayz',
- 'host' => '82.64.214.194:3201',
+ 'host' => '82.64.214.194:3222',
'options' => [
- 'query_port' => 27021,
+ 'query_port' => 27022,
],
]);
@@ -47,7 +48,8 @@ $results = $GameQ->process();
echo "
";
-$data = json_decode($readjson);
+//$data = json_decode($readjson);
+$data = json_decode($GameQ);
// class
$name = $data->{'name'};
$map = $data->{'map'};
@@ -75,7 +77,7 @@ $players = $data->{'players'};
//$playersuser = substr($players,0,8);
//$players = $data->{'array_filter($players)'};
//$player = $data->{'players'};
-7
+
?>
diff --git a/table.sql b/table.sql
new file mode 100644
index 0000000..18bee88
--- /dev/null
+++ b/table.sql
@@ -0,0 +1,40 @@
+-- Adminer 4.7.8 MySQL dump
+
+SET NAMES utf8;
+SET time_zone = '+00:00';
+SET foreign_key_checks = 0;
+SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
+
+SET NAMES utf8mb4;
+
+DROP DATABASE IF EXISTS `dayzstat`;
+CREATE DATABASE `dayzstat` /*!40100 DEFAULT CHARACTER SET utf8mb4 */;
+USE `dayzstat`;
+
+DROP TABLE IF EXISTS `StatServer_1`;
+CREATE TABLE `StatServer_1` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `date` datetime DEFAULT NULL,
+ `name` varchar(74) NOT NULL DEFAULT 'Offline',
+ `numplayers` varchar(4) NOT NULL DEFAULT '0',
+ `timeserver` varchar(12) DEFAULT NULL,
+ `players` varchar(32) NOT NULL DEFAULT '0',
+ `map` varchar(19) DEFAULT NULL,
+ `game` varchar(4) DEFAULT NULL,
+ `maxplayers` varchar(4) DEFAULT NULL,
+ `requiredVersion` varchar(15) DEFAULT NULL,
+ `version` varchar(15) DEFAULT NULL,
+ `battleye` tinytext DEFAULT NULL,
+ `hive` varchar(11) DEFAULT NULL,
+ `connect` varchar(32) DEFAULT NULL,
+ `secure` tinytext DEFAULT NULL,
+ `ping` varchar(3) NOT NULL DEFAULT '0',
+ PRIMARY KEY (`id`),
+ KEY `timeserver` (`timeserver`),
+ KEY `date` (`date`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8;
+
+
+-- 2021-02-02 14:33:07
+
+
diff --git a/table_.sql b/table_.sql
new file mode 100644
index 0000000..c14edb6
--- /dev/null
+++ b/table_.sql
@@ -0,0 +1,6 @@
+
+ INSERT INTO `StatServer_1` (`id`, `date`, `name`, `numplayers`, `timeserver`, `players`, `map`, `game`, `maxplayers`, `requiredVersion`, `version`, `battleye`, `hive`, `connect`, `secure`, `ping`) VALUES
+ (1, '', '', '0', '', '', '', '', '', 'null', '', '', '', '', '', '');
+
+
+