Teamspeak 3 PHP Framework Client ID -


i'm searching whole day , can't find how client id if have teamspeak name user.

my current code (just works identity id):

function tsverification($verification) {         require_once("../ts3phpframework-master/libraries/teamspeak3/teamspeak3.php");         $ts3_virtualserver = teamspeak3::factory("serverquery://serveradmin:xxxxxx@xxx.xxx.xxx.xx:10011/?server_port=9987&nickname=poker");         $client = $ts3_virtualserver->clientgetbyuid("$verification");         $ts3_virtualserver->clientpoke($client, "poke message"); } 

i found solution myself:

function tsverification($verification) {     require_once("../ts3phpframework-master/libraries/teamspeak3/teamspeak3.php");     $ts3_virtualserver = teamspeak3::factory("serverquery://serveradmin:xxxxxx@xxx.xxx.xxx.xx:10011/?server_port=9987&nickname=poker");      if (substr($verification, -1, 1) == "=" && strlen($verification) == 28) { // via uid         $client = $ts3_virtualserver->clientgetbyuid("$verification");         $ts3_virtualserver->clientpoke($client, "poker poked you.");     } else { // via teamspeak name         $ts3_virtualserver->clientgetbyname("$verification")->poke("poker poked you.");      } } 

Comments

Popular posts from this blog

loops - Spock: How to use test data with @Stepwise -

amazon web services - S3 Pre-signed POST validate file type? -