diff options
author | Jan-Philipp Litza <janphilipp@litza.de> | 2012-12-30 17:13:28 +0100 |
---|---|---|
committer | Jan-Philipp Litza <janphilipp@litza.de> | 2012-12-30 17:13:28 +0100 |
commit | b26994f518b7f7edea6f2236746d084b3bc12e1e (patch) | |
tree | 8f2a24c575765a950563c7128bde082a61797f8c /includes | |
parent | 15668bad18a619d075fcb5cf5d6726067bbfb1a3 (diff) |
moved footer to navigation and removed left-padding of headings, reworked credits
Diffstat (limited to 'includes')
-rw-r--r-- | includes/sys_menu.php | 41 |
1 files changed, 1 insertions, 40 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php index 7eeaa70a..5c69be39 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -73,46 +73,7 @@ function make_navigation_for($name, $pages) { } function make_menu() { - return make_navigation() . make_onlineusers() . make_langselect(); -} - -function make_onlineusers() { - global $privileges, $user; - $html = '<nav class="container online"><h4>Helfer online</h4>'; - - $query = "SELECT UID, Nick, lastLogIn " . "FROM User " . "WHERE (`lastLogIn` > '" . (time() - 60 * 60) . "') " . "ORDER BY lastLogIn DESC"; - $users = sql_select($query); - - if (count($users) > 0) { - $html .= "<ul class=\"content\">"; - - foreach ($users as $online_user) { - if (isset ($user) && $online_user['UID'] == $user['UID']) - continue; - - $html .= "<li>"; - - //if (isset ($user)) - //$html .= DisplayAvatar($online_user['UID']); - - // Show Admin Page - if (in_array("admin_user_edit", $privileges)) { - $html .= '<a href="admin/userChangeNormal.php?enterUID=' . $online_user['UID'] . '&Type=Normal">' . $online_user['Nick'] . '</a>'; - } else { - $html .= $online_user['Nick']; - } - $last_action = time() - $online_user['lastLogIn']; - - $html .= " " . date("i:s", $last_action); - $html .= "</li>\n"; - } - - $html .= "</ul>"; - } else { - $html .= '<p class="content">Nobody...</p>'; - } - $html .= '</nav>'; - return $html; + return make_navigation() . make_langselect(); } function make_langselect() { |