htmlspecialchars($web_path . "/index.php"));
if ($GLOBALS['user']->prefs['play_type'] == 'mpd' && conf('localplay_menu')) {
$items += array(_("Local Play") => htmlspecialchars($web_path . "/mpd.php"));
}
$items += array(_("Browse") => htmlspecialchars($web_path . "/browse.php"),
// _("Albums") => htmlspecialchars($web_path . "/albums.php"),
// _("Artists") => htmlspecialchars($web_path . "/artists.php"),
_("Playlists") => htmlspecialchars($web_path . "/playlist.php"),
_("Search") => htmlspecialchars($web_path . "/search.php"),
_("Preferences") => htmlspecialchars($web_path . "/preferences.php")
);
if ($GLOBALS['user']->prefs['upload']) {
$items = array_merge($items, array(_("Upload") => $web_path . "/upload.php"));
}
?>
$item\n");
}
else {
print("\t\t- $item
\n");
}
} // end foreach items
if ((!conf('use_auth')) || ($GLOBALS['user']->has_access(100))) {
if ($high == 'Admin') {
print("\t\t- " . _("Admin") . "
\n");
}
else {
print("\t\t- " . _("Admin") . "
\n");
}
} // if we aren't using auth or 100
// now do the user specific stuff
if (conf('use_auth')) {
if (($high == 'Stats') || ($high == 'Profile')) {
print("\t\t- ".$GLOBALS['user']->username.": " . _("Account") . " |".
"" . _("Stats") . " |".
"" . _("Logout") . "
\n");
} // if stats or profile
else {
echo "\t\t- ".$GLOBALS['user']->username.": " .
"" . _("Account") . " |".
"" . _("Stats") . " |".
"" . _("Logout") . "
\n";
} // else
} // if use_auth
elseif ($_SESSION['userdata']['id'] != '-1') {
print("\t\t- " . _("Logout") . "
\n");
} // else no user
?>