summaryrefslogtreecommitdiffstats
path: root/templates/sidebar.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-13 00:39:40 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-05-13 00:39:40 +0000
commita4be3297d541560e1bc4291d366808fca517d49e (patch)
treef2dd6cc96d2e28042845d7b532d19cc3c1295e9e /templates/sidebar.inc.php
parent7049a9976a25e95cb1ee68a84a853211ccc3db8a (diff)
downloadampache-a4be3297d541560e1bc4291d366808fca517d49e.tar.gz
ampache-a4be3297d541560e1bc4291d366808fca517d49e.tar.bz2
ampache-a4be3297d541560e1bc4291d366808fca517d49e.zip
fixed localplay buttons with use_auth disabled and tweaked access control mojo to prevent login in addition to the normal prevention of streaming
Diffstat (limited to 'templates/sidebar.inc.php')
-rw-r--r--templates/sidebar.inc.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/templates/sidebar.inc.php b/templates/sidebar.inc.php
index 83ff2c54..8520f863 100644
--- a/templates/sidebar.inc.php
+++ b/templates/sidebar.inc.php
@@ -191,12 +191,7 @@ $web_path = conf('web_path');
$ajax_url = $web_path . '/server/ajax.server.php';
?>
<span class="text-action" style="cursor:pointer;" id="play_type">
- <span <?php echo $stream; ?> onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&amp;type=stream<?php echo $required_info; ?>','play_type');return true;">
- <?php echo _('Stream') ?>
- </span>&nbsp;&nbsp;
- <span <?php echo $localplay; ?> onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&amp;type=localplay<?php echo $required_info; ?>','play_type');return true;">
- <?php echo _('Localplay'); ?>
- </span>
+ <?php require_once(conf('prefix') . '/templates/show_localplay_switch.inc.php'); ?>
</span>
</li>
<?php } // if horizontal orientation ?>