diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-14 17:29:07 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2006-10-14 17:29:07 +0000 |
commit | 78167c02518ff9d757741f0e8df524da300d067d (patch) | |
tree | d5fbbc41f6e807439de0d34ca9a06616dd961d04 /templates/show_localplay_control.inc.php | |
parent | 9a16ee2c2ce55e7693c9432be2466210a0ebc6df (diff) | |
download | ampache-78167c02518ff9d757741f0e8df524da300d067d.tar.gz ampache-78167c02518ff9d757741f0e8df524da300d067d.tar.bz2 ampache-78167c02518ff9d757741f0e8df524da300d067d.zip |
removed extra lines from ajax, down to 86, updated ajax calls, added ldap auth
Diffstat (limited to 'templates/show_localplay_control.inc.php')
-rw-r--r-- | templates/show_localplay_control.inc.php | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/templates/show_localplay_control.inc.php b/templates/show_localplay_control.inc.php index a0177603..4e83bdef 100644 --- a/templates/show_localplay_control.inc.php +++ b/templates/show_localplay_control.inc.php @@ -23,36 +23,29 @@ $web_path = conf('web_path'); $localplay = init_localplay(); -$required_info = "&user_id=" . $GLOBALS['user']->id . "&sessid=" . session_id(); -$ajax_url = $web_path . '/server/ajax.server.php'; +$required_info = conf('ajax_info'); +$ajax_url = conf('ajax_url'); ?> -<script language="javascript" type="text/javascript"> -<!-- -var lp_control = new Array(2); -lp_control[0] = "lp_state"; -lp_control[1] = "lp_playing"; ---> -</script> <div class="localplaycontrol" style="display:table-cell;cursor:pointer;padding:2px;"> <?php if ($localplay->has_function('prev')) { ?> -<span class="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=prev<?php echo $required_info; ?>',lp_control);return true;"> +<span class="prev_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=prev<?php echo $required_info; ?>');return true;"> <img src="<?php echo $web_path; ?>/images/localplay/prev.gif" alt="prev" /> </span> <?php } ?> -<span class="stop_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=stop<?php echo $required_info; ?>',lp_control);return true;"> +<span class="stop_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=stop<?php echo $required_info; ?>');return true;"> <img src="<?php echo $web_path; ?>/images/localplay/stop.gif" alt="stop" /> </span> <?php if ($localplay->has_function('pause')) { ?> -<span class="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=pause<?php echo $required_info; ?>',lp_control);return true;"> +<span class="pause_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=pause<?php echo $required_info; ?>');return true;"> <img src="<?php echo $web_path; ?>/images/localplay/pause.gif" alt="pause" /> </span> <?php } ?> -<span class="play_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=play<?php echo $required_info; ?>',lp_control);return true;"> +<span class="play_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=play<?php echo $required_info; ?>');return true;"> <img src="<?php echo $web_path; ?>/images/localplay/play.gif" alt="play" /> </span> <?php if ($localplay->has_function('next')) { ?> -<span class="next_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=next<?php echo $required_info; ?>',lp_control);return true;"> +<span class="next_button" onclick="ajaxPut('<?php echo $ajax_url; ?>?action=localplay&cmd=next<?php echo $required_info; ?>');return true;"> <img src="<?php echo $web_path; ?>/images/localplay/next.gif" alt="next" /> </span> <?php } ?> |