Question I have a Question !♥

Discussion in 'PHP' started by SulimanAbdulaziz, Jul 7, 2016.

  1. Alligatoras

    Alligatoras Head Moderator

    Note that public or schoold networks can't be found by these scripts!
     
  2. Give me full script...
     
    timodohmen likes this.
  3. timodohmen

    timodohmen Active Member

    Poor Kevin ...
     
  4. i have a problem
    thanks is now running
     
  5. No problem ♥
    Ok Bro !
     
    timodohmen likes this.
  6. ARABHOST

    ARABHOST New Member

    PHP:
    <?php
            
    //framework
            
    require_once("libraries/TeamSpeak3/TeamSpeak3.php");
            
    session_start();
            
    $IDChannel $_POST['name'];
            
    $resume_time time();
            
    $result = array();
            
    $verfied "0";
            try {
                    
    $ts3_VirtualServer TeamSpeak3::factory("serverquery://serveradmin:[email protected]_ip:10011/?server_port=9987&nickname=botname");
                    foreach (
    $ts3_VirtualServer->clientList() as $cl) {
                                            if (
    $cl->getProperty('connection_client_ip') == $_SERVER['REMOTE_ADDR']) {
                                                    
    $result[] = $cl->client_nickname;
                                                    
    $client_info $cl;
                                                    
    $verfied++;
                                                    
    $unid $client_info["client_unique_identifier"];
                    
    $_SESSION['client_uid'] = $unid;
            
    $client_uid $unid;
            
    $_SESSION['client_db'] = $client["client_database_id"];
                                    }
                            }
                    }     
                    catch (
    Exception $e) {
                            echo 
    '<div style="background-color:red; color:white; display:block; font-weight:bold;">QueryError: ' $e->getCode() . ' ' $e->getMessage() . '</div>';
                            die;
                            }
                    if(
    $verfied == "0"){
                    
    //not in ts
                    
    echo "<div id='error'>";
                    echo 
    "You are not in Teamspeak Server.";
                    echo 
    "<a href='ts3server://185.11.146.141/?port=9987&nickname=WebGuest'>Join our TeamSpeak Server Here</a>";
                    echo 
    "</div>";
                    }
                    if(
    $verfied == "1"){   }
           
    ?>
    And Then This You Put In HTML Form
    HTML:
    <div class="panel panel-default">
                  <div class="panel-body">
                            <b><h style="font-size:16px">Nickname : <h style="color:#4BB2FC"><?php echo $client_info["client_nickname"];?></h></h></b><br>
                            <b><h style="font-size:16px">your IP : <h style="color:#4BB2FC"><?php echo $client_info["connection_client_ip"];?></h></h></b><br>                         
                            <b><h style="font-size:16px">Description : <h style="color:#4BB2FC"><?php echo $client_info["client_description"];?></h></h></b><br>
                            <b><h style="font-size:16px">Total Connections : <h style="color:#4BB2FC"><?php echo $client_info["client_totalconnections"];?></h></h></b><br>
                            <b><h style="font-size:16px">OS : <h style="color:#4BB2FC"><?php echo $client_info["client_totalconnections"];?><?php echo $client_info["client_version"];?><i class="fa fa-windows" aria-hidden="true"></i></h></h></b><br>
                            <b><h style="font-size:16px">Country : <h style="color:#4BB2FC"><?php echo $client_info["client_country"];?></h></h></b><br>
                            <b><h style="font-size:16px">Database ID : <h style="color:#4BB2FC"><?php echo $client_info["client_database_id"];?></h></h></b><br>
                            <b><h style="font-size:16px">Unique Identifier : <h style="color:#4BB2FC"><?php echo $client_info["client_unique_identifier"];?></h></h></b>
                  </div>
                </div>
     
  7. Its Solved ,read pls.
     
  8. ARABHOST

    ARABHOST New Member

    sorr i was trying to help
     
    EscuderoKevin likes this.
  9. Hey !, no problem bro ♥
     
  10. I Need Your Help With The VIP area Page I Need Script That Doesn't allow any one to go in the page without having specific servergroup
     
  11. DDoSBoy

    DDoSBoy Member

    Nice By Ma7mouD .....
     

Share This Page