<?php
if (!empty($sessionid)) {
$user1 = mysql_query("SELECT * FROM hb_users WHERE Session='".$_GET['sessionid']."' and Sessionip='".md5($_SERVER['REMOTE_ADDR'])."'");
$user = mysql_fetch_assoc($user1);
}
?>
<table valign="top" align="center" style="border-top: 0px solid #000000; border-left: 2px solid #5191E1; border-right: 2px solid #5191E1; border-bottom: 2px solid #5191E1;" border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td height="16" width="22" background="pics/top_left2.gif"></td><td valign="bottom" height="16" width="163" background="pics/top_middle.gif">Benutzer Navigation</td><td height="16" width="15" background="pics/top_right2.gif"></td>
</tr><tr>
<td valign="top" width="200" height="5" colspan="3"></td>
<tr>
<td valign="top" colspan="3">
<table valign="top" align="center" border="0" cellpadding="0" cellspacing="0" width="192">
<tr>
<td bgcolor="#F7FBFB">
<?php
if(empty($user['Nickname'])){
echo "<a class=\"menu\" href=\"login.php?sessionid=".$_GET['sessionid']."\">Login</a><br />";
echo "<a class=\"menu\" href=\"registration.php?sessionid=".$_GET['sessionid']."\">Registrieren</a>";
} else {
echo '<p align="left"><font color="green" style="font-size: 10pt;">'.$user['Nickname'].'</font></p>';
echo '<a class="menu" href="konto.php?sessionid='.$_GET['sessionid'].'">Konto</a><br />';
echo '<a class="menu" href="depot.php?sessionid='.$_GET['sessionid'].'">Depot</a><br />';
echo '<a class="menu" href="kaufen.php?sessionid='.$_GET['sessionid'].'">Kaufen</a><br />';
echo '<a class="menu" href="verkaufen.php?sessionid='.$_GET['sessionid'].'">Verkaufen</a><br />';
echo '<a class="menu" href="sofortkauf.php?sessionid='.$_GET['sessionid'].'">Sofortkauf</a><br />';
echo '<a class="menu" href="sofortverkauf.php?sessionid='.$_GET['sessionid'].'">Sofortverkauf</a><br /><br />';
echo '<a class="menu" href="agantrag.php?sessionid='.$_GET['sessionid'].'">AG Beantragen</a><br />';
echo '<br /><a class="menu" href="logedin.php?sessionid='.$_GET['sessionid'].'&logout=1">Logout</a>';
}
?>
</td>
</tr>
<tr><td height="5" bgcolor="#F7FBFB"></td></tr>
</table>
</td>
</tr>
</table>
<br />
<?php
$agbes_check = mysql_fetch_assoc(mysql_query("SELECT ID FROM hb_ags WHERE Besitz='".$user['Nickname']."'"));
if(!empty($agbes_check)){
?>
<table valign="top" align="center" style="border-top: 0px solid #000000; border-left: 2px solid #5191E1; border-right: 2px solid #5191E1; border-bottom: 2px solid #5191E1;" border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td height="16" width="22" background="pics/top_left2.gif"></td><td valign="bottom" height="16" width="163" background="pics/top_middle.gif">AG Navigation</td><td height="16" width="15" background="pics/top_right2.gif"></td>
</tr><tr>
<td valign="top" width="200" height="5" colspan="3"></td>
<tr>
<td valign="top" colspan="3">
<table valign="top" align="center" border="0" cellpadding="0" cellspacing="0" width="192">
<tr>
<td bgcolor="#F7FBFB">
<a class="menu" href="www">Bliblablubbb</a><br />Miaoooo !!<br />Was geht <br /><br /><br /><br /><br />
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<?php
}
?>
<table valign="top" align="center" style="border-top: 0px solid #000000; border-left: 2px solid #5191E1; border-right: 2px solid #5191E1; border-bottom: 2px solid #5191E1;" border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td height="16" width="22" background="pics/top_left2.gif"></td><td valign="bottom" height="16" width="163" background="pics/top_middle.gif">Status</td><td height="16" width="15" background="pics/top_right2.gif"></td>
</tr><tr>
<td valign="top" width="200" height="5" colspan="3"></td>
<tr>
<td valign="top" colspan="3">
<table valign="top" align="center" border="0" cellpadding="0" cellspacing="0" width="192">
<tr>
<td bgcolor="#F7FBFB">
<?php
$sqlonline = mysql_query("SELECT * FROM hb_users WHERE Lastdo>".(time()-300)."");
$useronline = mysql_num_rows($sqlonline);
echo 'Benutzer online: <font color="Green">'.$useronline.'</font><br />';
$sqluserzahl = mysql_query("SELECT * FROM hb_users");
$useranzahl = mysql_num_rows($sqluserzahl);
echo 'Benutzer registriert: <font color="Green">'.$useranzahl.'</font><br />';
$counter=fopen("clicks.txt", "r+");
$aufruf=fgets($counter,100);
fclose($counter);
echo 'Klicks insgesamt: <font color="Green">'.$aufruf.'</font><br />';
?>
</td>
</tr>
<tr><td height="5" bgcolor="#F7FBFB"></td></tr>
</table>
</td>
</tr>
</table>
<br />
<?php
}
if($adminblubblubb == "registriert"){
?>
<table valign="top" align="center" style="border-top: 0px solid #000000; border-left: 2px solid #5191E1; border-right: 2px solid #5191E1; border-bottom: 2px solid #5191E1;" border="0" cellpadding="0" cellspacing="0" width="200">
<tr>
<td height="16" width="22" background="pics/top_left2.gif"></td><td valign="bottom" height="16" width="163" background="pics/top_middle.gif">Admin Navigation</td><td height="16" width="15" background="pics/top_right2.gif"></td>
</tr><tr>
<td valign="top" width="200" height="5" colspan="3"></td>
<tr>
<td valign="top" colspan="3">
<table valign="top" align="center" border="0" cellpadding="0" cellspacing="0" width="192">
<tr>
<td bgcolor="#F7FBFB">
<?php
$ags1 = mysql_query("SELECT * FROM hb_agantrag");
$agzahl = mysql_num_rows($ags1);
echo '<a class="menu" href="adagpruef.php?sessionid='.$_GET['sessionid'].'">AG Prüfliste ('.$agzahl.')</a>';
?>
</td>
</tr>
<tr><td height="5" bgcolor="#F7FBFB"></td></tr>
</table>
</td>
</tr>
</table>
<?php
}
?>