1
0
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:
xPaw
2012-10-25 15:54:39 +03:00
parent e27db7670f
commit bc9d574122
6 changed files with 925 additions and 897 deletions
+10 -3
View File
@@ -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;
} }
} }
+10 -3
View File
@@ -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
} }
+10 -3
View File
@@ -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;
} }
} }
+10 -3
View File
@@ -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;
} }
} }
+13 -13
View File
@@ -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 );
} }
} }
+1 -1
View File
@@ -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>