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