• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Web Client teaspeak web scirpte imbot not working HELP

serveralan

Member
Hello, I did not have any problems because the panel I developed looks like Tea*Speak 3. But I can't assign the serverquery group that we call private imbot, I leave the code Can anyone help?

Code:
$ts3 = new ts3admin($ts3_ip, $ts3_queryport);
if($ts3->getElement('success', $ts3->connect())) {
    $ts3->login($ts3_user, $ts3_pass);
    if($ts3->getElement('success', $ts3->selectServer($ts3_port,'port',TRUE))) {
    $ts3->setName("".$server["ts3querynick"]."");
    $ts3bilgiler =  $ts3->serverInfo("-short");
    $ts3_bot = $bayi['bot'];
    if ($ts3bilgiler['success'])
    {
        $ts3bilgiler = $ts3bilgiler['data'];
        $pingcek = $ts3bilgiler['virtualserver_total_ping'];
        $loss = $ts3bilgiler['virtualserver_total_packetloss_total'];
            $ping = "".number_format($pingcek, 0)." Ms";
        $paketkaybi = "".number_format($loss*100, 2)." %";
    }
}
}
pulling the serverquery group id from the database

Code:
<br>
                
                <div class="card">
            <div class="card-body">
              <h4 class="card-title">I'M Bot (Gizli Yetki)</h4>

<?php
echo $permMsg2;
?>
<?php
echo $permMsg3;
?>
<form method="post" class="forms-sample">

                        <div class="form-group">
        <select name="imclient" class="form-control">               
                            <?php
                                            foreach($ts3_VirtualServer->clientList() as $tsclient) {
 
                                                if($tsclient['client_type'] == 1) continue;
                                                $diq = $tsclient['client_database_id'];
                                                echo"<option value=$diq>".$tsclient."</option>";
 
                                                                                        }
                                                                                        if(!$diq){
                                                                                        echo '<option disabled selected>Kullanıcı Bulunamadı</option>';
                                                                                        }
                                        ?>                               
            </select>
                        </div>
<center>
                         <div class="form-group">   
<?php
if($diq){
echo '<input type="submit" name="botver" value="Yetki Ver" class="btn btn-primary"> &nbsp;';
echo '<input type="submit" name="botal" value="Yetki Al" class="btn btn-primary">';
}else{
echo '<input type="button" value="Henüz Kullanıcı Yok" class="btn btn-danger">';
}
?>
                          </div> 
</center>
what should I do ? When I install Tea*Speak 3 it gives authorization but also does not give teaspeak
 

yamano

TeaSpeak Team
Staff member
TeaTeam
You can use the forum search option in the forum right corner.
Like i said, you can find ts3 motd inside your config.yml, search it.