|
From: Florin C B. <ory...@us...> - 2013-05-28 07:15:06
|
Update of /cvsroot/mxbb/mx_shotcast In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv22638 Modified Files: ShotCast.pak db_install.php db_uninstall.php db_upgrade.php moreinfo.php play.php radioplayer.php shotcast_front.php shotcast_last10.php shotcast_stats.php Added Files: index.htm index.html index.php Log Message: Version 3.5.2 --- NEW FILE: index.html --- <html> <head> <script type="text/javascript"> <!-- function radio_player() { props=window.open('radioplayer.php', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100'); } // --> </script> <title>Radio Player</title> </head> <body> <center> <br><br> <a href="javascript:radio_player()">Radio player</a> </center> </body> </html> Index: shotcast_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_stats.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** shotcast_stats.php 29 Apr 2008 02:39:48 -0000 1.7 --- shotcast_stats.php 28 May 2013 07:14:33 -0000 1.8 *************** *** 39,43 **** $text[3] = !empty($text[3]) ? $text[3] : $maxlisteners; $text[5] = !empty($text[5]) ? $text[5] : $bitrate; ! $song[0] = !empty($song[0]) ? $song[0] : $text[6]; // --- 39,43 ---- $text[3] = !empty($text[3]) ? $text[3] : $maxlisteners; $text[5] = !empty($text[5]) ? $text[5] : $bitrate; ! $song[0] = !empty($song[0]) ? $song[0] : $title; // --- NEW FILE: index.php --- <?php $args = ""; if(isset($_GET["language"])) { $language = $_GET["language"]; $args .= (($args == '') ? '?' : '&' ) . 'language='.$language; } elseif(isset($_GET["lang"])) { $language = $_GET["lang"]; $args .= (($args == '') ? '?' : '&' ) . 'lang='.$language; } if(isset($_GET["skin"])) { $radio_skin = $_GET["skin"]; $args .= (($args == '') ? '?' : '&' ) . 'skin='.$radio_skin; } elseif(isset($_GET["style"])) { $radio_skin = $_GET["style"]; $args .= (($args == '') ? '?' : '&' ) . 'style='.radio_skin; } if(isset($_GET["config"])) { $config_get = $_GET["config"]; $args .= (($args == '') ? '?' : '&' ) . 'config='.$config_get; } print " <html> <head> <script type=\"text/javascript\"> <!-- function radio_player() { props=window.open('radioplayer.php".$args."', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=320, height=142 left = 100, top = 100'); } // --> </script> <title>Radio Player</title> </head> <body> <center> <br><br> <a href=\"javascript:radio_player()\">Radio player</a> </center> </body> </html> "; ?> Index: shotcast_front.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_front.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** shotcast_front.php 29 Apr 2008 02:39:48 -0000 1.9 --- shotcast_front.php 28 May 2013 07:14:33 -0000 1.10 *************** *** 54,62 **** // Read block Configuration // ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! $shotcast_icon = 'shotcast_front_02.gif'; ! $wmp_icon = 'wmp_front.gif'; ! $real_icon = 'real_front.gif'; // -------------------------------------------------------------------------------- --- 54,78 ---- // Read block Configuration // ! $block_title = (isset($server_name) && !empty($server_name) ? $server_name : $mx_block->block_info['block_title']); ! $block_size = (isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! $shotcast_icon = 'cast_front.gif'; ! $wmp_icon = 'wmp_front.gif'; ! $real_icon = 'real_front.gif'; ! ! if ($userdata['user_level'] == ADMIN) ! { ! $user_color = $theme['fontcolor3']; ! $user_style = 'style="color:#' . $user_color . '; font-weight : bold;"'; ! } ! else if ($album_userdata['user_level'] == MOD) ! { ! $user_color = $theme['fontcolor2']; ! $user_style = 'style="color:#' . $user_color . '; font-weight : bold;"'; ! } ! else ! { ! $user_colour = $theme['fontcolor1']; ! $user_style = 'style="font-weight : bold;"'; ! } // -------------------------------------------------------------------------------- *************** *** 71,89 **** } ! if( empty($currentlisteners) && empty($text[2]) ) ! { ! $howmanypeak = $currentlisteners = $text[2] = $shotcast_config['currentlisteners']; ! } ! else if (empty($currentlisteners) && ($text[2] > 0)) { ! $howmanypeak = $currentlisteners = $text[2]; ! } ! else if( ($currentlisteners > 0) && ($text[2] > 0)) ! { ! $howmanypeak = ($currentlisteners > $text[2]) ? $currentlisteners : $text[2]; } else ! { ! $howmanypeak = $text[2]; } --- 87,97 ---- } ! if(empty($currentlisteners)) { ! $howmanypeak = $currentlisteners = $shotcast_config['currentlisteners']; } else ! { ! $howmanypeak = $currentlisteners; } *************** *** 108,118 **** if (!$userdata['session_logged_in']) { ! if ($record['username']==$userdata['username']) { ! $can_listen="yes"; } else { ! $can_listen="yes"; } } --- 116,126 ---- if (!$userdata['session_logged_in']) { ! if ($record['username'] == $userdata['username']) { ! $can_listen = "yes"; } else { ! $can_listen = "yes"; } } *************** *** 123,127 **** $can_listen="yes"; } ! elseif ($record['username']==$userdata['username']) { $can_listen="no"; --- 131,135 ---- $can_listen="yes"; } ! elseif ($record['username'] == $userdata['username']) { $can_listen="no"; *************** *** 149,160 **** } } ! ! $listeners = ( empty($isimler[1]) ? '' : ! '<a href="' . mx_append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u='.$isimler[1]) . '" >'.$isimler[1].'</a>' ); for($s = 2; $s <= $isimler[0]; $s++) { ! $listeners .= ', <a href="' . mx_append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u='.$isimler[$s]) . '" >'.$isimler[$s].'</a><br />'; } - //Get bots sessions $sql = "SELECT * FROM " . SHOTCAST_SESSION_TABLE . " --- 157,175 ---- } } ! $profile = !(PORTAL_BACKEND === 'phpbb3') ? 'profile' : 'memberlist'; ! if ($userdata['user_id'] != ANONYMOUS) ! { ! $profile_url = ''; ! } ! else ! { ! $profile_url = mx3_append_sid("{$phpbb_root_path}$profile.$phpEx", 'mode=viewprofile'); ! $profile_url .= '&u=' . (int) $userdata['user_id']; ! } ! $listeners = (empty($isimler[1]) ? '' : "<a href=\"". mx_append_sid("{$phpbb_root_path}.$profile.$phpEx?mode=viewprofile&u=".$isimler[1]) ."\" >". $isimler[1] ."</a>"); for($s = 2; $s <= $isimler[0]; $s++) { ! $listeners .= ", <a href=\"". mx_append_sid("{$phpbb_root_path}.$profile.$phpEx?mode=viewprofile&u=".$isimler[$s]) ."\" >". $isimler[$s] ."</a><br />"; } //Get bots sessions $sql = "SELECT * FROM " . SHOTCAST_SESSION_TABLE . " *************** *** 203,210 **** ); ! ! if (!$userdata['session_logged_in']) { ! $template->assign_block_vars('switch_user_logged_out', array()); } else --- 218,232 ---- ); ! if ($userdata['user_id'] != ANONYMOUS) { ! if ($can_listen == "no") ! { ! $template->assign_block_vars('switch_user_logged_out', array()); ! } ! else ! { ! $template->assign_block_vars('switch_user_logged_in', array()); ! } ! } else *************** *** 220,224 **** } ! if( empty($listeners) ) { $template->assign_block_vars('switch_listeners_list_off', array()); --- 242,246 ---- } ! if(empty($listeners)) { $template->assign_block_vars('switch_listeners_list_off', array()); *************** *** 232,256 **** $template->assign_vars(array( ! 'SHOTCAST_IMG' => $module_root_path.'images/'.$shotcast_icon, ! 'WMP_IMG' => $module_root_path.'images/'.$wmp_icon, ! 'REAL_IMG' => $module_root_path.'images/'.$real_icon, ! ! 'TOTAL_LISTENERS_ONLINE' => sprintf($lang['How_Many_Listeners'], $howmanylisten), ! 'TOTAL_LISTENERS_PEAK' => sprintf($lang['How_Many_Peak'], $howmanypeak), 'LISTENERS_LIST' => $listeners_list, ! 'L_CLICK_TO_LISTEN_STATION' => $lang['Click_to_listen_station'], ! 'L_CLICK_TO_LISTEN_WMP' => $lang['Click_to_listen_wmp'], ! 'L_CLICK_TO_LISTEN_REAL' => $lang['Click_to_listen_real'], ! 'S_LISTEN_STATION' => append_sid($module_root_path.'radioplayer.php'), ! 'S_LISTEN_WMP' => append_sid($module_root_path.'radioplayer.php?lang=&z=wmp'), ! 'S_LISTEN_REAL' => append_sid($module_root_path.'radioplayer.php?lang=&z=real'), ! 'S_MOREINFO' => append_sid($module_root_path.'moreinfo.php'), ! 'L_LOGIN_TO_LISTEN_STATION' => $lang['Login_to_listen_station'], ! 'L_ALREADY_LISTENING' => $lang['Already_listening'], 'BLOCK_SIZE' => $block_size, ! // 'U_URL' => append_sid(PORTAL_URL . 'index.' . $phpEx . '?block_id=' . $block_id), ! 'BLOCK_ID' => $block_id, ! 'L_VERSION' => _SHOTCAST_VERSION, ! 'L_TITLE' => 'shotcast') ); --- 254,277 ---- $template->assign_vars(array( ! 'SHOTCAST_IMG' => $module_root_path ."skins/".SKIN."/".$shotcast_icon, ! 'WMP_IMG' => $module_root_path ."skins/".SKIN."/".$wmp_icon, ! 'REAL_IMG' => $module_root_path ."skins/".SKIN."/".$real_icon, ! 'TOTAL_LISTENERS_ONLINE' => sprintf($lang['How_Many_Listeners'], $howmanylisten), ! 'TOTAL_LISTENERS_PEAK' => sprintf($lang['How_Many_Peak'], $howmanypeak), 'LISTENERS_LIST' => $listeners_list, ! 'L_CLICK_TO_LISTEN_STATION' => $lang['Click_to_listen_station'], ! 'L_CLICK_TO_LISTEN_WMP' => $lang['Click_to_listen_wmp'], ! 'L_CLICK_TO_LISTEN_REAL' => $lang['Click_to_listen_real'], ! 'S_LISTEN_STATION' => mx_append_sid($module_root_path.'radioplayer.'.$phpEx), ! 'S_LISTEN_WMP' => mx_append_sid($module_root_path.'radioplayer.php?embed=wmp7'), ! 'S_LISTEN_REAL' => mx_append_sid($module_root_path.'radioplayer.php?embed=real'), ! 'S_MOREINFO' => mx_append_sid($module_root_path.'moreinfo.'.$phpEx), ! 'L_LOGIN_TO_LISTEN_STATION' => $lang['Login_to_listen_station'], ! 'L_ALREADY_LISTENING' => $lang['Already_listening'], 'BLOCK_SIZE' => $block_size, ! 'L_TITLE' => $block_title, ! // 'U_URL' => mx_append_sid(PORTAL_URL . 'index.' . $phpEx . '?block_id=' . $block_id), ! 'BLOCK_ID' => $block_id, ! 'L_VERSION' => _SHOTCAST_VERSION) ); *************** *** 262,264 **** unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ?> --- 283,286 ---- unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ! ?> \ No newline at end of file Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_upgrade.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** db_upgrade.php 29 Apr 2008 02:39:48 -0000 1.9 --- db_upgrade.php 28 May 2013 07:14:33 -0000 1.10 *************** *** 31,35 **** } ! $mx_module_version = '3.0.0-RC'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; --- 31,35 ---- } ! $mx_module_version = '3.5.2'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 49,53 **** $upgrade_108 = 0; $upgrade_300 = 0; ! // // validate before 1.0 Gold --- 49,54 ---- $upgrade_108 = 0; $upgrade_300 = 0; ! $upgrade_350 = 0; ! // // validate before 1.0 Gold *************** *** 59,63 **** // ! // validate before 1.08 // if (!$result = $db->sql_query("SELECT bot_id from " . $mx_table_prefix . "shotcast_session")) --- 60,64 ---- // ! // validate before 1.08 - user sessions from mx_radio // if (!$result = $db->sql_query("SELECT bot_id from " . $mx_table_prefix . "shotcast_session")) *************** *** 67,71 **** // ! // validate before 3.0 Gold // if (!$result = $db->sql_query("SELECT config_value from " . $mx_table_prefix . "shotcast_config WHERE config_name = 'skin'")) --- 68,72 ---- // ! // validate before 3.0 Gold - backported support for - Custom Skins // if (!$result = $db->sql_query("SELECT config_value from " . $mx_table_prefix . "shotcast_config WHERE config_name = 'skin'")) *************** *** 74,77 **** --- 75,86 ---- } + // + // validate before 3.5.x - backported support for - Caster type: shout or ice + // + if (!$result = $db->sql_query("SELECT config_value from " . $mx_table_prefix . "shotcast_config WHERE config_name = 'caster'")) + { + $upgrade_350 = 1; + } + $message = "<b>Upgrading!</b><br/><br/>"; *************** *** 110,113 **** --- 119,138 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('skin', 'aero')"; } + + if ($upgrade_350 == 1) + { + $message .= "<b>Upgrading to v. 3.5.0...</b><br/><br/>"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('caster', 'shout')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('allow_autoplay', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('allow_curl', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('play_asx', 'livemp3')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('play_host', '')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('play_port', '')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('play_mount', '/livemp3')"; + + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('picture_type', 'cover')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('fallback', 'eq')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('logo', 'logo.gif')"; + } else { Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** db_install.php 29 Apr 2008 02:39:47 -0000 1.9 --- db_install.php 28 May 2013 07:14:33 -0000 1.10 *************** *** 35,39 **** } ! $mx_module_version = '3.0.0-RC'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; --- 35,39 ---- } ! $mx_module_version = '3.5.2'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 71,76 **** $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_host', 'tv3.stream-music.net')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_port', '8188')"; ! $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')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('user_state_button', 'd1d2d2')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('check_period', '960')"; --- 71,89 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_host', 'tv3.stream-music.net')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_port', '8188')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_pass', 'changeme')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('caster', 'shout')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('skin', 'aero')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('allow_autoplay', '1')" ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('allow_curl', '1')" $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_list', 'listen.pls')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_asx', 'livemp3')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_host', '')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_port', '')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_mount', '/livemp3')"; + + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('picture_type', 'cover')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('fallback', 'eq')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('logo', 'logo.gif')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('user_state_button', 'd1d2d2')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('check_period', '960')"; *************** *** 83,88 **** $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('allow_guests', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('guestname', 'Guest')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('skin', 'aero')"; $sql[] = "UPDATE " . $mx_table_prefix . "module" . " --- 96,100 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('allow_guests', '0')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('guestname', 'Guest')"; $sql[] = "UPDATE " . $mx_table_prefix . "module" . " Index: radioplayer.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radioplayer.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** radioplayer.php 29 Apr 2008 02:39:48 -0000 1.11 --- radioplayer.php 28 May 2013 07:14:33 -0000 1.12 *************** *** 2,319 **** /** * ! * @package Mx-Publisher StandAllone - radioplayer * @version $Id$ ! * @copyright (c) 2004-2008 [Niklas Pull, http://pull.zapto.org] Mx-Publisher Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ ! /*************************************************************************** ! * mx_shotcast ! *************************************************************************** ! * History: ! *OryNider (16/09/2006) : 1st try ! *OryNider (19/04/2008) backported to radioplayer ! ***************************************************************************/ ! // error_reporting( E_ALL ); ! // ini_set( 'display_errors', '1' ); ! ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! ! define('IN_PORTAL', true); ! ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } ! define('IN_SHOTCAST', true); ! require($module_root_path .'includes/common.'.$phpEx); ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> ! <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> ! <head> ! <meta http-equiv="content-type" content="text/html; charset=Windows-1250" /> ! <meta name="description" content="Radio Player" /> ! <meta name="keywords" content="Radio Player" /> ! <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> ! <!-- First load standard template *.css definition, located in the the phpbb template folder --> ! <style type="text/css"> ! <!-- ! * { ! margin: 0; ! padding: 0; ! font-family: Trebuchet MS, Lucida Grande, Verdana, Helvetica, Arial, sans-serif; ! font-size: 10px; ! } ! body { ! margin: 0; ! padding: 0; ! font-family: Trebuchet MS, Lucida Grande, Verdana, Helvetica, Arial, sans-serif; ! font-size: 10px; ! color: #ffffff; ! BACKGROUND-IMAGE: url('<?=$module_root_path;?>images/<?=SKIN;?>/playerbg.png'); ! } ! /* General markup styles ! ---------------------------------------- */ ! * { ! font-size: 100%; ! } ! ! body, div, p, th, td, li, dd { ! voice-family: "\"}\""; ! voice-family: inherit; ! } ! ! html { ! /* Always show a scrollbar for short pages - stops the jump when the scrollbar appears. non-ie browsers */ ! height: 100%; ! margin-bottom: 1px; ! } ! ! /* General font families for common tags */ ! font,th,td,p { font-family: Trebuchet MS, Lucida Grande, Verdana, Helvetica, Arial, sans-serif; } ! img { ! border: 0; ! } ! a, a:visited, a:active{ ! text-decoration: none; ! color: #8a99f4; ! border: 0px; ! } ! select{ ! font-family: Helvetica, Lucida Grande, Verdana, Helvetica, Arial, sans-serif; ! font-size: 10px; ! background-color: #f1f1f1; ! border: 0px; ! } ! station{ ! font-weight: bold; ! font-size: 12px; ! font-family: Calibri, Helvetica, sans-serif; ! } ! #shell{ ! background-image: url('<?=$module_root_path;?>images/<?=SKIN;?>/shell.jpg'); ! width: 320px; ! height: 142px; ! left: 0px; ! top: 0px; ! position: absolute; ! } ! #station{ ! left: 5px; ! top: 1px; ! position: absolute; ! } ! #display{ ! width: 300px; ! height: 24px; ! left: 10px; ! right: 10px; ! top: 24px; ! font-weight: bold; ! font-size: 12px; ! font-family: Calibri, Trebuchet MS, Lucida Grande, Helvetica, Verdana, sans-serif; ! display: inline; ! position: absolute; ! } ! #songtitle{ ! } ! #currentlisteners{ ! } ! #streamtitle{ ! width: 305px; ! left: 10px; ! top: 37px; ! font-weight: bold; ! font-size: 12px; ! font-family: Calibri, Trebuchet MS, Lucida Grande, Helvetica, Verdana, sans-serif; ! position: absolute; ! } ! #listeners{ ! left: 123px; ! top: 56px; ! position: absolute; ! float:left; ! } ! #bitrate{ ! left: 136px; ! top: 69px; ! position: absolute; ! } ! #servergenre{ ! left: 137px; ! top: 82px; ! position: absolute; ! } ! #contentType{ ! left: 137px; ! top: 95px; ! position: absolute; ! } ! #play{ ! left: 10px; ! top: 110px; ! position: absolute; ! } ! #stop{ ! left: 45px; ! top: 115px; ! position: absolute; ! } ! #select{ ! left: 220px; ! top: 110px; ! position: absolute; ! } ! #infoPlayer{ ! left: 8px; ! top: 60px; ! position: absolute; ! } ! #infoPlugin{ ! left: 8px; ! top: 76px; ! position: absolute; ! } ! #equalizer{ ! left: 214px; ! bottom: 39px; ! position: absolute; ! } ! #closeButton{ ! left: 300px; ! top: 2px; ! position: absolute; ! } ! --> ! </style> ! <script type="text/javascript"> ! <!-- loadimg = new Image(27,27); ! loadimg.src = "<?=$module_root_path;?>images/<?=SKIN;?>/play_h.jpg"; loadimg2 = new Image(19,19); ! loadimg2.src = "<?=$module_root_path;?>images/<?=SKIN;?>/stop_h.jpg"; loadimg3 = new Image(18,18); ! loadimg3.src = "<?=$module_root_path;?>images/<?=SKIN;?>/close_h.png"; ! window.onload = function(){ ! checkSong(); ! checklisteners(); ! embedInfo(detectEmbed()); ! <?php ! if($autoplay) { ! ?> ! playR(); ! <?php ! } ! ?> } ! //--> ! </script> ! <title><?=$lang['Radio_Player'];?> • <?=$servertitle;?></title> ! <?php require($module_root_path . "includes/detectScript.htm"); ?> ! </head> <body> ! <div id="shell"> ! <div style="font-weight: bold; font-size: 12px; font-family: Calibri, Helvetica, sans-serif;" id="station">Radio Player :: <?=$servertitle;?></div> ! <marquee id="display" behavior="scroll" class="marquee" direction="left" scrolldelay="100" scrollamount="2"> ! <div id="songtitle"> ! <?php ! if($text[1] == 0) ! { ! echo $lang['Off_Air']; ! } ! else ! { ! echo $lang['checking_title']; ! } ! ?> </div> - </marquee> ! <div id="listeners"><?=$lang['Listeners_peak'];?> <nobr id="currentlisteners"><?=$currentlisteners;?></nobr></div> ! <div id="bitrate"><?=$bitrate;?> kbps</div> ! <div id="servergenre"><?=$stream_genre;?></div> ! <div id="contentType"><?=$mimetype;?></div> ! <div id="infoPlayer"></div> ! <div id="infoPlugin"></div> ! <div id="equalizer"><img id="eq" src="<?=$module_root_path;?>images/<?=SKIN;?>/equalizer_stop.gif" /></div> ! <div id="closeButton"><img id="closeB" src="<?=$module_root_path;?>images/<?=SKIN;?>/close.png" onclick="javascript:window.close()" ! onmouseover="javascript:document.getElementById('closeB').src = '<?=$module_root_path;?>images/<?=SKIN;?>/close_h.png';" ! onmouseout="javascript:document.getElementById('closeB').src = '<?=$module_root_path;?>images/<?=SKIN;?>/close.png';" /> </div> ! <div id="play"><img id="playB" src="<?=$module_root_path;?>images/<?=SKIN;?>/play.jpg" onclick="javascript:playR()" ! onmouseover="javascript:document.getElementById('playB').src = '<?=$module_root_path;?>images/<?=SKIN;?>/play_h.jpg';" ! onmouseout="javascript:document.getElementById('playB').src = '<?=$module_root_path;?>images/<?=SKIN;?>/play.jpg';" /> </div> ! <div id="stop"><img id="stopB" src="<?=$module_root_path;?>images/<?=SKIN;?>/stop.jpg" onclick="javascript:stopR()" ! onmouseover="document.getElementById('stopB').src = '<?=$module_root_path;?>images/<?=SKIN;?>/stop_h.jpg';" ! onmouseout="document.getElementById('stopB').src = '<?=$module_root_path;?>images/<?=SKIN;?>/stop.jpg';" /> </div> ! <div id="select"> ! Media Player:<br /> ! <select id="embedchoise" onchange="javascript:changeEmbed()"> ! <option value="auto">Auto detect</option> ! <option value="wmp">WMP</option> ! <?php ! if ($mimetype !== 'audio/aacp') ! { ! ?> ! <option value="real">RealPlayer</option> ! <?php ! } ! ?> ! <script type="text/javascript"> ! <!-- // ! if(AXcompatible()){ ! document.write('<option value="winampX">WinampX</option>'); ! } else { ! <?php ! if ($mimetype !== 'audio/aacp') { ! ?> ! document.write('<option value="quicktime">QuickTime</option>'); ! <?php ! } ! ?> ! } ! // --> ! </script> </select> </div> --- 2,147 ---- /** * ! * @package StandAllone - Radiplayer. * @version $Id$ ! * @copyright (c) 2006-2013 Little Frog, FlorinCB [aka OryNider], drknas * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * + // This program is free software; you can redistribute it and/or + // modify it under the terms of the GNU General Public License + // as published by the Free Software Foundation; either version 2 + // of the License, or (at your option) any later version. + // + // This program is distributed in the hope that it will be useful, + // but WITHOUT ANY WARRANTY; without even the implied warranty of + // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + // GNU General Public License for more details. + // + // You should have received a copy of the GNU General Public License + // along with this program; if not, write to the Free Software + // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ ! // History: ! // Little Frog (v 1.x - 2.x) ! // OryNider (v 1.x - 3.x) ! // DrKnas (v 4.0 - 4.2.x) ! // OryNider (Current maintainer: 3.5.x & 4.9.x & mxpcms versions) ! $module_root_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); define('IN_SHOTCAST', true); ! require($module_root_path ."includes/common." . $phpEx); ! $html = " ! <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.1//EN\" \"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd\"> ! <html xmlns=\"http://www.w3.org/1999/xhtml\" xml:lang=\"en\"> ! <head> ! <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" /> ! <meta name=\"description\" content=\"Radio Player\" /> ! <meta name=\"keywords\" content=\"Radio Player\" /> ! <meta name=\"author\" content=\"Radio Player originaly made by: Niklas Pull - http://pull.zapto.org\" />"; ! $html .= css($module_root_path, $phpEx, $radio_skin); ! $html .= java_script($module_root_path, $phpEx, $mimetype, $clean_config, $radio_skin, $autoplay, $state, $lang, $java_debug, $update_title); ! $html .= " ! <script type=\"text/javascript\"><!-- loadimg = new Image(27,27); ! loadimg.src = '".$module_root_path ."skins/".SKIN."/play_h.png'; loadimg2 = new Image(19,19); ! loadimg2.src = '".$module_root_path ."skins/".SKIN."/stop_h.png'; loadimg3 = new Image(18,18); ! loadimg3.src = '".$module_root_path ."skins/".SKIN."/close_h.png'; ! window.onunload = function() { ! stopWinampx(); } ! window.onload = function() ! { ! embedInfo(detectEmbed()); ! "; ! if(basename($_SERVER['PHP_SELF']) !== "play.php") ! { ! $html .= " ! updateInfo(); ! //checkSong(); ! //checkCover(); ! //checkcover_url(); ! "; ! if($autoplay) ! { ! //if($state == "Up") ! //{ ! $html .= " ! playR();"; ! //} ! } ! } ! $html .= " ! } ! //--></script>"; ! $html .= " ! <title>" . $title_tag . "</title> </head> <body> ! <!-- // Create ActiveX objects for later checks for WMP versions. --> ! <OBJECT CLASSID=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" HEIGHT=\"0\" ID=\"WMP64\" WIDTH=\"0\" STYLE=\"visibility: hidden;\"></OBJECT> ! <OBJECT CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" HEIGHT=\"0\" ID=\"WMP7\" WIDTH=\"0\" STYLE=\"visibility: hidden;\"></OBJECT> ! <div id=\"shell\"> ! <div style=\"font-weight: bold; font-size: 12px; font-family: Calibri, Helvetica, sans-serif;\" id=\"station\">" . $title_bar . "</div> ! <span style=\"font-weight : bold;\">"; ! if($state == "Down") ! { ! $html .= "<div id=\"display\">" . $lang['Off_Air'] . "</div>"; ! } ! else ! { ! $html .= "<div class=\"dmarquee\" style=\"font-weight: bold; font-size: 12px; font-family: Calibri, Helvetica, sans-serif;\"><div><div>" . $lang['stop'] . "</div></div></div>"; ! } ! $html .= " ! </span> ! ! <div id=\"iframe \" class=\"controls\"> ! <IFRAME src=\"".$module_root_path."includes/cur_song.".$phpEx."#\" name=\"embedFrame\" ID=\"embedFrame\" width=\"100\" height=\"0\" scrolling=\"no\" style=\"width:100%;height:0px;border:0px dotted #BEBEBE;\">Sorry, your browser doesn't seem to support IFrames!</iframe> </div> ! <div id=\"firstinfo\"></div> ! <div id=\"secondinfo\"></div> ! <div id=\"thirdinfo\"></div> ! <div id=\"forthinfo\"></div> ! <div id=\"infoPlayer\"></div> ! <div id=\"infoPlugin\"></div> ! <div id=\"equalizer\"><a id=\"cover_url\" target=\"_blank\" href=\"" . $no_cover_url . "\"><img id=\"eq\" src=\"" . $module_root_path . "skins/" . SKIN . "/equalizer_stop.gif\" /></a></div> ! <div id=\"closeButton\"><img id=\"closeB\" src=\"" . $module_root_path . "skins/" . SKIN . "/close.png\" onclick=\"javascript:window.close()\" ! onmouseover=\"javascript:document.getElementById('closeB').src = '" . $module_root_path . "skins/" . SKIN . "/close_h.png';\" ! onmouseout=\"javascript:document.getElementById('closeB').src = '" . $module_root_path . "skins/" . SKIN . "/close.png';\" /> </div> ! <div id=\"play\"><img id=\"playB\" src=\"" . $module_root_path . "skins/" . SKIN . "/play.png\" onclick=\"javascript:playR()\" ! onmouseover=\"javascript:document.getElementById('playB').src = '" . $module_root_path . "skins/" . SKIN . "/play_h.png';\" ! onmouseout=\"javascript:document.getElementById('playB').src = '" . $module_root_path . "skins/" . SKIN . "/play.png';\" /> </div> ! <div id=\"stop\"><img id=\"stopB\" src=\"" . $module_root_path . "skins/" . SKIN . "/stop.png\" onclick=\"javascript:stopR()\" ! onmouseover=\"document.getElementById('stopB').src = '" . $module_root_path . "skins/" . SKIN . "/stop_h.png';\" ! onmouseout=\"document.getElementById('stopB').src = '" . $module_root_path . "skins/" . SKIN . "/stop.png';\" /> </div> ! <div id=\"select\"> ! " . $lang['media_player'] . " ! <select id=\"embedchoise\" onchange=\"javascript:changeEmbed()\"> ! <option value=\"auto\">" . $lang['auto_detect'] . "</option> ! <option value=\"wmp\">WMP</option>"; ! ! if ($mimetype !== 'audio/aacp') ! { ! $html .= "<option value=\"real\">RealPlayer</option>"; ! $html .= "<option value=\"quicktime\">QuickTime</option>"; ! } ! $html .= " ! <script type=\"text/javascript\"><!--// ! if(AXcompatible()) { ! document.write('<option value=\"winampX\">WinampX</option>'); ! } ! // --></script> </select> </div> *************** *** 321,328 **** </div> - <div id="iframe"> - <IFRAME src="#" name="embedFrame" ID="embedFrame" width="0" height="0" style="border: 0px;"></iframe> - </div> </body> ! </html> \ No newline at end of file --- 149,158 ---- </div> + </div> </body> ! </html>"; ! ! print $html; ! ! ?> \ No newline at end of file Index: play.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** play.php 29 Apr 2008 02:39:48 -0000 1.6 --- play.php 28 May 2013 07:14:33 -0000 1.7 *************** *** 1,174 **** ! <?php ! if( !defined('IN_PORTAL') || !is_object($mx_block)) ! { ! ! define('IN_PORTAL', true); ! ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! // ! // End session management ! // ! $title = 'Media Player Radio'; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '315' ); ! $is_block = FALSE; } else { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! if( is_object($mx_block)) { ! $is_block = TRUE; } } ! define('IN_SHOTCAST', true); ! require($module_root_path .'includes/common.'.$phpEx); ! ! header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); ! header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); ! header('Cache-Control: no-store, no-cache, must-revalidate'); ! header('Cache-Control: post-check=0, pre-check=0', false); ! header('Pragma: no-cache'); ! ?> ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> ! <head> ! <?php require($module_root_path . "includes/detectScript.htm"); ?> ! <script type="text/javascript"> ! <!-- ! window.onunload = function(){ ! stopWinampx(); ! } ! //--> ! </script> </head> <body> ! <?php ! if(!isset($_GET['embed'])){ ! ?> ! <script type="text/javascript"> var embed = detectEmbed(); ! self.location = 'play.php?embed='+embed; ! </script> ! <?php ! } else { - if($_GET['embed'] == "real") { ! ?> ! <OBJECT id="RVOCX" classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"> ! <PARAM name="SRC" value="http://<?=$radio->host;?>:<?=$radio->port;?><?=$wmplist;?>"> ! <PARAM name="autostart" value="true"> ! <EMBED autostart="true" src="http://<?=$radio->host;?>:<?=$radio->port;?><?=$wmplist;?>" type="audio/x-pn-realaudio-plugin"> ! </EMBED> ! </OBJECT> ! <?php } else if($_GET['embed'] == "quicktime") { ! ?> ! <OBJECT id="QuickTime" classid="CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" ! codebase="http://www.apple.com/qtactivex/qtplugin.cab"> ! <PARAM name="SRC" value="http://<?=$radio->host;?>:<?=$radio->port;?><?=$wmplist;?>"> ! <PARAM name="AUTOPLAY" value="true"> ! <EMBED id="QuickTime" src="http://<?=$radio->host;?>:<?=$radio->port;?><?=$wmplist;?>" type="audio/mpegurl" autoplay="true" ! pluginspace="http://www.apple.com/quicktime/download/"> ! </EMBED> ! </OBJECT> ! <?php } else if($_GET['embed'] == "winampX") { ! ?> ! <OBJECT id="IWinAmpActiveX" classid="CLSID:FE0BD779-44EE-4A4B-AA2E-743C63F2E5E6" ! codebase="http://pdl.stream.aol.com/downloads/aol/unagi/ampx_en_dl.cab" version="-1,-1,-1,-1"> ! </OBJECT> ! <script type="text/javascript"> ! winampx = document.getElementById('IWinAmpActiveX'); ! winampx.AppendFileToPlaylist('http://<?=$radio->host;?>:<?=$radio->port;?>'); ! winampx.Play(); ! </script> ! <?php } else if($_GET['embed'] == "wmp6") { ! ?> ! <OBJECT id="MediaPlayer" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" ! codebase="http://activex.microsoft.com/activex/controls/mplayer/sv/nsmp2inf.cab#Version=6,4,5,715" ! type="application/x-oleobject"> ! <PARAM name="FileName" value="http://<?=$radio->host;?>:<?=$radio->port;?>"> ! <PARAM name="AutoStart" value="true"> ! </OBJECT> ! <?php } else if($_GET['embed'] == "wmp7") { ! ?> ! <OBJECT id="MediaPlayer" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"> ! <PARAM name="url" value="http://<?=$radio->host;?>:<?=$radio->port;?>"> ! <PARAM name="AutoStart" value="true"> ! <EMBED type="application/x-mplayer2" ! pluginspage="http://www.microsoft.com/windows/windowsmedia/" ! filename="http://<?=$radio->host;?>:<?=$radio->port;?>" src="http://<?=$radio->host;?>:<?=$radio->port;?>" ! autostart=1> ! </EMBED> ! </OBJECT> ! <?php } else if($_GET['embed'] == "aac_wmp") { ! ?> ! <SCRIPT LANGUAGE="JavaScript"> ! //IE Code ! document.write ('<OBJECT ID="MediaPlayer"'); ! document.write (' CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"'); ! document.write (' CODEBASE="http://retro-radio.net/plugin/setup_AAC_aacPlus_plugin_1_0_36.exe"'); ! 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="icyx://<?=$scip;?>:<?=$scport;?>" valuetype="ref">'); ! document.write ('<PARAM NAME="url" VALUE="icyx://<?=$scip;?>:<?=$scport;?>"> '); ! 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="icyx://<?=$scip;?>:<?=$scport;?>"'); ! document.write (' src="icyx://<?=$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=290'); ! document.write (' height=320>'); document.write (' </embed>'); - document.write ('</OBJECT>'); ! </SCRIPT> ! <?php } } ! ?> ! </body> ! </html> --- 1,608 ---- ! <?php ! // ! // Radiplayer. ! // Copyright (C) 2008 name of drknas ! // ! // This program is free software; you can redistribute it and/or ! // modify it under the terms of the GNU General Public License ! // as published by the Free Software Foundation; either version 2 ! // of the License, or (at your option) any later version. ! // ! // This program is distributed in the hope that it will be useful, ! // but WITHOUT ANY WARRANTY; without even the implied warranty of ! // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! // GNU General Public License for more details. ! // ! // You should have received a copy of the GNU General Public License ! // along with this program; if not, write to the Free Software ! // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. ! // ! // History: ! // Little Frog (v 1.x - 2.x) ! // OryNider (v 1.x - 3.x) ! // DrKnas (v 4.0 - 4.2.x) ! // OryNider (Current maintainer: 3.5.x & 4.9.x & mxpcms versions) ! header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); ! header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); ! header('Cache-Control: no-store, no-cache, must-revalidate'); ! header('Cache-Control: post-check=0, pre-check=0', false); ! header('Pragma: no-cache'); ! $module_root_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! define('IN_SHOTCAST', true); ! require($module_root_path .'includes/common.'.$phpEx); ! //* MX-CMS Code Start ! if(defined('IN_PORTAL')) ! { ! user_listensc($nick); //Update web listen users ! } ! //* MX-CMS Code End ! if(isset($_GET["config"])) ! { ! $config_get = $_GET["config"]; } else { ! $config_get = "config"; ! } ! // this is a user input some cleaning should be done. ! $clean_config = preg_replace("/[^a-zA-Z0-9_.-@]/", "", $config_get); ! $config = $module_root_path . "config/" . $clean_config . "." . $phpEx; ! if($clean_config == "display_config") ! { ! die("Faulty config file."); ! } ! if(!file_exists($config)) ! { ! // this is a user input some cleaning should be done. ! $config = $module_root_path . "config/config." . $phpEx; ! if(!file_exists($config)) { ! die("U have to suply in the url what config file to use!"); } } ! $html = " ! <!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"> <html> ! <head>"; ! $html .= css($module_root_path, $phpEx, $radio_skin); ! $html .= "<title>" . $lang['Radio_Player'] . " • " . $station_name . "</title>"; ! $html .= java_script($module_root_path, $phpEx, $mimetype, $clean_config, $radio_skin, $autoplay, $state, $lang, $java_debug, $update_title); ! $html .= "<SCRIPT LANGUAGE=\"JavaScript\"> ! var videoElements = document.getElementsByTagName('video'); ! for (var i=0; i<videoElements.length; i++) ! { ! videoElement = videoElements[i]; ! ! var control = document.createElement('object'); ! control.type = 'application/x-ms-wmp'; ! control.width = 212; ! control.width = 32; ! ! // following standard attributes need to be assigned only when they are present in the video tag ! if (videoElement.id != \"\") { control.id = videoElement.id; } ! if (videoElement.dir != \"\") { control.dir = videoElement.dir; } ! //if (videoElement.class != \"\") { control.class = videoElement.class; } ! if (videoElement.title != \"\") { control.title = videoElement.title; } ! if (videoElement.draggable) { control.draggable = true; } ! if (videoElement.lang != \"\") { control.lang = videoElement.lang; } ! if (videoElement.spellcheck) { control.spellcheck = true; } ! if (videoElement.style.cssText != \"\") { control.style.cssText = videoElement.style.cssText; } ! ! // controls attribute - boolean for video tag. ! // for WMP, uiMode => \"full\" shows controls, \"none\" shows only video window ! var controls = (videoElement.controls == true) ? \"full\" : \"none\"; ! control.setAttribute(\"uiMode\", controls); ! ! var autostart = videoElement.autoplay; // boolean - maps to object.autostart property ! var paramAutoStart = document.createElement(\"param\"); ! paramAutoStart.name = \"autostart\"; ! paramAutoStart.value = autostart; ! control.appendChild(paramAutoStart); ! ! //OPEN: Should we always set autostart when \"controls\" are hidden ? ! ! var paramUrl = document.createElement(\"param\"); ! paramUrl.name = \"url\"; ! paramUrl.value = supportedMediaSource; ! control.appendChild(paramUrl); ! } ! </SCRIPT>"; ! $html .= " </head> <body> ! <!--// Create ActiveX objects for later checks for WMP versions. --> ! <!--// OBJECT CLASSID=\"CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95\" ID=\"WMP64\" STYLE=\"visibility: visible;\" type=\"application/x-mplayer2\" type=\"application/x-oleobject\"></OBJECT --> ! <!--// OBJECT CLASSID=\"CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6\" ID=\"WMP7\" STYLE=\"visibility: visible;\" type=\"application/x-oleobject\" type=\"application/x-mplayer2\"></OBJECT-->"; ! if(!isset($_GET['embed'])) ! { ! $html .= " ! <script type=\"text/javascript\"> var embed = detectEmbed(); ! self.location = 'play.php?config=" . $clean_config . "&embed='+embed; ! </script>"; ! } else { if($_GET['embed'] == "real") { ! $html .= " ! <OBJECT id=\"RVOCX\" width=\"90\" height=\"12\" classid=\"CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA\"> ! <PARAM name=\"SRC\" value=\"".$protocol_type."://".$full_real_and_quick_playlist_url . "\"> ! <PARAM NAME=\"CONTROLS\" VALUE=\"VolumeSlider\"> ! <PARAM NAME=\"NOJAVA\" VALUE=\"true\"> ! <PARAM name=\"autostart\" value=\"true\"> ! <EMBED autostart=\"true\" src=\"".$protocol_type."://".$full_real_and_quick_playlist_url . "\" width=\"90\" height=\"12\" NOJAVA=\"true\" CONTROLS=\"VolumeSlider\" type=\"audio/x-pn-realaudio-plugin\"> ! </EMBED> ! </OBJECT>"; } else if($_GET['embed'] == "quicktime") { ! $html .= " ! <OBJECT width=\"90\" height=\"12\" id=\"QuickTime\" classid=\"CLSID:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B\" ! codebase=\"http://www.apple.com/qtactivex/qtplugin.cab\"> ! <PARAM name=\"SRC\" value=\"http://".$full_real_and_quick_playlist_url . "\"> ! <PARAM name=\"AUTOPLAY\" value=\"true\"> ! <EMBED id=\"QuickTime\" src=\"http://".$full_real_and_quick_playlist_url . "\" width=\"90\" height=\"12\" type=\"audio/mpegurl\" autoplay=\"true\" ! pluginspace=\"http://www.apple.com/quicktime/download/\"> ! </EMBED> ! </OBJECT>"; } else if($_GET['embed'] == "winampX") { ! $html .= " ! <SCRIPT LANGUAGE=\"JavaScript\"> ! //IE Code http://radio.hostinglotus.com/~jaranai/ampx_en_dl.cab ! var otobasla = 1; //Sayfa yuklendiginde calsin 1 / Ziyaretci baslatsin 0 ! var leaktest = 1; ! var winampx; ! var gecko = !(navigator.appName == 'Internet Explorer'); ! var initted = 0; ! ! function mozIAmpXEvents() { } ! mozIAmpXEvents.prototype = { ! WinampMsgEvent: function ( msgID ) {}, ! WinampStatus: function( msgID, comp ) {}, ! WinampMetaData: function( data, size ) {}, ! QueryInterface: function(iid) ! { ! if (!iid.equals(Components.interfaces.Unagi2MozEvents)&& ! !iid.equals(Components.interfaces.nsISupports)) ! { ! throw Components.results.NS_ERROR_NO_INTERFACE; ! } ! return this; ! }, ! val: \"<devault value>\" ! } ! WINAMPX_EVENT_FILE_END = 1; ! WINAMPX_EVENT_TRACK_CHANGED = 2; ! WINAMPX_EVENT_LAUNCH_URL = 3; ! WINAMPX_EVENT_TRACK_INFO_CHANGED = 4; ! WINAMPX_EVENT_VIDEO_WND_REQUESTED = 5; ! WINAMPX_EVENT_VIDEO_WND_SIZE_CHANGED = 6; ! WINAMPX_EVENT_VIDEO_WND_DONE = 7; ! WINAMPX_EVENT_HWND_READY = 8; ! WINAMPX_EVENT_NO_SOUNDCARD_AVL = 100; ! WINAMPX_EVENT_NO_PLUGINS_AVL = 101; ! WINAMPX_EVENT_CANT_PLAY_FILE = 102; ! WINAMPX_EVENT_WMA_FILE_EXPIRED = 103; ! WINAMPX_EVENT_FILE_NOT_FOUND = 104; ! WINAMPX_EVENT_PLAYLIST_NO_FILES_PRESENT = 105; ! WINAMPX_EVENT_PLAYLIST_EMPTY = 106; ! WINAMPX_EVENT_REAL_ENGINE_MISSING = 107; ! WINAMPX_EVENT_CORRUPT_FILE = 108, ! WINAMPX_EVENT_UNSUPPORTED_FORMAT = 109; ! WINAMPX_EVENT_QUICKTIME_ENGINE_MISSING = 110, ! WINAMPX_EVENT_REAL_ENGINE_ERROR = 111, ! WINAMPX_EVENT_FILE_SYSTEM_CHANGE = 112 ! WINAMPX_STATUS_INIT_WININET = 200; ! WINAMPX_STATUS_OPENING_URL = 201; ! WINAMPX_STATUS_HTTP_ERROR = 202; ! WINAMPX_STATUS_DOWNLOADING_URL = 203; ! WINAMPX_STATUS_URL_DOWNLOADED = 204; ! WINAMPX_STATUS_CANNOT_CREATE_TEMP_FILE = 205; ! WINAMPX_STATUS_CANNOT_OPEN_URL = 206; ! WINAMPX_STATUS_CONNECTION_LOST = 207; ! WINAMPX_STATUS_PREBUFFERING = 208; ! WINAMPX_STATUS_RESYNC = 209; ! WINAMPX_STATUS_BROADCAST_INTERRUPT = 210; ! WINAMPX_STATUS_BROADCAST_TERMINATE = 211; ! WINAMPX_STATUS_DOLBY_ERROR = 212; ! WINAMPX_STATUS_TRANSFER_RATE = 213; ! WINAMPX_STATUS_STREAM_BEGIN = 214; ! WINAMPX_STATUS_LENGTH_CHANGE = 215; ! WINAMPX_STATUS_VIDEO_KEYPRESS = 216; ! WINAMPX_STATUS_VIDEO_SYSKEYPRESS = 217; ! WINAMPX_STATUS_SERVER_RESTART = 218; ! WINAMPX_STATUS_SERVER_CRASH = 219; ! WINAMPX_STATUS_ERROR_KILLING_THREAD = 220; ! WINAMPX_STATUS_ADVANCED_PARSE_ERROR = 221; ! WINAMPX_STATUS_SERVER_SWAPPED = 222; ! STATUS_STOPED = 0; ! STATUS_PLAYING = 1; ! STATUS_PAUSED = 2; ! STATUS_BUFFERING = 3; ! var clockPrebuffer; ! ! function onWinampMSGEvent(a) ! { ! switch(a) ! { ! case WINAMPX_EVENT_HWND_READY: ! var hwnd = winampx.hwnd; ! winampx.SetVideoHWND(hwnd); ! if ( leaktest ) winampx.Play(); ! break; ! case WINAMPX_EVENT_VIDEO_WND_DONE: ! winampx.RemoveFullScreen(); ! case WINAMPX_EVENT_FILE_SYSTEM_CHANGE: ! RefreshTitle(); ! RefreshPlaylist(); ! break; ! default: ! break; ! } ! } ! vpstatus=0; ! if (document.images) ! { ! zap=new Array(15); ! zap[0]=new Image; zap[0].src=\"". $module_root_path . "skins/" . SKIN . "/voldis_on.gif\"; ! zap[1]=new Image; zap[1].src=\"". $module_root_path . "skins/" . SKIN . "/voldis_off.gif\"; ! zap[2]=new Image; zap[2].src=\"". $module_root_path . "skins/" . SKIN . "/voldis_mute.gif\"; ! zap[3]=new Image; zap[3].src=\"". $module_root_path . "skins/" . SKIN . "/stop_on.gif\"; ! zap[4]=new Image; zap[4].src=\"". $module_root_path . "skins/" . SKIN . "/stop_off.gif\"; ! zap[5]=new Image; zap[5].src=\"". $module_root_path . "skins/" . SKIN . "/play_on.gif\"; ! zap[6]=new Image; zap[6].src=\"". $module_root_path . "skins/" . SKIN . "/play_off.gif\"; ! zap[7]=new Image; zap[7].src=\"". $module_root_path . "skins/" . SKIN . "/pause_on.gif\"; ! zap[8]=new Image; zap[8].src=\"". $module_root_path . "skins/" . SKIN . "/pause_off.gif\"; ! zap[9]=new Image; zap[9].src=\"". $module_root_path . "skins/" . SKIN . "/mute_on.gif\"; ! zap[10]=new Image; zap[10].src=\"". $module_root_path . "skins/" . SKIN . "/mute_off.gif\"; ! zap[11]=new Image; zap[11].src=\"". $module_root_path . "skins/" . SKIN . "/volup_up.gif\"; ! zap[12]=new Image; zap[12].src=\"". $module_root_path . "skins/" . SKIN . "/volup_dwn.gif\"; ! zap[13]=new Image; zap[13].src=\"". $module_root_path . "skins/" . SKIN . "/voldwn_up.gif\"; ! zap[14]=new Image; zap[14].src=\"". $module_root_path . "skins/" . SKIN . "/voldwn_dwn.gif\"; ! } ! ! function onClickPlay(a) ! { ! winampx.Play(); ! RefreshTitle(); ! afmObj_play(1); ! RefreshPlaylist(); ! } ! function onClickStop() ! { ! winampx.Stop(); ! afmObj_play(0); ! RefreshPlaylist(); ! } ! function onClickPause() ! { ! winampx.Pause(); ! afmObj_play(0); ! } ! function onClickPrevious() ! { ! winampx.PreviousTrack(); ! RefreshTitle(); ! RefreshPlaylist(); ! } ! function onClickNext() ! { ! winampx.NextTrack(); ! RefreshTitle(); ! RefreshPlaylist(); ! } ! function onClicPlaylist(no) ! { ! winampx.Stop(); ! winampx.PlaylistPos = no; ! winampx.Play(); ! } ! function onClickgeri() { ! var val = winampx.Position - 10; ! winampx.Position = val; ! } ! ! function onClickileri() { ! var val = winampx.Position + 10; ! winampx.Position = val; ! } ! function Mute() ! { ! suanses = winampx.Volume; ! if ( suanses >= 1 ) { ! img_mute_on.style.display = \"block\"; ! img_mute_off.style.display = \"none\"; ! volumerate.innerHTML = \"Ses düzeyi - 0\"; ! suanses = 0; ! winampx.Volume = 0; ! } else { ! img_mute_on.style.display = \"none\"; ! img_mute_off.style.display = \"block\"; ! winampx.Volume = 255; ! suanses = winampx.Volume; ! volumerate.innerHTML = \"Ses düzeyi - 255\"; ! } ! } ! function setVolume(act) { ! currentVol = winampx.Volume; ! if(act == \"up\") { ! targetVol = currentVol + 5; ! if(targetVol >= 255) targetVol = 255; ! } else if(act == \"down\") { ! targetVol = currentVol - 5; ! if(targetVol <= 0) targetVol = 0; ! } else if(act <= 255) { ! targetVol = act; ! } ! volumerate.innerHTML = \"Ses düzeyi - \"+targetVol; ! winampx.Volume = targetVol; ! } ! function about() { ! var res = 'IWinAmpActiveX E-mail: aq...@by..., Homepage : theaqua.com : Skin tasarýmý : sd...@sa...'; ! alert(res); ! } ! function imgchange(imgnum) ! { ! if (imgnum == \"play\") { vpstatus=1; document.vpstop.src=zap[4].src; document.vpplay.src=zap[5].src; document.vppaus.src=zap[8].src; } ! if (imgnum == \"paus\") { vpstatus=2; document.vpstop.src=zap[4].src; document.vpplay.src=zap[6].src; document.vppaus.src=zap[7].src; } ! if (imgnum == \"stop\") { vpstatus=3; document.vpstop.src=zap[3].src; document.vpplay.src=zap[6].src; document.vppaus.src=zap[8].src; } ! if (imgnum == \"muta\") { vpstatus=4; document.vpmute.src=zap[10].src; } ! if (imgnum == \"mutb\") { vpstatus=5; document.vpmute.src=zap[9].src; } ! if (imgnum == \"vola\") { vpstatus=3; document.vpvolup.src=zap[11].src; } ! if (imgnum == \"volb\") { vpstatus=3; document.vpvolup.src=zap[12].src; } ! if (imgnum == \"volc\") { vpstatus=3; document.vpvoldwn.src=zap[13].src; } ! if (imgnum == \"vold\") { vpstatus=3; document.vpvoldwn.src=zap[14].src; } ! } ! function playitnow() { if (vpstatus == 1) { } else { winampx.Play(); imgchange('play'); } } ! function pausitnow() { if (vpstatus == 2) { playitnow() } else { winampx.Pause(); imgchange('paus'); } } ! function stopitnow() { if (vpstatus == 3) { } else { winampx.Stop(); imgchange('stop'); } } ! ! document.writeln('<table width=\"238\" height=\"38\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" background=\"". $module_root_path . "skins/" . SKIN . "/controller_bg.png\" style=\"margin: 0; padding: 0\">'); ! document.writeln(' <tbody style=\"margin: 0; padding: 0\">'); ! document.writeln(''); ! document.writeln(''); ! document.writeln(' <tr style=\"margin: 0; padding: 0\">'); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"45\"><img src=\"". $module_root_path . "skins/" . SKIN . "/spacer.gif\" width=\"0\" height=\"0\"></td>'); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"30\"><a title=\"Stop Video Stream\" style=\"text-decoration: none; color: #8a99f4; border: 0px none; margin: 0; padding: 0\" onmousedown=\"stopitnow();\"><img name=\"vpstop\" src=\"". $module_root_path . "skins/" . SKIN . "/stop_off.gif\" width=\"25\" height=\"21\" border=\"0\"></a></td>'); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"4\"><img src=\"". $module_root_path . "skins/" . SKIN . "/spacer.gif\" width=\"0\" height=\"0\"></td>'); ! document.writeln(' '); ! document.writeln(''); ! document.writeln(''); ! document.writeln(''); ! document.writeln(' '); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"20\"><img src=\"". $module_root_path . "skins/" . SKIN . "/spacer.gif\" width=\"0\" height=\"0\"></dd>'); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"40\"><a title=\"Play Video Stream\" style=\"text-decoration: none; color: #8a99f4; border: 0px none; margin: 0; padding: 0\" onmousedown=\"playitnow();\"><img name=\"vpplay\" src=\"". $module_root_path . "skins/" . SKIN . "/play_off.gif\" width=\"41\" height=\"26\" border=\"0\"></a></td>'); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"20\"><img src=\"". $module_root_path . "skins/" . SKIN . "/spacer.gif\" width=\"0\" height=\"0\"></dd>'); ! document.writeln(' '); ! document.writeln(''); ! document.writeln(''); ! document.writeln(''); ! document.writeln(' '); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"4\"><img src=\"". $module_root_path . "skins/" . SKIN . "/spacer.gif\" width=\"4\" height=\"4\"></td>'); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"30\"><a title=\"Pause Video Stream\" style=\"text-decoration: none; color: #8a99f4; border: 0px none; margin: 0; padding: 0\" onmousedown=\"pausitnow();\"><img name=\"vppaus\" src=\"". $module_root_path . "skins/" . SKIN . "/pause_off.gif\" width=\"25\" height=\"21\" border=\"0\"></a></td>'); ! document.writeln(' <td style=\"margin: 0; padding: 0\" width=\"45\"><img src=\"". $module_root_path . "skins/" . SKIN . "/spacer.gif\" width=\"4\" height=\"4\"></td>'); ! document.writeln(' </tr>'); ! document.writeln(''); ! document.writeln(''); ! document.writeln('</tbody>'); ! document.writeln('</table>'); ! ! if (gecko) ! { ! navigator.plugins.refresh(false); ! ! document.writeln('<div id=\"embedframe\" width=\"0\" height=\"0\" style=\"visibility: hidden; display: none;\">'); ! document.writeln('<OBJECT width=\"0\" height=\"0\" ID=\"IWinAmpActiveXG\" border=\"0\" CLASSID=\"CLSID:FE0BD779-44EE-4A4B-AA2E-743C63F2E5E6\"'); ! document.writeln('codebase=\"".ADDON_URL."addonsx/ampx_en_dl.cab\" version=\"-1,-1,-1,-1\" STYLE=\"visibility: hidden; display: none;\">'); ! document.writeln('</OBJECT>'); ! document.writeln('</div>'); ! ! winampx = document.getElementById('IWinAmpActiveXG'); ! winampx.AppendFileToPlaylist('".$protocol_type."://".$caster_ip.":".$caster_port.$icecast_mount_point."'); ! playitnow(); ! } ! else ! { ! //FF Code ! document.writeln('<OBJECT width=\"100\" height=\"12\" ID=\"IWinAmpActiveX\" border=\"0\" CLASSID=\"CLSID:FE0BD779-44EE-4A4B-AA2E-743C63F2E5E6\"'); ! document.writeln('codebase=\"".ADDON_URL."addonsx/ampx_en_dl.cab\" version=\"-1,-1,-1,-1\">'); ! document.writeln('</OBJECT>'); ! ! events = new mozIAmpXEvents(); ! events.WinampMsgEvent = onWinampMSGEvent; ! events.WinampStatus = onWinampStatus; ! events.WinampMetaData = onWinampMetaData; ! ! winampx = document.getElementById('IWinAmpActiveX'); ! winampx.AppendFileToPlaylist('".$protoc... [truncated message content] |