View Full Version : Some Useful PHP-Scripts (Webregister, SA IdleKick, WebInterface Access)
Hi Folks,
while working on my current TS-Projects I made some more or less useful PHP-Scripts
and i want to offer them here now. You can use / copy / modify them under the GNU/GPL license.
ServerAdmin Kick Idler
Registrating TS-Accounts with PHP
Accessing the Webinterface with PHP
While I implemented some functions of the tcpquery interface in PHP I noticed that there are all possibilites to implement an idle kick script with only server admin permissions. So I made one...
Some screenshot of a possible form is available here:
http://www.midlink.org/cyts/mods/kickidler.png
Also made some basic PHP-Script allowing the users on my site to register on the TS-Server. Also included it here.
And last but not least I tried to access the Webinterface with PHP functions and I think I made it :)
Some screenshot:
http://www.midlink.org/cyts/mods/settings.png
You can get the whole package with all scripts and basic HTML-Forms here:
http://www.midlink.org/cyts/mods/tools.zip
n00belit3
17-04-2005, 10:21
Awesome :D
Check your pms please you might be able to help me with something.
WalkaboutTigger
16-05-2005, 21:30
Are any of these fine admin tools available in English?
The scripts I posted above are all in English.
The scripts in my signature are:
TSC/TMT (multilanguage): http://files.foxnetwork.de/TSC/TSC_install.exe
TAP (multilingual as well but not released yet)
CyTS (PHP-Class, English documentation)
direwolf
25-06-2005, 11:34
Hello DarkCyrus
Thank you for your your TS2 class script.
I used your example to get the channel and player list for my TS2 server
require("cyts.class.php");
$cyts = new cyts;
$cyts->connect("xxx.xxx.xxx.xxx", 51234, 8767);
$list = $cyts->info_channelNameList();
foreach ($list as $channel) {
echo "$channel<br />";
}
$list2 = $cyts->info_playerNameList();
foreach ($list2 as $player){
echo "$player<br />";
}
$cyts->disconnect();
Could you help me to display the user names of those that are connected against the channel they are in?
No problem
You can use the standart channel information fetcher info_channelList() to get an array of all channels with their information and then go through each Channel and get the users in it with info_channelUser($CHANNELID);
Some example code for you.
require("cyts.class.php");
$cyts = new cyts;
$cyts->connect("xxx.xxx.xxx.xxx", 51234, 8767);
$list = $cyts->info_channelList();
foreach ($list as $channel) {
echo "$channel[name]: ";
$chanUsers = $cyts->info_channelUser($channel["id"]);
foreach ($chanUsers as $user) {
echo "$user[nick] ";
}
echo "<br />";
}
direwolf
02-07-2005, 14:48
Hey Thanks a heap
Works great!!!
:)
SquadVoice
10-03-2006, 06:17
Hello
I got a Questions
1. Will This Script Alow The Users To Creat a New Team Speak Server Instad of a chanel .
in a room
Hi Folks,
while working on my current TS-Projects I made some more or less useful PHP-Scripts
and i want to offer them here now. You can use / copy / modify them under the GNU/GPL license.
ServerAdmin Kick Idler
Registrating TS-Accounts with PHP
Accessing the Webinterface with PHP
While I implemented some functions of the tcpquery interface in PHP I noticed that there are all possibilites to implement an idle kick script with only server admin permissions. So I made one...
Some screenshot of a possible form is available here:
http://www.midlink.org/cyts/mods/kickidler.png
Also made some basic PHP-Script allowing the users on my site to register on the TS-Server. Also included it here.
And last but not least I tried to access the Webinterface with PHP functions and I think I made it :)
Some screenshot:
http://www.midlink.org/cyts/mods/settings.png
You can get the whole package with all scripts and basic HTML-Forms here:
http://www.midlink.org/cyts/mods/tools.zip
howndawg
15-03-2006, 00:12
I have it installed on my webserver, but it still shows all the ($CYTS_VERSION$} stuff and that crap.
I have changed my info in the settings, register, and kickidler.php files. and still doesnt work.
any help?
Do you have PHP installed on the webserver?
Which file did you point your browser to?
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.