diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-08 02:32:45 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-08 02:32:45 +0000 |
commit | 3460950693c609876022a02eb5f42a59c768029e (patch) | |
tree | 4ea3cad99ebd54630f896832ba682d5c25fd3726 /lib/stream.lib.php | |
parent | 47628fb4b901a5737743264ba14dca52be64a268 (diff) | |
download | ampache-3460950693c609876022a02eb5f42a59c768029e.tar.gz ampache-3460950693c609876022a02eb5f42a59c768029e.tar.bz2 ampache-3460950693c609876022a02eb5f42a59c768029e.zip |
tweaked album of the moment mojo and theoritical fix for flash player
Diffstat (limited to 'lib/stream.lib.php')
-rw-r--r-- | lib/stream.lib.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/stream.lib.php b/lib/stream.lib.php index cb935aaf..3cdb4ccf 100644 --- a/lib/stream.lib.php +++ b/lib/stream.lib.php @@ -31,7 +31,8 @@ function delete_now_playing($insert_id) { $user_agent = $_SERVER['HTTP_USER_AGENT']; - if (stristr($user_agent,"NSPlayer")) { + // Account for WMP and the Flash Player + if (stristr($user_agent,"NSPlayer") || $_REQUEST['flash_hack'] == 1) { // Commented out until I can figure out the // trick to making this work return true; @@ -89,7 +90,7 @@ function insert_now_playing($song_id,$uid,$song_length) { /* Set the Expire Time */ // If they are using Windows media player - if (stristr($user_agent,"NSPlayer")) { + if (stristr($user_agent,"NSPlayer") || $_REQUEST['flash_hack'] == 1) { // WMP does keep the session open so we need to cheat a little here $session_id = sql_escape($_REQUEST['sid']); } |