Solved query token

Status
Not open for further replies.

ULDIN

Well-Known Member
Mar 14, 2016
95
33
108
Name of the script: Query Permissions token
Functions of the script: query permissions token code doing
Why do you want it: I need it for the website
Screenshots: no
Orginal source (if any): no
Other notes: Help me please
 
Last edited:

Kleberstoff

Knowledge Seeker
VIP
Dec 29, 2015
308
214
158
Code:
Name of the script:
Functions of the script:
Why do you want it:
Screenshots:
Orginal source (if any):
Other notes:
taken from here.
 

FarisDev

L oryh brx
Contributor
Jun 9, 2016
277
111
107
i dont understand man. you want it to make a token for admin server query?
 

FarisDev

L oryh brx
Contributor
Jun 9, 2016
277
111
107
Thats will work with you.
PHP:
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
require_once("config.php");
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://".$YATQA_username.":".$YATQA_password."@".$server_ip.":".$YATQA_queryport."/?server_port=".$server_port."&nickname=".$botname."");

$query = $ts3_VirtualServer->serverGroupGetByID("2");
$ts3_PrivilegeKey = $query->privilegeKeyCreate();
if you want it to display the token just type echo $ts3_PrivilegeKey
config :
PHP:
$YATQA_username = 'serveradmin';
$YATQA_password = 'Type here.';
$YATQA_queryport = '10011';
$server_ip = '127.0.0.1';
$server_port = '9987';
$botname = '[R4P3]Token-Bot%20['. mt_rand(0, 99).']';
Here you can download ts3 php framework :
https://github.com/planetteamspeak/ts3phpframework
 
Last edited:
Status
Not open for further replies.
Top