Results 1 to 15 of 20
-
23-09-2006, 13:35 #1
-= TeamSpeak Fanatic =-
- Join Date
- Oct 2004
- Location
- Germany
- Posts
- 1,710
[Release] libacts2 - successor of CyTS - TeamSpeak 2 PHP5 library
libacts2 - PHP 5 TeamSpeak 2 library
libacts2 is a new flexible object-oriented library for TeamSpeak 2.
It is the successor of CyTS which is used in many TS2 projects for PHP.
Main Features:
- Access channel and userlists and read server and subserver statistics without authentication on any server
- Kick or move users or whole channels or manage your user database as a server admin
- Ban/Unban users, manage (start, stop, log) your subservers, message whole servers or a user on any subserver
What's new in comparison with CyTS
- Now fully object-oriented: handle Hosts, Servers, Channels and Clients as Objects
- Session persistency: Put a host or server object into a session and it will automatically reconnect and relogin in every script that uses the session
- The servers are mapped into a tree that can easily be (recursively) iterated
- Special functions like: kick, ban, remove can be applied to whole channels, servers or even hosts
- Error handling with Exceptions
- Many performance increases
Requirements:
PHP >= 5.1
License:
GNU General Public License
Homepage:
libacts2
Manual:
libacts2 Manual
Forum topic at Planetteamspeak.com
http://forum.planetteamspeak.com/showthread.php?t=81
Download:
libacts2 release
-
24-09-2006, 02:06 #2
-= TeamSpeak Addict =-
- Join Date
- Jun 2002
- Location
- Everett, WA, USA
- Posts
- 333
Nice work, going to make me upgrade to php 5 aren't you?
-
24-09-2006, 07:27 #3
-= TeamSpeak Fanatic =-
- Join Date
- Oct 2004
- Location
- Germany
- Posts
- 1,710
To be honest... Yes I am :-P
-
26-09-2006, 04:49 #4
now if only i knew php, i could code some scripts.
but i dont GRR.
i h8 you confusing php lol
-
27-12-2006, 01:19 #5Bastian Guest
I just noticed that libacts2 is still missing in the official Third Party Resources section.
You might want to add it there.
-
18-01-2007, 10:53 #6
-= TeamSpeak Lover =-
- Join Date
- Jun 2004
- Location
- USA
- Posts
- 88
I wish someone would make a new Viewer app. I run a php based website and making a viewer from sratch is hard and beyond my time constraints i wish a faq could be made on how to convert the old viewer over. so that we that use custom sites and convert it easily.
-
07-02-2008, 04:19 #7
-= TeamSpeak User =-
- Join Date
- Feb 2008
- Location
- M.R.Q.
- Posts
- 2
I am having problems with Deleting users from DB. Returns always false.
Also i have problems with slogin.
Any idea?
Is there maybe some newer class?
What i need to do is adding and removing users using php.
-
07-02-2008, 13:25 #8
-= TeamSpeak Fanatic =-
- Join Date
- Oct 2004
- Location
- Germany
- Posts
- 1,710
You are doing it wrong.
-
07-02-2008, 13:43 #9
-= TeamSpeak User =-
- Join Date
- Feb 2008
- Location
- M.R.Q.
- Posts
- 2
can you give me a working code snippet that i can test.
-
07-02-2008, 17:00 #10
-= TeamSpeak Servant =-
- Join Date
- Oct 2003
- Location
- Germany
- Posts
- 2,298
Please check the example folder from the package...
-
10-02-2008, 21:09 #11
-= TeamSpeak User =-
- Join Date
- Feb 2008
- Location
- Germany
- Posts
- 15
i use your class! (cyts.class.php)
but the function serverstop and serverstart dosent work!
$port = serverport eg 8767
$tstcp = 51234
$tsuser = account name for a superadmin account
$tspass = password for the account
if i call the function i got a false back...Code:function serverStop($port,$tstcp,$tsuser,$tspass) { $cyts = new cyts; $cyts->connect($tsip,$tstcp, $port); $cyts->slogin($tsuser,$tspass); $serverStop = $cyts->sadmin_serverStop(); $cyts->disconnect(); return $serverStop; }
eg:
if(FUNCTION)
{
echo "Offline";
}
else
{
echo "error";
}
your code for stop
what is wrong?Code:# function sadmin_serverStop() { # return ($this->_fastcall("SERVERSTOP") == CYTS_OK); # }
other function (db access for member edit, msgs to server/players, banlists, show subservers) works
-
11-02-2008, 11:15 #12
-= TeamSpeak Fanatic =-
- Join Date
- Jul 2006
- Posts
- 1,573
Well,
Try to do so:
If this returns always false, check whether there is any error before this code, for example the login doesn't work or something like that.PHP Code:if(!cyts->sadmin_serverStop()) {
echo "error stopping server";
} else {
echo "stopped server on port" . $port;
};
By the way: wrong topic :-P
-
11-02-2008, 13:46 #13
-= TeamSpeak User =-
- Join Date
- Feb 2008
- Location
- Germany
- Posts
- 15
i know

but ive found the fault....
the class are incorrect!
original class function:
correct working function:Code:# function sadmin_serverStop() { # return ($this->_fastcall("SERVERSTOP") == CYTS_OK); # }
the telnet command serverstop need the port of the server, without the port, the server couldnt be stopped...Code:function sadmin_serverStop($sPort) { return ($this->_fastcall("SERVERSTOP $sPort") == CYTS_OK); }
after my first post ive read the class source ... the class are simply so i could found the error...
-
20-02-2008, 08:46 #14
-= TeamSpeak Fanatic =-
- Join Date
- Oct 2004
- Location
- Germany
- Posts
- 1,710
Code:[TS] help serverstop Name serverstop - stop a virtual server Usage serverstop (no parameters) serverstop will stop the selected virtual server (-> sel). To be able to use the server again, you have to start it (-> serverstart).
Strange but anyway hmm I don't wanna think about it any further
-
14-08-2008, 01:23 #15
Sorry for being so late, but how do I set this up so it will merge with the register page for PHPNuke for our website?
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
New Teamspeak Query script for php: Teamspeak Display
By MrGuide@NL in forum [TeamSpeak 2] Addons & ScriptsReplies: 347Last Post: 06-08-2010, 17:17 -
[Release] TeamSpeak Status Checker
By Germeshausen.de in forum [TeamSpeak 2] Addons & ScriptsReplies: 59Last Post: 21-01-2006, 07:47 -
TeamSpeak RC2 and Freebsd 5.3
By NeonLibra in forum [TeamSpeak 2] Server SupportReplies: 10Last Post: 23-05-2005, 11:03





