Community Forums Today's Posts     Member List     Archive    
Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    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

  2. #2
    Join Date
    Jun 2002
    Location
    Everett, WA, USA
    Posts
    333
    Nice work, going to make me upgrade to php 5 aren't you?

  3. #3
    Join Date
    Oct 2004
    Location
    Germany
    Posts
    1,710
    To be honest... Yes I am :-P

  4. #4
    Join Date
    Aug 2004
    Location
    Canada
    Posts
    38
    now if only i knew php, i could code some scripts.

    but i dont GRR.

    i h8 you confusing php lol

  5. #5
    Bastian Guest
    I just noticed that libacts2 is still missing in the official Third Party Resources section.

    You might want to add it there.

  6. #6
    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.

  7. #7
    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.

  8. #8
    Join Date
    Oct 2004
    Location
    Germany
    Posts
    1,710
    You are doing it wrong.

  9. #9
    Join Date
    Feb 2008
    Location
    M.R.Q.
    Posts
    2
    can you give me a working code snippet that i can test.

  10. #10
    Join Date
    Oct 2003
    Location
    Germany
    Posts
    2,296
    Please check the example folder from the package...

  11. #11
    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

    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;
    }
    if i call the function i got a false back...
    eg:

    if(FUNCTION)
    {
    echo "Offline";
    }
    else
    {
    echo "error";
    }

    your code for stop
    Code:
    #  function sadmin_serverStop() {
    
    # return ($this->_fastcall("SERVERSTOP") == CYTS_OK);
    
    # }
    what is wrong?
    other function (db access for member edit, msgs to server/players, banlists, show subservers) works

  12. #12
    Join Date
    Jul 2006
    Posts
    1,573
    Well,

    Try to do so:

    PHP Code:
    if(!cyts->sadmin_serverStop()) {
      echo 
    "error stopping server";
    } else {
      echo 
    "stopped server on port" $port;
    }; 
    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.

    By the way: wrong topic :-P

  13. #13
    Join Date
    Feb 2008
    Location
    Germany
    Posts
    15
    i know

    but ive found the fault....

    the class are incorrect!

    original class function:
    Code:
    #  function sadmin_serverStop() {
    
    # return ($this->_fastcall("SERVERSTOP") == CYTS_OK);
    
    # }
    correct working function:
    Code:
    	function sadmin_serverStop($sPort) {
    		return ($this->_fastcall("SERVERSTOP $sPort") == CYTS_OK);	
    	}
    the telnet command serverstop need the port of the server, without the port, the server couldnt be stopped...

    after my first post ive read the class source ... the class are simply so i could found the error...

  14. #14
    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

  15. #15
    Join Date
    Aug 2007
    Location
    Kentucky
    Posts
    39
    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

  1. New Teamspeak Query script for php: Teamspeak Display
    By MrGuide@NL in forum [TeamSpeak 2] Addons & Scripts
    Replies: 347
    Last Post: 06-08-2010, 17:17
  2. [Release] TeamSpeak Status Checker
    By Germeshausen.de in forum [TeamSpeak 2] Addons & Scripts
    Replies: 59
    Last Post: 21-01-2006, 07:47
  3. TeamSpeak RC2 and Freebsd 5.3
    By NeonLibra in forum [TeamSpeak 2] Server Support
    Replies: 10
    Last Post: 23-05-2005, 11:03

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •