You might think now: ' Not another one... '
In some point you are right! It might be just another project ending in the sand..
BUT! I first didn't want to share and only use it for myself. So it's just some kind of: ' If I share it might help someone. '
That's the only perspective I look at it.
Demo Page:
http://ts3control.ath.cx/demo/
Forums:
http://ts3control.ath.cx/forums/
Let's get into the thick of it:
At first, let's take a look at the library.
It parses the server response and returns usable arrays with the returned information and provides error handling.
Supported are nearly all of the available query commands but the FTupload/FTdownload ones.
The documentation can be viewed here:
http://ts3control.ath.cx/docs/ts3Con...s3Control.html
A very simple example to get the players connected to the server with error handling/display would be:
PHP Code:
<?php
$server = array('host'=>'HOST','port'=>'10011','user'=>'USER','pass'=>'PASS','use'=>'1');
include('ts3control.class.php');
$ts3 = new ts3Control($server['host'],$server['port'],$server['user'],$server['pass'],false);
if($ts3->Connect())
{
echo "Connected.\n";
if($ts3->cmd_Login('OTHERUSER','HISPASSWORD'))
{
echo "Logged in.\n";
if($ts3->cmd_SelectServer($server['use']))
{
echo "Selected server ".$server['use'].".\n";
echo "\nClientList: ";
print_r($ts3->cmd_ClientList());
} else echo "Error selecting server.\n";
} else echo "Error logging in.\n";
echo "\nDisconnecting.";
$ts3->Disconnect();
} else echo "Error connecting.\n";
if($ts3->GetErrorCount() > 0)
{
echo "\n\nErrors: ";
print_r($ts3->GetAllErrorsFromList());
}
?>
Then I'll let you have a little preview of my Admin Interface.
I intend to make everything you CAN change possible to change through it.
But more to this when time comes..
Here are some pictures for now:
http://www.abload.de/gallery.php?key=trrXWWV2