[REQ] Client info

Sempz

Member
Joined
May 14, 2016
Messages
23
Reaction score
2
Points
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
Joined
Mar 31, 2016
Messages
2,570
Solutions
12
Reaction score
2,857
Points
381
Does something like that works for you?
5800ceccc489d9ce94b033b2c4900538.png
 

Alligatoras

Administrator
Joined
Mar 31, 2016
Messages
2,570
Solutions
12
Reaction score
2,857
Points
381
I want a webscript , i forgot to mention.
Hmmm....well...i really don't know if there is any....but with php framework everything can be done!
 

JetFox

Active Member
Joined
Sep 25, 2015
Messages
175
Reaction score
76
Points
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
Joined
May 14, 2016
Messages
23
Reaction score
2
Points
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
Joined
Jun 9, 2016
Messages
277
Reaction score
111
Points
107
Just try to use search button.
There is many post's about that.
 
Top