Forum

Results 1 to 10 of 10
  1. #1
    Join Date
    December 2009
    Location
    Germany
    Posts
    9

    [IN DEV] Yet another TS3 Query Library + Admin Interface (Webbased; PHP)

    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
    Last edited by prodigy; January 3rd, 2010 at 01:03 PM.

  2. #2
    Join Date
    December 2009
    Location
    Germany
    Posts
    9
    really nice - good job - nice design
    am very excited about the final version
    sooo work

    mfg Terrier

  3. #3
    Join Date
    December 2009
    Location
    Germany
    Posts
    8
    Hey thatīs cool !
    How many time you think to release ?

    Great Job

  4. #4
    Join Date
    December 2009
    Location
    Belgium
    Posts
    7
    thats realy nice design

    could you also make it so that you can start stop the teamspeak deamon itself? (not just virtual server) would be easy for me then to alwayse login into shh to start it back up (linux ofc)

  5. #5
    Join Date
    December 2009
    Location
    Germany
    Posts
    9
    I don't want to make wild guesses or wrong promises.
    But I think in about a month it should be ready for a first release.

    starting the TS3 daemon itself could get me into some trouble, because you would need unix login data to execute the command
    stopping is no problem, since there is a command for it

    you could make a ' pseudo-stop ', stopping all virtual servers but keeping the daemon running

  6. #6
    Join Date
    December 2009
    Location
    Belgium
    Posts
    7
    php exec() function? (works for linux and windows) for linux can be example exec("/path/to/ts/teamspeak.sh start/stop"); (and with echo or variable betwene you can even print result)
    and for windows exec() works to exec("c:\\program files\\teamspeak server\\teamspeak.bat start/stop")
    there are alredy .bat and .sh files availble to use with teamspeak to start/stopr/restart etc
    and yes need unix acess, most users got it exept those who rent server so you could make it optional/plugin for it

    if you need webspace to test it i can give you free webspace witch ssh to make this, just give me a pm

  7. #7
    Join Date
    December 2009
    Location
    Germany
    Posts
    9
    i know of the exec() function and how it works, but thanks
    the problem is: it's unsecure, especially if you give a script access to a real unix user..
    but i can implement it, thats no problem

    and for the space, thanks, but i got a root available i'm currently ' playing ' on


    //edit:
    I got a new preview for you guys!
    Last edited by prodigy; December 29th, 2009 at 04:50 PM.

  8. #8
    Join Date
    December 2009
    Location
    Germany
    Posts
    9
    I set up a demo page where you can see the current development progress.
    I try to update it every day.

    http://ts3control.ath.cx/demo/

    Please report any bugs you may find to the forums:
    http://ts3control.ath.cx/forums/

  9. #9
    Join Date
    December 2009
    Location
    UK
    Posts
    88
    Looking promising.

    Text could do with being a little bigger, and maybe a light grey font would be a little easier on the eyes

    What other functionality will be included? The ability to edit permissions, especially those of guest server query and server admins in the WI would be a great addition

  10. #10
    Join Date
    December 2009
    Location
    Germany
    Posts
    9
    currently the user permissions are totally controlled by teamspeak
    you log in with your server query login and therefore you got all the permissions you would have anyway

    i plan to add permission control, yes

    the layout can be changed completely to your needs with a little .css and .tpl (template) editing
    you have full control over the look of the page
    so changing text size should be the easiest task

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [TS3QueryLib.Net] .Net Query Port Library
    By Scordo in forum Tools / Web Based
    Replies: 135
    Last Post: June 9th, 2017, 12:00 AM
  2. [WIP] JTS3ServerQuery - Java Server Query Library
    By Stefan1200 in forum Tools / Web Based
    Replies: 78
    Last Post: November 20th, 2016, 12:29 PM
  3. [No Bug] Admin Query Interface removed
    By Zppix in forum Client Support
    Replies: 59
    Last Post: February 1st, 2015, 03:15 PM
  4. Replies: 6
    Last Post: May 21st, 2013, 02:10 PM
  5. TS3 Web interface server query not working
    By chackonman in forum Tools / Web Based
    Replies: 3
    Last Post: September 20th, 2010, 01:07 AM

Posting Permissions

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