<?
require "include/bittorrent.php";


dbconn(false);

stdhead("Alle Only UP");


if (get_user_class() >= UC_TEAMLEITUNG)
{

$res1 = mysql_query("SELECT torrents.wonly FROM torrents WHERE wonly='yes'") or sqlerr();
//$row1 = mysql_fetch_assoc($res1);

if (mysql_num_rows($res1) == 0)
{
?>
<table cellpadding="0" cellspacing="0" border="0" style="width:30%" class="tableinborder">
 <tr class="tabletitle" width="100%">
<form method=post action=takewonly.php>  
<input type=hidden name=action value=yes>

<td colspan="10" width="30%"><span class="normalfont"><center><b>Alle Only UP</b><center></span></td> 
 </tr>
<tr><td width="10%"class=tablea><h2>Status</h2></td><td class=tablea colspan=2 align=left> <h2> <font color=green>&nbsp;&nbsp;&nbsp;Nein</font></h2></td></tr>
<tr><td class=tablea colspan=3 align=center><input type=submit class=btn value='Einschalten'></td></tr>
</table>
</form>
<?
}
else
{
?>
<table cellpadding="0" cellspacing="0" border="0" style="width:30%" class="tableinborder">
 <tr class="tabletitle" width="100%">
<form method=post action=takewonly.php>  
<input type=hidden name=action value=no>

<td colspan="10" width="30%"><span class="normalfont"><center><b>Alle Only UP</b><center></span></td> 
 </tr>
<tr><td  width="10%"class=tablea><h2>Status</h2></td><td class=tablea colspan=2 align=left> <h2> <font color=red>&nbsp;&nbsp;&nbsp;Ja</font></h2></td></tr>
<tr><td class=tablea colspan=3 align=center><input type=submit class=btn value='Ausschalten'></td></tr>
</table>
</form>
<?
}
}
else
print("<p style=\"text-align:center;font-size:12pt;\"><b>Dir ist es nicht erlaubt, hier zuzugreifen</b></p>");
?>