PDA

View Full Version : How to interface Teamspeak with a Flight server?


9GeeS
08-30-2009, 03:26 PM
hi James

i have a problem to let the players login to the teamspeak server using their accounts in the forum. do you know which software can make that happened? would you please help me with that? thank you.:)

L. D. James
09-13-2009, 06:43 AM
hi James

i have a problem to let the players login to the teamspeak server using their accounts in the forum. do you know which software can make that happened? would you please help me with that? thank you.:)

Try:

<?php

// load library
require("cyts.class.php");

// config data
$host = "127.0.0.1";
$username = "superadmin";
$password = "password";
$udpport = 8767;
$queryport = 51234;

// check whether get variables are existing
if(isset($_GET["new_username"]) and isset($_GET["new_password"])) {
$ts = new cyts();
$ts->connect($host, $queryport, $udpport) || die("connection failed");
$ts->slogin($username, $password) || die("login failed");
$ts->admin_dbUserAdd($_GET["new_username"], $_GET["new_password"]) || die("registration failed");
echo "registration of {$_GET["new_username"]} successful";
$ts->disconnect();
}

?>

-- L. James

--
L. D. James
ljames@apollo3.com
www.apollo3.com/~ljames (http://www.apollo3.com/%7Eljames)