Add comments and fix whitespacing, no real changes

pull/13/head
xPaw 12 years ago
parent e27db7670f
commit bc9d574122

@ -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 );
} }
} }

@ -31,7 +31,7 @@
$Query->Disconnect( ); $Query->Disconnect( );
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html>
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Source Query PHP Class</title> <title>Source Query PHP Class</title>

Loading…
Cancel
Save