diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-05-13 00:39:40 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-05-13 00:39:40 +0000 |
commit | a4be3297d541560e1bc4291d366808fca517d49e (patch) | |
tree | f2dd6cc96d2e28042845d7b532d19cc3c1295e9e /server | |
parent | 7049a9976a25e95cb1ee68a84a853211ccc3db8a (diff) | |
download | ampache-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 'server')
-rw-r--r-- | server/ajax.server.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/server/ajax.server.php b/server/ajax.server.php index b40b0446..fc691045 100644 --- a/server/ajax.server.php +++ b/server/ajax.server.php @@ -54,14 +54,8 @@ switch ($action) { $ajax_url = conf('web_path') . '/server/ajax.server.php'; $required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); ${$_GET['type']} = 'id="pt_active"'; - ?> - <span <?php echo $stream; ?> onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&type=stream<?php echo $required_info; ?>','play_type');return true;"> - <?php echo _('Stream') ?> - </span> - <span <?php echo $localplay; ?> onclick="ajaxPut('<?php echo $ajax_url; ?>','action=change_play_type&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'); break; default: echo "Default Action"; |