From a4be3297d541560e1bc4291d366808fca517d49e Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Sat, 13 May 2006 00:39:40 +0000 Subject: fixed localplay buttons with use_auth disabled and tweaked access control mojo to prevent login in addition to the normal prevention of streaming --- templates/show_localplay_switch.inc.php | 6 ++++++ templates/sidebar.inc.php | 7 +------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 templates/show_localplay_switch.inc.php (limited to 'templates') diff --git a/templates/show_localplay_switch.inc.php b/templates/show_localplay_switch.inc.php new file mode 100644 index 00000000..18129ba1 --- /dev/null +++ b/templates/show_localplay_switch.inc.php @@ -0,0 +1,6 @@ + onclick="ajaxPut('','action=change_play_type&type=stream','play_type');return true;"> + +

+ onclick="ajaxPut('','action=change_play_type&type=localplay','play_type');return true;"> + + 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'; ?> - onclick="ajaxPut('','action=change_play_type&type=stream','play_type');return true;"> - -    - onclick="ajaxPut('','action=change_play_type&type=localplay','play_type');return true;"> - - + -- cgit