Updated SourceQuery for control

This commit is contained in:
Sergei Solovev 2023-12-10 00:17:11 +03:00
parent 6b693734d4
commit cf70b5dd43
8 changed files with 16 additions and 44 deletions

View file

@ -2,16 +2,12 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
use xPaw\SourceQuery\SourceQuery;
class rcon
{
public static function cmd($server, $cmd = 'status')
{
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/GoldSourceRcon.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
list($ip, $port) = explode(':', $server['address']);

View file

@ -4,17 +4,14 @@ if (!DEFINED('EGP'))
include(LIB . 'control/scans.php');
use xPaw\SourceQuery\SourceQuery;
class scan extends scans
{
public static function mon($id, $players_get = false)
{
global $cfg, $sql, $html, $mcache;
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
if ($players_get)

View file

@ -2,16 +2,12 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
use xPaw\SourceQuery\SourceQuery;
class rcon
{
public static function cmd($server, $cmd = 'status')
{
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/SourceRcon.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
list($ip, $port) = explode(':', $server['address']);

View file

@ -4,17 +4,14 @@ if (!DEFINED('EGP'))
include(LIB . 'control/scans.php');
use xPaw\SourceQuery\SourceQuery;
class scan extends scans
{
public static function mon($id, $players_get = false)
{
global $cfg, $sql, $html, $mcache;
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
if ($players_get)

View file

@ -2,16 +2,12 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
use xPaw\SourceQuery\SourceQuery;
class rcon
{
public static function cmd($server, $cmd = 'status')
{
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/SourceRcon.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
list($ip, $port) = explode(':', $server['address']);

View file

@ -4,17 +4,14 @@ if (!DEFINED('EGP'))
include(LIB . 'control/scans.php');
use xPaw\SourceQuery\SourceQuery;
class scan extends scans
{
public static function mon($id, $players_get = false)
{
global $cfg, $sql, $html, $mcache;
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
if ($players_get)

View file

@ -2,16 +2,12 @@
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
use xPaw\SourceQuery\SourceQuery;
class rcon
{
public static function cmd($server, $cmd = 'status')
{
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/SourceRcon.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
list($ip, $port) = explode(':', $server['address']);

View file

@ -4,17 +4,14 @@ if (!DEFINED('EGP'))
include(LIB . 'control/scans.php');
use xPaw\SourceQuery\SourceQuery;
class scan extends scans
{
public static function mon($id, $players_get = false)
{
global $cfg, $sql, $html, $mcache;
include(LIB . 'games/query/Buffer.php');
include(LIB . 'games/query/BaseSocket.php');
include(LIB . 'games/query/Socket.php');
include(LIB . 'games/query/SourceQuery.php');
$sq = new SourceQuery();
if ($players_get)