summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-15 03:14:42 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-04-15 03:14:42 +0000
commit669753d59d3b7acfb248e46daad174ed7414eb4a (patch)
tree1cb4505aa1bf878b470680ec85ab57f4e15c6955 /templates
parent9504931c64a67156cde61c597ab4b111e3dc478f (diff)
downloadampache-669753d59d3b7acfb248e46daad174ed7414eb4a.tar.gz
ampache-669753d59d3b7acfb248e46daad174ed7414eb4a.tar.bz2
ampache-669753d59d3b7acfb248e46daad174ed7414eb4a.zip
first steps of a fix for the xml-rpc streaming and cataloging
Diffstat (limited to 'templates')
-rw-r--r--templates/sidebar_localplay.inc.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/templates/sidebar_localplay.inc.php b/templates/sidebar_localplay.inc.php
index 5e2e79ff..95313f4e 100644
--- a/templates/sidebar_localplay.inc.php
+++ b/templates/sidebar_localplay.inc.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2007 Ampache.org
+ Copyright (c) Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -21,7 +21,7 @@
?>
<ul class="sb2" id="sb_localplay">
-<?php if (Config::get('allow_localplay_playback') AND Config::get('localplay_controller') AND Access::check('localplay','5')) { ?>
+<?php if ($server_allow = Config::get('allow_localplay_playback') AND $controller = Config::get('localplay_controller') AND $access_check = Access::check('localplay','5')) { ?>
<?php
// Little bit of work to be done here
$localplay = new Localplay(Config::get('localplay_controller'));
@@ -58,5 +58,12 @@
</li>
<?php } else { ?>
<li><h4><?php echo _('Localplay Disabled'); ?></h4></li>
+ <?php if (!$server_allow) { ?>
+ <li><?php echo _('Allow Localplay set to False'); ?></li>
+ <?php } elseif (!$controller) { ?>
+ <li><?php echo _('Localplay Controller Not Defined'); ?></li>
+ <?php } elseif (!$access_check) { ?>
+ <li><?php echo _('Access Denied'); ?></li>
+ <?php } ?>
<?php } ?>
</ul>