rendered paste body<?php
defined ('main') or die ( 'no direct access' );
$title = $allgAr['title'].' :: Teamspeak-2';
$hmenu = 'Teamspeak-2';
$design = new design ( $title , $hmenu );
$design->header();
/*
Copyright (C) 2004 Niklas Håkansson <niklas.hk@telia.com>
PHPTS2 ver 2.0 is a free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public.
Please leave the copyright image as it is if you using this scripts
*/
include "include/contents/TS2/ts2status.php";
require_once "include/contents/TS2/config.php";
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>PHPTS2 Viewer</title>
<?if($doRefresh) {?>
<META HTTP-EQUIV="refresh" CONTENT="<?=$reInterval?>; url=?ts2">
<?}
if($tree) {?>
<script language="javascript">
var selectColor = "<?=$selectColor?>";
var unselectColor = "<?=$bgcolor?>";
</script>
<script src="include/contents/TS2/js/vMenu.js" type="text/javascript"></script>
<?}?>
<link rel="STYLESHEET" type="text/css" href="include/contents/TS2/css/stylesheet.css">
</head>
<body bgcolor="#FFFFFF" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" leftmargin="0" rightmargin="0">
<table cellpadding="0" cellspacing="0" width="100%" height="100%">
<tr>
<td width="17"><spacer type="block" width="17" height="1"></td>
<!-- MAIN -->
<td width="510" valign="top">
<img src="include/contents/TS2/include/contents/TS2/img/pix.gif" width="1" height="10"><br>
<table cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td class="bgFrame" width="1"><img src="include/contents/TS2/include/contents/TS2/img/pix.gif" width="1" height="1"></td>
<td width="100%" height="25" background="include/contents/TS2/img/mainnewsBar.gif" class="headerBread"> :: Teamspeak 2</td>
<td class="bgFrame" width="1"><img src="include/contents/TS2/include/contents/TS2/img/pix.gif" width="1" height="1"></td>
</tr>
<?
$fp = @TSConn($ip,$port,$tPort);
if(strlen($fp)>1) {?>
<?if($basic) {?>
<!-- BASIC -->
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td class="bgFrame"></td>
<td class="bgFrameGrey" height="18"><div class="smallheaderBread"> Haupt Information</div></td>
<td class="bgFrame"></td>
</tr>
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td class="bgFrame" width="1"><img src="include/contents/TS2/include/contents/TS2/img/pix.gif" width="1" height="1"></td>
<td height="26" class="bgFrameGrey" valign="top">
<img src="include/contents/TS2/img/pix.gif" width="1" height="5"><br>
<table cellpadding="2" cellspacing="1" width="95%" align="center">
<tr><td height="5"><spacer type="block" width="1" height="5"></td></tr>
<tr bgcolor="<?=$headerColor?>"><td colspan="2"><img src="/include/contents/TS2/tsicons/ts.gif" width="16" height="15" alt="" border="0"></td></tr>
<?
}
getTSInfo($ip,$port,$tPort,$basic,$bgcolor);
if($basic) {
?>
<tr><td height="10"><spacer type="block" width="1" height="10"></td></tr>
</table>
</td>
<td class="bgFrame" width="1"><img src="include/contents/TS2/img/pix.gif" width="1" height="1"></td>
</tr>
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr><td height="15"><spacer type="block" width="1" height="15"></td></tr>
<!-- BASIC -->
<?}
if($info) {?>
<!-- USER INFO -->
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td class="bgFrame"></td>
<td class="bgFrameGrey" height="18"><div class="smallheaderBread"> User Informationen</div></td>
<td class="bgFrame"></td>
</tr>
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td class="bgFrame" width="1"><img src="include/contents/TS2/img/pix.gif" width="1" height="1"></td>
<td height="26" class="bgFrameGrey" valign="top">
<img src="include/contents/TS2/img/pix.gif" width="1" height="5"><br>
<table cellpadding="2" cellspacing="1" width="95%" align="center">
<tr><td height="5"><spacer type="block" width="1" height="5"></td></tr>
<?
getTSUsers($ip,$port,$tPort,$bgcolor,$headerColor)
?>
<tr><td height="10"><spacer type="block" width="1" height="10"></td></tr>
</table>
</td>
<td class="bgFrame" width="1"><img src="include/contents/TS2/img/pix.gif" width="1" height="1"></td>
</tr>
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr><td height="15"><spacer type="block" width="1" height="15"></td></tr>
<!-- USER INFO -->
<?}
if($tree) {?>
<!-- CHANNEL INFO -->
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td class="bgFrame"></td>
<td class="bgFrameGrey" height="18"><div class="smallheaderBread"> Channel und User Informationen</div></td>
<td class="bgFrame"></td>
</tr>
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td class="bgFrame" width="1"><img src="include/contents/TS2/img/pix.gif" width="1" height="1"></td>
<td height="26" class="bgFrameGrey" valign="top">
<img src="include/contents/TS2/img/pix.gif" width="1" height="5"><br>
<table cellpadding="2" cellspacing="0" width="95%" align="center">
<tr><td height="5"><spacer type="block" width="1" height="5"></td></tr>
<tr bgcolor="<?=$bgcolor?>">
<td width="16"><img src="include/contents/TS2/tsicons/ts.gif" width="16" height="15" alt="" border="0"></td>
<td class="bread"><a href="ccInfo.php?cID=0&type=0" onMouseOver="javascript:window.status='Default'; return true;" onMouseOut="window.status=''; return true;" target="info" class="wrapCell" onClick="vMenu(this,1,1)" onBlur="vMenu(this,0,1)"> <?=$name?> </a></td>
<td width="2" background="include/contents/TS2/img/bar.gif"><spacer type="block" width="2" height="1"></td>
<td width="50%"></td>
</tr>
<tr bgcolor="<?=$bgcolor?>">
<td></td>
<td valign="top">
<table cellpadding="1" cellspacing="0">
<?
getTSChannelInfo($ip,$port,$tPort);
?>
</table>
</td>
<td width="2" background="include/contents/TS2/img/bar.gif"><spacer type="block" width="2" height="1"></td>
<!-- TS INFO -->
<td valign="top">
<iframe src="include/contents/TS2/ccInfo.php?cID=0&type=0" height="<?=$iframeHeight?>" width="300" frameborder="0" name="info"></iframe>
</td>
<!-- TS INFO -->
</tr>
<?} ?>
<tr><td height="10"><spacer type="block" width="1" height="10"></td></tr>
</table>
</td>
<td class="bgFrame" width="1"><img src="include/contents/TS2/img/pix.gif" width="1" height="1"></td>
</tr>
<?} else {?>
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td class="bgFrame" width="1"><img src="include/contents/TS2/img/pix.gif" width="1" height="1"></td>
<td height="26" class="bgFrameGrey" valign="top">
<img src="include/contents/TS2/img/pix.gif" width="1" height="5"><br>
<table cellpadding="2" cellspacing="1" width="95%" align="center">
<tr><td height="5"><spacer type="block" width="1" height="5"></td></tr>
<tr>
<td class="bread" width="15%">
<strong>Verbindung zum Server fehlgeschlagen</strong><br><br>
<i>- Prüfen Sie nach, dass der TS2-Gastgeber eine Verbindung über <strong>TELNET</strong><strong> erlaubt</strong>.</i><br>
<i>- Prüfen sie nach <strong>der IP Addresse zum Server</strong>.</i><br>
<i>- Prüfen sie nach <strong>der Server QueryPort Nummer</strong> ob diese eingegangen ist.</i><br>
<i>- Prüfen sie nach <strong>der Port Nummer zu dem TS2 Server</strong> ob diese eingegangen ist.</i><br>
</td>
</tr>
<tr><td height="10"><spacer type="block" width="1" height="10"></td></tr>
</table>
</td>
<td class="bgFrame" width="1"><img src="include/contents/TS2/img/pix.gif" width="1" height="1"></td>
</tr>
<?}?>
<tr><td colspan="3" height="1" class="bgFrame"><spacer type="block" width="1" height="1"></td></tr>
<tr>
<td></td>
<td height="18" align="right"><a href="mailto:niklas.hk@telia.com?subject=TeamSpeak 2 - Web Interface"></a> </td>
<td></td>
</tr>
<tr><td height="15"><spacer type="block" width="1" height="15"></td></tr>
<!-- CHANNEL INFO -->
</table>
<img src="include/contents/TS2/img/pix.gif" width="1" height="5"><br>
</td>
<!-- /MAIN -->
<td width="5"><spacer type="block" width="5" height="1"></td>
</tr>
</table>
</body>
</html>
<? $design->footer(); ?>