The Client Platform Script Dosen't Work For Me Can You Help

MRBOBOGAMER

Member
Jun 17, 2016
8
0
33
Im Using This Script


PHP:
<?PHP             
echo "<strong>Username: </strong><i>" . $ts3_Client .
"</i><strong><br>Unique ID: </strong><i>" . $ts3_Client["client_unique_identifier"]  .
"</i><strong><br>Database ID: </strong><i>". $ts3_Client['client_database_id'] .
"</i><strong><br>Client version: </strong><i>". $ts3_Client['client_version'] .
"</i><strong><br>Total connections: </strong><i>". $ts3_Client['client_totalconnections'] .
"</i><strong><br>Platform: </strong><i>". $ts3_Client['client_platform'] .
"</i><strong><br>Country: </strong><i>". $ts3_Client['client_country'] . "</i>";
}
                        ?>
 

MRBOBOGAMER

Member
Jun 17, 2016
8
0
33
PHP:
// load framework files
require_once("libraries/TeamSpeak3/TeamSpeak3.php");
// connect to local server, authenticate and spawn an object for the virtual server on port 9987
$ts3_VirtualServer = TeamSpeak3::factory("serverquery://username:[email protected]:10011/?server_port=9987");
// query clientlist from virtual server and filter by platform
$arr_ClientList = $ts3_VirtualServer->clientList(array("client_platform" => "Windows"));
// walk through list of clients
foreach($arr_ClientList as $ts3_Client)
{
echo $ts3_Client . " is using " . $ts3_Client["client_platform"] . "<br />\n";
}
 

EscuderoKevin

Well-Known Member
Jul 2, 2015
380
181
130
PHP:
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
    $connect = "serverquery://username:[email protected]:10011/?server_port=9987";
    $ts3 = TeamSpeak3::factory($connect);

  
    foreach ($ts3->clientList(array('client_platform' => 'windows' as $client) {
        $clientuid = $client->client_unique_identifier;
        $client_nickname = $client->client_nickname;
        $client_database_id = $client->client_database_id;
        $version  = $client->client_version;
        $totalconex = $client->client_totalconnections;
        $country = $client->client_country;
        $plataform = $client->client_plataform;
        $client_clid = $client->clid;
         break;
    }

Then:
PHP:
echo "<strong>Username: </strong><i>" . $client_nickname .
"</i><strong><br>Unique ID: </strong><i>" . $clientuid .
"</i><strong><br>Database ID: </strong><i>". $client_database_id.
"</i><strong><br>Client version: </strong><i>". $version.
"</i><strong><br>Total connections: </strong><i>". $totalconex.
"</i><strong><br>Platform: </strong><i>". $plataform.
"</i><strong><br>Country: </strong><i>". $country . "</i>";

Test
 

MRBOBOGAMER

Member
Jun 17, 2016
8
0
33
PHP:
<?php session_start(); ?>
<?PHP
    $connect = "serverquery://".$USER_QUERY.":".$PASS_QUERY."@".$HOST_QUERY.":".$PORT_QUERY."/?server_port=".$SERVER_PORT."";
    $ts3 = TeamSpeak3::factory($connect);
    $ts3->execute("clientupdate", array("client_nickname" => $NICK_QUERY));
    $FLAG = false;
   
    foreach ($ts3->clientList(array('client_type' => '0', 'connection_client_ip' => getClientIp())) as $client) {
        $clientuid = $client->client_unique_identifier;
        $client_nickname = $client->client_nickname;
        $client_clid = $client->clid;
        $FLAG = true;
        break;
    }
?>
<!doctype html>
<html lang="en">
                <div class="row">
                    <div class="col-md-6">
                        <div class="card ">
                            <div class="header">
                                <h4 class="title">Video Of The Week</h4>
                                <p class="category">يتم تقييم الفيديو عن طريق الايكات</p>
                            </div>
                                                            <p>
                                    <label  class="uname" data-icon="u" > Hello, <?php echo $client_nickname; ?></label>
                                    <input  readonly type="text" value="<?php echo $clientuid; ?>"/>
                                </p>
                        </div>
                    </div>
                    <div class="col-md-6">
                        <div class="card ">
                            <div class="header">
                                <h4 class="title">News</h4>
                                <p class="category">اخبار السيرفر</p>
                            </div>
                            <div class="content">
                                <div class="table-full-width">
                                    <table class="table">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <div class="circle-image">
                                                        <img src="assets/img/faces/admin.png" type="image/png" height="42" width="42">
                                                    </div>
                                                </td>
                                                <td>تم افتتاح لوحه تيم سبيك ذكية</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                               
                                                                <div class="table-full-width">
                                    <table class="table">
                                        <tbody>
                                            <tr>
                                                <td>
                                                    <div class="circle-image">
                                                        <img src="assets/img/faces/admin.png" type="image/png" height="" width="42">
                                                    </div>
                                                </td>
                                                <td>تم افتتاح سيرفر ماين كرافت</td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>


        <footer class="footer">
            <div class="container-fluid">
                <nav class="pull-left">

                </nav>
                <p class="copyright pull-right">
                    &copy; 2016 - 2017 <a href="index.html">Arab-Host</a>.
                </p>
            </div>
        </footer>

    </div>
</div>


</body>

    <!--   Core JS Files   -->
    <script src="assets/js/jquery-1.10.2.js" type="text/javascript"></script>
    <script src="assets/js/bootstrap.min.js" type="text/javascript"></script>

    <!--  Checkbox, Radio & Switch Plugins -->
    <script src="assets/js/bootstrap-checkbox-radio-switch.js"></script>

    <!--  Charts Plugin -->
    <script src="assets/js/chartist.min.js"></script>

    <!--  Notifications Plugin    -->
    <script src="assets/js/bootstrap-notify.js"></script>

    <!--  Google Maps Plugin    -->
    <script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?sensor=false"></script>

    <!-- Light Bootstrap Table Core javascript and methods for Demo purpose -->
    <script src="assets/js/light-bootstrap-dashboard.js"></script>

    <!-- Light Bootstrap Table DEMO methods, don't include it in your project! -->
    <script src="assets/js/demo.js"></script>



</html>
 

Pain

Member
Feb 20, 2016
102
17
53
what does these bot ? i see the code ,but don't know what does these bot , can someone tell me please
 
Top