<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>
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; echo $tsstatus->render(); echo "<h3>HTML code</h3>\n"; highlight_string($htmlCode);