|
From: OryNider <ory...@us...> - 2008-02-01 08:02:33
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17217 Modified Files: Tag: core28x db_install.php db_upgrade.php getinfo.php play_real.php play_wmp.php shotcast_config.php shotcast_last10.php stop_real.php stop_wmp.php Log Message: upgrade for 2.8.1 Index: stop_wmp.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/stop_wmp.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** stop_wmp.php 2 Oct 2007 05:06:24 -0000 1.1.2.2 --- stop_wmp.php 1 Feb 2008 08:02:26 -0000 1.1.2.3 *************** *** 1,5 **** ! <?php ! ! define( 'IN_PORTAL', 1 ); $module_root_path = './'; --- 1,5 ---- ! <?php ! define('IN_PORTAL', 1); ! define('IN_SHOTCAST', 1); $module_root_path = './'; *************** *** 7,10 **** --- 7,11 ---- include($module_root_path . 'shotcast_config.'.$phpEx); + include($module_root_path . 'getinfo.'.$phpEx); if (empty($song[0])) Index: stop_real.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/stop_real.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** stop_real.php 2 Oct 2007 05:06:23 -0000 1.1.2.2 --- stop_real.php 1 Feb 2008 08:02:25 -0000 1.1.2.3 *************** *** 1,5 **** ! <?php ! ! define( 'IN_PORTAL', 1 ); $module_root_path = './'; --- 1,5 ---- ! <?php ! define('IN_PORTAL', 1); ! define('IN_SHOTCAST', 1); $module_root_path = './'; *************** *** 7,10 **** --- 7,11 ---- include($module_root_path . 'shotcast_config.'.$phpEx); + include($module_root_path . 'getinfo.'.$phpEx); if (empty($song[0])) Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_upgrade.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** db_upgrade.php 2 Oct 2007 05:00:20 -0000 1.1.2.1 --- db_upgrade.php 1 Feb 2008 08:02:23 -0000 1.1.2.2 *************** *** 64,67 **** --- 64,68 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('force_online', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('stream_type', 'mp3')"; } else Index: shotcast_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_config.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** shotcast_config.php 2 Oct 2007 05:00:28 -0000 1.1.2.1 --- shotcast_config.php 1 Feb 2008 08:02:25 -0000 1.1.2.2 *************** *** 38,41 **** --- 38,46 ---- $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password $playlist = ( !empty($shotcast_config['play_list']) ? $shotcast_config['play_list'] : 'listen.pls' ); // Real Player Play List File + $stream_type = $shotcast_config['stream_type']; //Stream type: aac or mp3 + $station_name = "Shotcast Radio"; // Radio Station Name (for the no pass version) + $force_no_playlist = true; + $protocol_type = ($stream_type == 'mp3') ? 'http' : 'icyx'; + $streamdest = $protocol_type . "://" . $scip . ":" . $scport . "/" . $playlist; ?> \ No newline at end of file Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_install.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** db_install.php 2 Oct 2007 05:00:18 -0000 1.1.2.1 --- db_install.php 1 Feb 2008 08:02:23 -0000 1.1.2.2 *************** *** 58,69 **** $sql[] = "CREATE TABLE " . $mx_table_prefix . "shotcast_config ( ! config_name VARCHAR(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ) TYPE=MyISAM"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_name', 'The Joy Fm')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_host', '209.85.88.199')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_port', '10040')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_pass', 'thejoyfm')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_list', 'listen.pls')"; --- 58,69 ---- $sql[] = "CREATE TABLE " . $mx_table_prefix . "shotcast_config ( ! config_name VARCHAR(255) NOT NULL default '', config_value varchar(255) NOT NULL default '', PRIMARY KEY (config_name) ) TYPE=MyISAM"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_name', 'Happy Radio')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_host', 'Happy.Radio.Su')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_port', '8000')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_pass', 'thejoyfm')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_list', 'listen.pls')"; *************** *** 72,75 **** --- 72,76 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('show_listen_select', '1')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('force_online', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('stream_type', 'icy')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('show_status', 'true')"; Index: shotcast_last10.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_last10.php,v retrieving revision 1.2.2.2 retrieving revision 1.2.2.3 diff -C2 -d -r1.2.2.2 -r1.2.2.3 *** shotcast_last10.php 2 Oct 2007 05:06:23 -0000 1.2.2.2 --- shotcast_last10.php 1 Feb 2008 08:02:25 -0000 1.2.2.3 *************** *** 124,130 **** else { ! $request="GET /played.html HTTP/1.1\r\nHost: " . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [played] * (Mozilla/PHP)\r\n"."Connection: close\r\n\r\n"; @fputs($fp,$request,strlen($request)); ! $page=''; while (!feof($fp)) { --- 124,130 ---- else { ! $request = "GET /played.html HTTP/1.1\r\nHost: " . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [played] * (Mozilla/PHP)\r\n"."Connection: close\r\n\r\n"; @fputs($fp,$request,strlen($request)); ! $page = ''; while (!feof($fp)) { *************** *** 132,136 **** } @fclose($fp); //close connection ! $played_html=$page; if ($played_html) --- 132,136 ---- } @fclose($fp); //close connection ! $played_html = $page; if ($played_html) Index: getinfo.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** getinfo.php 2 Oct 2007 05:00:22 -0000 1.1.2.1 --- getinfo.php 1 Feb 2008 08:02:23 -0000 1.1.2.2 *************** *** 14,17 **** --- 14,21 ---- } + //$accplugin = 'http://' . $_SERVER['SERVER_NAME'] . substr($_SERVER['PHP_SELF'], 0, -strlen(basename(__FILE__))) . 'install/setup_AAC_aacPlus_plugin.exe'; + + $accplugin = 'http://retro-radio.net/plugin/setup_AAC_aacPlus_plugin_1_0_36.exe'; + $nick = str_replace(" ", "_", $userdata['username']); $period = !empty($period) ? $period : $shotcast_config['check_period'] * 1000; *************** *** 20,23 **** --- 24,35 ---- $scport = !empty($scport) ? $scport : $shotcast_config['shotcast_port']; // Port $scpass = !empty($scpass) ? $scpass : $shotcast_config['shotcast_pass']; // SHOUTcast Password + + $wmpmode = ($protocol_type !== 'icyx') ? 'http://' : 'icyx://'; // AAC VS MPEG + $wmplist = ( ($stream_type == 'mp3') || ($force_no_playlist) ) ? '' : '/' .$playlist; + $ff2pluginspace = ($stream_type == 'mp3') ? 'http://port25.technet.com/videos/downloads/wmpfirefoxplugin.exe' : $accplugin; + $wmp7pluginspace = ($stream_type == 'mp3') ? 'http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&' : $accplugin; + $wmp6pluginspace = ($stream_type == 'mp3') ? 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715' : 'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715'; + + $time = date("U"); $errno = 0; Index: play_real.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_real.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** play_real.php 2 Oct 2007 05:00:24 -0000 1.1.2.1 --- play_real.php 1 Feb 2008 08:02:24 -0000 1.1.2.2 *************** *** 1,5 **** ! <?php ! ! define( 'IN_PORTAL', 1 ); $module_root_path = './'; --- 1,5 ---- ! <?php ! define('IN_PORTAL', 1); ! define('IN_SHOTCAST', 1); $module_root_path = './'; *************** *** 7,10 **** --- 7,11 ---- include($module_root_path . 'shotcast_config.'.$phpEx); + include($module_root_path . 'getinfo.'.$phpEx); if (empty($song[0])) *************** *** 14,17 **** --- 15,20 ---- ?> + + ?> <html> <head> Index: play_wmp.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_wmp.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** play_wmp.php 2 Oct 2007 05:00:24 -0000 1.1.2.1 --- play_wmp.php 1 Feb 2008 08:02:24 -0000 1.1.2.2 *************** *** 1,5 **** ! <?php ! ! define( 'IN_PORTAL', 1 ); $module_root_path = './'; --- 1,6 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> ! <?php ! define('IN_PORTAL', 1); ! define('IN_SHOTCAST', 1); $module_root_path = './'; *************** *** 7,10 **** --- 8,12 ---- include($module_root_path . 'shotcast_config.'.$phpEx); + include($module_root_path . 'getinfo.'.$phpEx); if (empty($song[0])) *************** *** 14,18 **** ?> ! <html><head> <STYLE type=text/css>BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #CEDEDF; --- 16,21 ---- ?> ! <html> ! <head> <STYLE type=text/css>BODY { PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #CEDEDF; *************** *** 43,64 **** if (Mac) { ! ! if ( navigator.appName == "Netscape" ){ ! //Netscape code ! document.write (' <Embed id="wmp" name="wmp" type="audio/mpeg"'); ! document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"'); ! document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); ! document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); ! document.write (' Name=MediaPlayer'); ! document.write (' ShowControls=1'); ! document.write (' ShowDisplay=1'); ! document.write (' ShowStatusBar=1'); ! document.write (' AUTOSTART=1'); ! document.write (' width=332'); ! document.write (' height=354>'); ! document.write (' </Embed>'); } ! ! if ( navigator.appName != "Netscape" ){ ! document.write(' <embed id="wmp" name="wmp" type="audio/mpeg" width="332" height="354" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="1" src="http://<?=$scip;?>:<?=$scport;?>" ></embed>'); } } --- 46,69 ---- if (Mac) { ! if ( navigator.appName == "Netscape" ) ! { ! //Netscape code ! document.write (' <Embed id="wmp" name="wmp" type="audio/mpeg"'); ! document.write (' pluginspage="<?=$ff2pluginspace;?>"'); ! document.write (' filename="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>"'); ! document.write (' src="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>"'); ! document.write (' Name=MediaPlayer'); ! document.write (' ShowControls=1'); ! document.write (' ShowDisplay=1'); ! document.write (' ShowStatusBar=1'); ! document.write (' AUTOSTART=1'); ! document.write (' width=332'); ! document.write (' height=354>'); ! document.write (' </Embed>'); ! } ! else ! { ! document.write(' <embed id="wmp" name="wmp" type="audio/mpeg" width="332" height="354" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="1" src="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>" ></embed>'); ! } } *************** *** 66,144 **** if (Win) { ! if ( navigator.appName != "Netscape" ){ ! WMP7 = new ActiveXObject('WMPlayer.OCX'); ! } ! ! // Windows Media Player 7 Code ! if ( WMP7 ) ! { ! ! document.write ('<OBJECT ID=MediaPlayer '); ! document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="332" height="354">'); ! document.write ('<PARAM NAME="url" VALUE="http://<?=$scip;?>:<?=$scport;?>">'); ! document.write ('<PARAM NAME="AutoStart" VALUE="true">'); ! document.write ('<PARAM NAME="ShowControls" VALUE="1">'); ! document.write ('<PARAM NAME="uiMode" VALUE="mini">'); ! document.write (' <Embed type="application/x-mplayer2"'); ! document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); ! document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); ! document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); ! document.write (' Name="MediaPlayer"'); ! document.write (' ShowControls="1"'); ! document.write (' ShowDisplay="1"'); ! document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="true"'); ! document.write (' width="332"'); ! document.write (' height="354">'); ! document.write (' </embed>'); ! document.write ('</OBJECT>'); ! } - // Windows Media Player 6.4 Code - else ! { ! //IE Code ! document.write ('<OBJECT ID=MediaPlayer '); ! document.write (' CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'); ! document.write (' CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 '); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="332" height="354">'); ! document.write (' <PARAM NAME="FileName" VALUE="http://<?=$scip;?>:<?=$scport;?>">'); ! document.write ('<PARAM NAME="url" VALUE="http://<?=$scip;?>:<?=$scport;?>"> '); ! document.write ('<PARAM NAME="AutoStart" VALUE="1">'); ! document.write ('<PARAM NAME="ShowControls" VALUE="1">'); ! //Firefox code ! document.write (' <Embed type="application/x-mplayer2"'); ! document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); ! document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); ! document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); ! document.write (' Name="MediaPlayer"'); ! document.write (' ShowControls="1"'); ! document.write (' ShowDisplay="1"'); ! document.write (' ShowStatusBar="1"'); ! document.write (' AUTOSTART="true"'); ! document.write (' width="332"'); ! document.write (' height="354">'); ! document.write (' </embed>'); ! document.write ('</OBJECT>'); ! ! } } - else { ! ! document.write(' <embed type="audio/mpeg" width="332" height="354" AUTOSTART="1" filename="http://<?=$scip;?>:<?=$scport;?>" src="http://<?=$scip;?>:<?=$scport;?>" ></embed>'); ! } --- 71,200 ---- if (Win) { ! if ( navigator.appName != "Netscape" ) ! { ! WMP7 = new ActiveXObject('WMPlayer.OCX'); ! } ! // Windows Media Player 7 Code ! if ( WMP7 ) ! { ! document.write ('<OBJECT ID=MediaPlayer '); ! document.write (' CLASSID=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95'); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="332" height="354">'); ! document.write ('<PARAM NAME="FileName" VALUE="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>" valuetype="ref">'); ! document.write ('<PARAM NAME="url" VALUE="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>">'); ! document.write ('<PARAM NAME="AutoStart" VALUE="true">'); ! document.write ('<PARAM NAME="uiMode" VALUE="mini">'); ! document.write ('<param name="AudioStream" value="1">'); ! document.write ('<param name="AutoSize" value="0">'); ! document.write ('<param name="AnimationAtStart" value="-1">'); ! document.write ('<param name="AllowScan" value="-1">'); ! document.write ('<param name="AllowChangeDisplaySize" value="-1">'); ! document.write ('<param name="AutoRewind" value="0">'); ! document.write ('<param name="Balance" value="0">'); ! document.write ('<param name="BaseURL" value>'); ! document.write ('<param name="BufferingTime" value="5">'); ! document.write ('<param name="CaptioningID" value>'); ! document.write ('<param name="ClickToPlay" value="-1">'); ! document.write ('<param name="CursorType" value="0">'); ! document.write ('<param name="CurrentPosition" value="-1">'); ! document.write ('<param name="CurrentMarker" value="0">'); ! document.write ('<param name="DefaultFrame" value>'); ! document.write ('<param name="DisplayBackColor" value="0">'); ! document.write ('<param name="DisplayForeColor" value="16777215">'); ! document.write ('<param name="DisplayMode" value="1">'); ! document.write ('<param name="DisplaySize" value="1">'); ! document.write ('<param name="Enabled" value="-1">'); ! document.write ('<param name="EnableContextMenu" value="-1">'); ! document.write ('<param name="EnablePositionControls" value="-1">'); ! document.write ('<param name="EnableFullScreenControls" value="-1">'); ! document.write ('<param name="EnableTracker" value="-1">'); ! document.write ('<param name="InvokeURLs" value="-1">'); ! document.write ('<param name="Language" value="-1">'); ! document.write ('<param name="Mute" value="0">'); ! document.write ('<param name="PlayCount" value="0">'); ! document.write ('<param name="PreviewMode" value="0">'); ! document.write ('<param name="Rate" value="1">'); ! document.write ('<param name="SAMILang" value>'); ! document.write ('<param name="SAMIStyle" value>'); ! document.write ('<param name="SAMIFileName" value>'); ! document.write ('<param name="SelectionStart" value="-1">'); ! document.write ('<param name="SelectionEnd" value="-1">'); ! document.write ('<param name="SendOpenStateChangeEvents" value="-1">'); ! document.write ('<param name="SendWarningEvents" value="-1">'); ! document.write ('<param name="SendErrorEvents" value="-1">'); ! document.write ('<param name="SendKeyboardEvents" value="0">'); ! document.write ('<param name="SendMouseClickEvents" value="0">'); ! document.write ('<param name="SendMouseMoveEvents" value="0">'); ! document.write ('<param name="SendPlayStateChangeEvents" value="-1">'); ! document.write ('<param name="ShowCaptioning" value="0">'); ! document.write ('<param name="ShowControls" value="-1">'); ! document.write ('<param name="ShowAudioControls" value="-1">'); ! document.write ('<param name="ShowDisplay" value="0">'); ! document.write ('<param name="ShowGotoBar" value="0">'); ! document.write ('<param name="ShowPositionControls" value="0">'); ! document.write ('<param name="ShowStatusBar" value="-1">'); ! document.write ('<param name="ShowTracker" value="-1">'); ! document.write ('<param name="TransparentAtStart" value="0">'); ! document.write ('<param name="VideoBorderWidth" value="0">'); ! document.write ('<param name="VideoBorderColor" value="333333">'); ! document.write ('<param name="VideoBorder3D" value="-1">'); ! document.write ('<param name="Volume" value="-1">'); ! document.write ('<param name="WindowlessVideo" value="-1">'); + document.write (' <Embed type="application/x-mplayer2"'); + document.write (' pluginspage="<?=$wmp7pluginspace;?>"'); + document.write (' filename="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>"'); + document.write (' src="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>"'); + document.write (' Name="MediaPlayer"'); + document.write (' ShowControls="1"'); + document.write (' ShowDisplay="1"'); + document.write (' ShowStatusBar="1"'); + document.write (' AUTOSTART="true"'); + document.write (' width="332"'); + document.write (' height="354">'); + document.write (' </embed>'); ! document.write ('</OBJECT>'); ! } ! // Windows Media Player 6.4 Code ! else ! { ! //IE Code ! document.write ('<OBJECT ID="MediaPlayer"'); ! document.write (' CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'); ! document.write (' CODEBASE="<?=$wmp6pluginspace;?>"'); ! document.write (' standby="Loading Microsoft Windows Media Player components..."'); ! document.write (' TYPE="application/x-oleobject" width="250" height="62">'); ! document.write (' <PARAM NAME="FileName" VALUE="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>" valuetype="ref">'); ! document.write ('<PARAM NAME="url" VALUE="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>"> '); ! document.write ('<PARAM NAME="AutoStart" VALUE="true">'); ! document.write ('<PARAM NAME="ShowControls" VALUE="1">'); ! //Firefox code ! document.write (' <Embed type="application/x-ms-wmp"'); ! document.write (' pluginspage="<?=$ff2pluginspace;?>"'); ! document.write (' filename="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>"'); ! document.write (' src="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>"'); ! document.write (' Name=MediaPlayer'); ! document.write (' ShowControls=1'); ! document.write (' ShowDisplay=1'); ! document.write (' ShowStatusBar=1'); ! document.write (' AUTOSTART=1'); ! document.write (' width=290'); ! document.write (' height=320>'); ! document.write (' </embed>'); ! document.write ('</OBJECT>'); ! } } else { ! document.write(' <embed type="audio/mpeg" width="332" height="354" AUTOSTART="1" filename="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>" src="<?=$wmpmode;?><?=$scip;?>:<?=$scport;?><?=$wmplist;?>" ></embed>'); } |