Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*-------SETTINGS-------*/
- $ts3_ip = 'ts.centrio-net.de';
- $ts3_queryport = 10011;
- $ts3_user = 'xxx';
- $ts3_pass = 'xxx';
- $ts3_port = 9987;
- /*----------------------*/
- $cldbid = $_GET['id'];
- require('ts3admin.class.php');
- $tsAdmin = new ts3admin($ts3_ip, $ts3_queryport);
- if($tsAdmin->getElement('success', $tsAdmin->connect())) {
- #login as serveradmin
- $tsAdmin->login($ts3_user, $ts3_pass);
- #select teamspeakserver
- $tsAdmin->selectServer($ts3_port);
- $clientdbinfo = $tsAdmin->clientDbInfo( $cldbid );
- $cuid = $clientdbinfo['data']['client_unique_identifier'];
- $clientids = $tsAdmin->clientGetIds( $cuid );
- $clientnick = $clientids['data']['client_nickname'];
- echo $clientnick;
- }else{
- echo 'Connection could not be established.';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement