mirror of
https://github.com/xPaw/PHP-Source-Query.git
synced 2026-05-18 13:43:33 +02:00
Add comments and fix whitespacing, no real changes
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
<?php
|
||||
class SourceQueryBuffer
|
||||
{
|
||||
/**
|
||||
* Class written by xPaw
|
||||
*
|
||||
* Website: http://xpaw.ru
|
||||
* GitHub: https://github.com/xPaw/PHP-Source-Query-Class
|
||||
*/
|
||||
|
||||
class SourceQueryBuffer
|
||||
{
|
||||
/**
|
||||
* Buffer
|
||||
*
|
||||
@@ -167,4 +174,4 @@ class SourceQueryBuffer
|
||||
|
||||
return $String;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,12 @@
|
||||
<?php
|
||||
class SourceQueryException extends Exception
|
||||
{
|
||||
/**
|
||||
* Class written by xPaw
|
||||
*
|
||||
* Website: http://xpaw.ru
|
||||
* GitHub: https://github.com/xPaw/PHP-Source-Query-Class
|
||||
*/
|
||||
|
||||
class SourceQueryException extends Exception
|
||||
{
|
||||
// Exception thrown by SourceQuery class
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<?php
|
||||
class SourceQueryRcon
|
||||
{
|
||||
/**
|
||||
* Class written by xPaw
|
||||
*
|
||||
* Website: http://xpaw.ru
|
||||
* GitHub: https://github.com/xPaw/PHP-Source-Query-Class
|
||||
*/
|
||||
|
||||
class SourceQueryRcon
|
||||
{
|
||||
/**
|
||||
* Points to buffer class
|
||||
*
|
||||
@@ -248,4 +255,4 @@ class SourceQueryRcon
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,13 @@
|
||||
<?php
|
||||
class SourceQuerySocket
|
||||
{
|
||||
/**
|
||||
* Class written by xPaw
|
||||
*
|
||||
* Website: http://xpaw.ru
|
||||
* GitHub: https://github.com/xPaw/PHP-Source-Query-Class
|
||||
*/
|
||||
|
||||
class SourceQuerySocket
|
||||
{
|
||||
public $Socket;
|
||||
public $Engine;
|
||||
|
||||
@@ -145,4 +152,4 @@ class SourceQuerySocket
|
||||
|
||||
return $this->Buffer->GetLong( ) == -2;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,16 +1,4 @@
|
||||
<?php
|
||||
if( !defined( '__DIR__' ) ) // PHP < 5.3
|
||||
{
|
||||
define( '__DIR__', dirname( __FILE__ ) );
|
||||
}
|
||||
|
||||
require __DIR__ . '/Exception.class.php';
|
||||
require __DIR__ . '/Buffer.class.php';
|
||||
require __DIR__ . '/Socket.class.php';
|
||||
require __DIR__ . '/Rcon.class.php';
|
||||
|
||||
class SourceQuery
|
||||
{
|
||||
/**
|
||||
* Class written by xPaw
|
||||
*
|
||||
@@ -21,6 +9,18 @@ class SourceQuery
|
||||
* I used it as a reference at some points.
|
||||
*/
|
||||
|
||||
if( !defined( '__DIR__' ) ) // PHP < 5.3
|
||||
{
|
||||
define( '__DIR__', dirname( __FILE__ ) );
|
||||
}
|
||||
|
||||
require __DIR__ . '/Exception.class.php';
|
||||
require __DIR__ . '/Buffer.class.php';
|
||||
require __DIR__ . '/Socket.class.php';
|
||||
require __DIR__ . '/Rcon.class.php';
|
||||
|
||||
class SourceQuery
|
||||
{
|
||||
/**
|
||||
* Values returned by GetChallenge()
|
||||
*
|
||||
@@ -498,4 +498,4 @@ class SourceQuery
|
||||
|
||||
return $this->Rcon->Command( $Command );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user