Community Forums Today's Posts     Member List     Archive    
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2002
    Location
    Silicon Valley
    Posts
    45

    question about how webpost uses tpcquery

    In earlier post, gryphon wrote,
    "For an understand of what the script is doing...the server sends info like how many people are online, the server name, ip and ports, to webpost.php, this requires no ports. It then triggers the script to call back to the server through the TCPquery port and find out the usernames and channel names of the server and then stores this information in the database. This is the only tim that the tcpquery port is used, and really the only port that should need to be used by the script."

    Does webpost use the same commands available when you telnet to tcpquery port or does it use some other commands? I browsed php code and didn't see the standard commands (shown here http://www.teamspeak.org/forums/show...ight=dbuseradd) anywhere.

    Can you provide a little more detail how it works w/ tcpquery port?

    The reason I ask is I want to create a TS2 registered user when we create a user account for our web site. (http://www.teamspeak.org/forums/show...&threadid=7736)

  2. #2
    Join Date
    Dec 2002
    Location
    Germany
    Posts
    1,763
    To get a list of the commands that are available on the TCPQueryPort connect to it via telnet.

    Example

    telnet localhost 51234

    replace localhost with the ip or dns name of your server.
    replace 51234 with the port in your server.ini for the TCPQueryPort (51234 is the deafult).

    Type help and you will get a list of all commands.
    Type help command and you will get a short description of the command.
    You can also find the descriptions of the commands in the tcpquerydocs directory of the server installation.

    Here are the commands you must send to create a user account:

    sel 8767
    login admin xxxx
    dbuseradd Test pass pass 0

    This will add a registred user to the server that runs on port 8767.
    The user will have the login name Test and the password pass.
    The created user will be a normal user. If you want to create a server admin put a 1 instead of a 0 at the end of the dbuseradd command.
    You must use the login data of a user that is server admin for that server in the login command.

    You can test all these commands manually via telnet like I described above.
    Look in this thread for examples on how to send the commands via PHP.

    Other commands that might interst you are dbuserlist and dbuserdel.
    Some of the TCPQueryPort commands require you to login as superadmin first. Use the slogin command for this.

    EDIT: It may be possible that the tcpquerydocs directory is only present in the latest developer release of the server. You can get the server or the tcpquerydocs directory alone here.
    Last edited by Dummer Sack; 07-09-2003 at 21:01.

  3. #3
    Join Date
    Aug 2002
    Location
    Silicon Valley
    Posts
    45
    Dummer Sack, thanks for the excellent post. I had tried the telnet and help, but your link to how to do it in php is what I need. Thanks.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Webpost, Scripts question
    By jma2674 in forum [TeamSpeak 2] Addons & Scripts
    Replies: 8
    Last Post: 07-01-2006, 00:33
  2. ASP webpost question
    By cptwenky in forum [TeamSpeak 2] Addons & Scripts
    Replies: 5
    Last Post: 15-07-2005, 19:45
  3. Webpost question
    By ttleser in forum [TeamSpeak 2] Addons & Scripts
    Replies: 6
    Last Post: 16-04-2004, 05:49
  4. Webpost v4.0.2 doesn't show server (again)
    By stevil in forum [TeamSpeak 2] Addons & Scripts
    Replies: 0
    Last Post: 30-07-2003, 02:57
  5. WebPost Question
    By NeutralGold in forum [TeamSpeak 2] Server Support
    Replies: 0
    Last Post: 27-01-2003, 23:22

Posting Permissions

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