?> </table> </form> <?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); }