htmlspecialchars(conf('web_path') . "/index.php"));
if ($GLOBALS['user']->prefs['play_type'] == 'mpd' && conf('localplay_menu')) {
$items += array(_("Local Play") => htmlspecialchars(conf('web_path') . "/mpd.php"));
}
$items += array(_("Browse") => htmlspecialchars(conf('web_path') . "/browse.php"),
// _("Albums") => htmlspecialchars(conf('web_path') . "/albums.php"),
// _("Artists") => htmlspecialchars(conf('web_path') . "/artists.php"),
_("Playlists") => htmlspecialchars(conf('web_path') . "/playlist.php"),
_("Search") => htmlspecialchars(conf('web_path') . "/search.php"),
_("Preferences") => htmlspecialchars(conf('web_path') . "/preferences.php")
);
if ($GLOBALS['user']->prefs['upload']) {
$items = array_merge($items, array(_("Upload") => conf('web_path') . "/upload.php"));
}
?>
foreach ( array_keys($items) as $item ) {
if ( _($high) == $item ) {
print("\t\t- $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
?>