From 56ce11f771d173f559f2608c83422a94fcc37165 Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Mon, 22 Jan 2007 08:39:24 +0000 Subject: added config version check, fixed play selected bug reported by chenb and fixed wmp11 now playing issue --- lib/stream.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/stream.lib.php') 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']); } -- cgit