Add comments and fix whitespacing, no real changes

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

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

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

Loading…
Cancel
Save