summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-08-13 04:30:26 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2005-08-13 04:30:26 +0000
commite7fea90327419214531371543662056c1398470d (patch)
tree8b7642b5cac62994ff55f80e733dedbff22105bf /index.php
parent3836a33d1c210a806c13f9bb172724394fb3fd80 (diff)
downloadampache-e7fea90327419214531371543662056c1398470d.tar.gz
ampache-e7fea90327419214531371543662056c1398470d.tar.bz2
ampache-e7fea90327419214531371543662056c1398470d.zip
new mpd mojo from rosensama and rperkins
Diffstat (limited to 'index.php')
-rw-r--r--index.php31
1 files changed, 16 insertions, 15 deletions
diff --git a/index.php b/index.php
index dc096f48..ec6b965a 100644
--- a/index.php
+++ b/index.php
@@ -63,11 +63,15 @@ $action = scrub_in($_REQUEST['action']);
<?php show_local_catalog_info(); ?>
</td>
<td valign="top" align="left">
- <?php
+ <?php
+ if ($user->prefs['play_type'] == 'mpd' && !conf('localplay_menu')) {
+ show_mpd_control();
+ } else {
if ( $items = get_global_popular('album') ) {
show_info_box(_("Most Popular Albums"), 'album',$items);
}
- ?>
+ }
+ ?>
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
@@ -77,16 +81,16 @@ $action = scrub_in($_REQUEST['action']);
</td>
</tr>
<tr><td colspan="2">&nbsp;</td></tr>
- <tr>
- <?php
- if ($user->prefs['play_type'] == 'mpd') {
- show_mpd_pl();
- } else {
- echo "<td>&nbsp;</td>";
- }
- ?>
- </tr>
- <tr><td colspan="2">&nbsp;</td></tr>
+ <tr>
+ <?php
+ if ($user->prefs['play_type'] == 'mpd' && !conf('localplay_menu')) {
+ show_mpd_pl();
+ } else {
+ echo "<td>&nbsp;</td>";
+ }
+ ?>
+ </tr>
+ <tr><td colspan="2">&nbsp;</td></tr>
<tr>
<td valign="top" align="right">
<?php
@@ -137,9 +141,6 @@ $action = scrub_in($_REQUEST['action']);
if($user->prefs['play_type'] == 'local_play') {
show_local_control();
echo "<br />";
- } elseif ($user->prefs['play_type'] == 'mpd' && !conf('localplay_menu')) {
- show_mpd_control();
- echo "<br />";
} else {
echo "&nbsp;";
}