'$useronlinetime' ORDER BY a_name ASC") or die (mysqli_error()); while($row = mysqli_fetch_array($result)) { $show_online_users .= ''.$row["a_name"].','; } // Check Wetter $result = mysqli_query($dbconn, "SELECT u_meldung, u_text, u_farbe, DATE_FORMAT(u_lastcheck, '%Y%m%d%H%i%s') AS u_lastcheck, DATE_FORMAT(u_lastchange, '%Y%m%d%H%i%s') AS u_lastchange FROM unwetter WHERE id = '1'") or die (mysqli_error()); $row = mysqli_fetch_array($result); if( !empty($row["u_meldung"]) ) { $uw_show_link = '  toggle '; $uw_warntime = time_format(get_time($row["u_lastchange"])); $uw_text = $row["u_text"]; // Neu markieren wenn ungelesen if( $_SESSION["last_seen"] <= $row["u_lastchange"] ) $_SESSION["uw_isnew"] = 'neu'; eval ("\$unwetter_field .= \"".gettemplate($template_dir."body_unwetter")."\";"); } // Check PM $result = mysqli_query($dbconn, "SELECT a.*, DATE_FORMAT(a.pm_date, '%Y%m%d%H%i%s') AS date, b.real_name FROM messages a LEFT JOIN admin_users b ON b.id = a.userid_from WHERE a.userid_to = '$_SESSION[userid]' ORDER BY pm_date ASC") or die (mysqli_error()); while($row = mysqli_fetch_array($result)) { $msg_date = get_date_long($row["date"])." / ".get_time($row["date"]); $msg_text = nl2br($row["message"]); eval ("\$message_field .= \"".gettemplate($template_dir."body_message")."\";"); } // Ausgabe echo ""; if( $_SESSION["online_users"] != $show_online_users ) echo $show_online_users; echo "|"; if( !empty($uw_text) ) echo $unwetter_field."@".$uw_text; echo "|"; if( !empty($msg_date) ) echo $message_field; echo ""; // Sessions füllen $_SESSION["online_users"] = $show_online_users; ?>