예제 #1
0
<html><head>
<link rel="shortcut icon" href="../ts/img/teamspeak.ico">
<title>TSStatus</title>
<link rel="stylesheet" type="text/css" href="../ts/tsstatus.min.css" />
</head><body><br><br><br><br>
<?php 
$firefox = strpos($_SERVER["HTTP_USER_AGENT"], 'Firefox') ? true : false;
if (!$firefox) {
    ?>
<br><?php 
}
require_once "../ts/tsstatus.php";
$tsstatus = new TSStatus("www.au1st3in.net", 10011);
$tsstatus->useServerPort(9987);
$tsstatus->imagePath = "../ts/img/";
$tsstatus->timeout = 2;
$tsstatus->setLoginPassword("LOGIN", "PASSWORD");
$tsstatus->setCache(2);
$tsstatus->hideEmptyChannels = true;
$tsstatus->hideParentChannels = false;
$tsstatus->showNicknameBox = false;
$tsstatus->showPasswordBox = false;
echo $tsstatus->render();
?>
</body></html>
예제 #2
0
    $query_port = $set['query_port'];
    $server_id = $set['server_id'];
    $timeout = $set['timeout'];
    $admin_login = $set['admin_login'];
    $admin_passw = $set['admin_passw'];
    $decode_utf = $set['decode_utf'];
}
$res_db_con = dbquery("SELECT * FROM " . DB_TS3_CON);
while ($con = dbarray($res_db_con)) {
    $nick = $con['hide_nick'];
    $pass = $con['show_pass'];
}
if ($nick == "1") {
    $this_nick = true;
} else {
    $this_nick = false;
}
if ($pass == "1") {
    $this_pass = true;
} else {
    $this_pass = false;
}
$tsstatus = new TSStatus($host, $query_port, $server_id);
$tsstatus->imagePath = INFUSIONS . "ts3_panel/images/";
$tsstatus->showNicknameBox = $this_nick;
$tsstatus->showPasswordBox = $this_pass;
$tsstatus->decodeUTF8 = $decode_utf;
$tsstatus->timeout = $timeout;
$tsstatus->setLoginPassword($admin_login, $admin_passw);
echo $tsstatus->render();
echo $ts3_panel_show;
예제 #3
0
<?php 
if ($enableGenerator) {
    if ($host != "") {
        echo "<h3>TSStatus result</h3>\n";
        require_once $absoluteDir . "tsstatus.php";
        $tsstatus = new TSStatus($host, $qport);
        $tsstatus->imagePath = $wwwDir . "img/";
        if ($portOrId == 1) {
            $tsstatus->useServerPort($port);
        }
        if ($portOrId == 2) {
            $tsstatus->useServerId($sid);
        }
        $tsstatus->timeout = $timeout;
        if ($serverQueryLogin != "") {
            $tsstatus->setLoginPassword($serverQueryLogin, $serverQueryPassword);
        }
        if ($cacheTime > 0 && $cacheFile == "") {
            $tsstatus->setCache($cacheTime);
        }
        if ($cacheTime > 0 && $cacheFile != "") {
            $tsstatus->setCache($cacheTime, $cacheFile);
        }
        if ($limitToChannels != "") {
            $ids = explode(",", $limitToChannels);
            call_user_func_array(array($tsstatus, "limitToChannels"), $ids);
        }
        $tsstatus->hideEmptyChannels = !$hideEmptyChannels;
        $tsstatus->hideParentChannels = !$hideParentChannels;
        $tsstatus->showNicknameBox = $showNicknameBox;
        $tsstatus->showPasswordBox = !$showPasswordBox;