diff options
author | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-22 08:39:24 +0000 |
---|---|---|
committer | Karl 'vollmerk' Vollmer <vollmer@ampache.org> | 2007-01-22 08:39:24 +0000 |
commit | 56ce11f771d173f559f2608c83422a94fcc37165 (patch) | |
tree | d537804a9c707cf7fb1743fb8d112bb87040f718 /lib/stream.lib.php | |
parent | 595b211d5e59e320586d09e16878b24bdb8b3375 (diff) | |
download | ampache-56ce11f771d173f559f2608c83422a94fcc37165.tar.gz ampache-56ce11f771d173f559f2608c83422a94fcc37165.tar.bz2 ampache-56ce11f771d173f559f2608c83422a94fcc37165.zip |
added config version check, fixed play selected bug reported by chenb and fixed wmp11 now playing issue
Diffstat (limited to 'lib/stream.lib.php')
-rw-r--r-- | lib/stream.lib.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/stream.lib.php b/lib/stream.lib.php index 3cdb4ccf..af589273 100644 --- a/lib/stream.lib.php +++ b/lib/stream.lib.php @@ -85,12 +85,12 @@ function insert_now_playing($song_id,$uid,$song_length) { if (stristr($user_agent,"Windows-Media-Player")) { return false; } /* Check for Windows Media Player 11 */ - if (strstr($user_agent,"WMFSDK/11")) { return false; } + if (strstr($user_agent,'NSPlayer/11') AND !strstr($user_agent,'WMFSDK/11')) { return false; } /* Set the Expire Time */ // If they are using Windows media player - if (stristr($user_agent,"NSPlayer") || $_REQUEST['flash_hack'] == 1) { + if (strstr($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']); } |