Create random server login ???

mert456

Member
Joined
Sep 17, 2015
Messages
1
Points
33
Hello,

Teamspeak 3 server rendering scriptine token code, such as random query login would like to create

if(isset($_POST['submit'])){

if(isset($_POST['servername']) && isset($_POST['slots']) && is_numeric($_POST['slots']) && $_POST['slots'] == floor($_POST['slots']) && $_POST['slots'] <= $cfg->appSettings->maxSlots){

$ts3_ServerInstance = TeamSpeak3::factory("serverquery://".$cfg->teamspeakInfo->username.":".$cfg->teamspeakInfo->password."@".$cfg->teamspeakInfo->host.":".$cfg->teamspeakInfo->portQuery);





$ts3_NewServer = $ts3_ServerInstance->serverCreate(array(

"virtualserver_name" => htmlspecialchars($_POST['servername']),

"virtualserver_maxclients" => $_POST['slots'],
'virtualserver_weblist_enabled' => '0',
'virtualserver_log_client' => '1',
'virtualserver_log_query' => '1',
'virtualserver_log_channel' => '1',
'virtualserver_log_permission' => '1',
'virtualserver_log_server' => '1',
'virtualserver_log_filetransfer' => '1',
'virtualserver_welcomemessage' => 'Hello',
'virtualserver_hostmessage_mode' => '2',
'virtualserver_hostmessage' => 'Wellcome',
'virtualserver_hostbanner_url' => '',
'virtualserver_hostbanner_gfx_url' => '',
'virtualserver_hostbanner_mode' => '2',
'virtualserver_hostbutton_url' => ',
'virtualserver_hostbutton_gfx_url' => '',
'virtualserver_hostbutton_tooltip' => '',
'virtualserver_download_quota' => '-1',
'virtualserver_upload_quota' => '-1',
'virtualserver_max_download_total_bandwidth' => '-1',
'virtualserver_max_upload_total_bandwidth' => '-1',
'virtualserver_codec_encryption_mode' => 0, //0=einstellbar 1=aus 2=aus (opt_codec+1)

));

echo '



<div class="alert alert-dismissible alert-success"><button type="button" class="close" data-dismiss="alert">&times;</button><strong>
TeamSpeak 3 Created!</strong>

<br>
<br>
Server Name: '.htmlspecialchars($_POST['servername']).'<br>
Ip Adres: '.$ts3_ServerInstance->getAdapterHost().':'.$ts3_NewServer['virtualserver_port'].'</br>

Admin Token: '.$ts3_NewServer['token'].'<br>


<center><a href="ts3server://'.$ts3_ServerInstance->getAdapterHost().':'.$ts3_NewServer['virtualserver_port'].'?token='.$ts3_NewServer['token'].'" class="btn btn-primary">Hemen Sunucuya Bağlan</a></center>



-----------------------------------------------------------------------------------------------
Server Name: '.htmlspecialchars($_POST['servername']).'<br>
Ip Adres: '.$ts3_ServerInstance->getAdapterHost().':'.$ts3_NewServer['virtualserver_port'].'</br>
Admin Token: '.$ts3_NewServer['token'].'<br>
Example: Query Login : '.$ts3_NewServer['Random Query login'.'
-----------------------------------------------------------------------------------------------
create random query Login like serveradmin login
 

Top