[REQ] Client info

Sempz

Member
May 14, 2016
23
2
35
Not using the script request template/ sample.
Hi , i want an script which it would get client informations Like:

Example:
Name: "John"
Groups: "Counter strike , League of Legends etc..."
Platform: "linux , windows , etc..."


i was searching in google and in many sites , but i didn't found something similar to this.
I dont have any source's or image's , sorry.
Help Please :D
I want a webscript , i forgot to mention.
 
Last edited:

Alligatoras

Administrator
Mar 31, 2016
2,570
12
2,857
381
Does something like that works for you?
5800ceccc489d9ce94b033b2c4900538.png
 

JetFox

Active Member
Sep 25, 2015
175
76
73
PHP:
  /*
  *Function to show TSViewer
  */
  public static function TSViewer(){
require_once("Commands/libraries/TeamSpeak3/TeamSpeak3.php");
        \TeamSpeak3::init();
$user = "username";
$pass = "password";
$ip = 127.0.0.1;
$query = 10011;
$port = 9987;
$ts3_VirtualServer = \TeamSpeak3::factory("serverquery://" . $user . ":" . $pass. "@" . $ip. ":" .$query . "/?server_port={$port}");

$ban = $error ='';

// fill the variables to your own accord

echo "<div>
<table class=\"table table-bordered table-condensed table-responsive \">
<thead>
<tr bgcolor='#ffd700'>
<th class='text-center'>Name</th>
<th class='text-center'>UID</th>
<th class='text-center'>DbID</th>
</tr>
</thead>
<tbody>";
foreach($ts3_VirtualServer->clientList() as $ts3_Client){
if($ts3_Client["client_type"]) continue;
$dbinfo = $ts3_Client->infoDb();
$cluid = $dbinfo['client_unique_identifier'];
$cldb = $dbinfo['client_database_id'];
echo"
<tr bgcolor='white'>
<td class='text-center'><a href='#'>$ts3_Client</a></td>
<td class='text-center'>$cluid</td>
<td class='text-center'>$cldb</td>
</tr>";
}
  }
 }
}

Layout for ya... just go ahead and figure out the rest of the variables.
 
Last edited:

Sempz

Member
May 14, 2016
23
2
35
PHP:
  /*
  *Function to show TSViewer
  */
  public static function TSViewer(){
require_once("Commands/libraries/TeamSpeak3/TeamSpeak3.php");
        \TeamSpeak3::init();
$user = "username";
$pass = "password";
$ip = 127.0.0.1;
$query = 10011;
$port = 9987;
$ts3_VirtualServer = \TeamSpeak3::factory("serverquery://" . $user . ":" . $pass. "@" . $ip. ":" .$query . "/?server_port={$port}");

$ban = $error ='';

// fill the variables to your own accord

echo "<div>
<table class=\"table table-bordered table-condensed table-responsive \">
<thead>
<tr bgcolor='#ffd700'>
<th class='text-center'>Name</th>
<th class='text-center'>UID</th>
<th class='text-center'>DbID</th>
</tr>
</thead>
<tbody>";
foreach($ts3_VirtualServer->clientList() as $ts3_Client){
if($ts3_Client["client_type"]) continue;
$dbinfo = $ts3_Client->infoDb();
$cluid = $dbinfo['client_unique_identifier'];
$cldb = $dbinfo['client_database_id'];
echo"
<tr bgcolor='white'>
<td class='text-center'><a href='#'>$ts3_Client</a></td>
<td class='text-center'>$cluid</td>
<td class='text-center'>$cldb</td>
</tr>";
}
  }
 }
}

Layout for ya... just go ahead and figure out the rest of the variables.
I dont know how to do that º-º
 

FarisDev

L oryh brx
Contributor
Jun 9, 2016
277
111
107
Just try to use search button.
There is many post's about that.
 
Top