<?php if ($_SESSION['login'] == 'true') { $bo = db_query("SELECT id,name FROM ".$db_prefix."_box_user WHERE sichtbar != '2' ORDER BY ordnung ASC"); while($box = mysqli_fetch_array($bo)){ menuehead($box['name']); $me = db_query("SELECT * FROM ".$db_prefix."_menu_user WHERE box = '".$box['id']."' ORDER BY ordnung ASC"); while($menu = mysqli_fetch_array($me)){ echo '<a href="?content=/'.$menu['link'].'">'.$menu['name'].'</a><br>'; } foot(); } }else{ $bo = db_query("SELECT id,name FROM ".$db_prefix."_box_user WHERE sichtbar = '2' ORDER BY ordnung ASC"); while($box = mysqli_fetch_array($bo)){ menuehead($box['name']); $me = db_query("SELECT * FROM ".$db_prefix."_menu_user WHERE box = '".$box['id']."' ORDER BY ordnung ASC"); while($menu = mysqli_fetch_array($me)){ echo '<a href="?content=/'.$menu['link'].'">'.$menu['name'].'</a><br>'; } foot(); } } menuehead('LKT-Rallysystem'); echo '<dl>'; $ralleydaten = db_query("SELECT status, start, ende_art, ende_zeit, ende_punkte, ende_punkte_aktuell, name FROM ".$db_prefix."_rallydaten"); $times = time(); while ($data = mysqli_fetch_assoc($ralleydaten)) { echo'<dt> <a href="?content=/LKT_Rallysystem&rally=' . $data['name'] . '"><i>'; if ($data['status'] == 'aktive' && $data['start'] <= $times && (($data['ende_art'] == 'zeit' && $data['ende_zeit'] > $times) OR ($data['ende_art'] == 'punkt' && $data['ende_punkte_aktuell'] < $data['ende_punkte']))) { echo'<span style="color:#1DA801;">'; } else echo'<span style="color:#BB0101;">'; echo ' ' . $data['name'] . '-Rally</span></i></a></dt>'; } echo '</dl>'; menuefoot(); if ($_SESSION['login'] == 'true') { menuehead("Wer ist Online"); include ("lib/weristonline.php"); menuefoot(); }