|
From: OryNider <ory...@us...> - 2008-02-24 01:14:13
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12961 Modified Files: cur_song.php db_install.php db_uninstall.php db_upgrade.php getinfo.php moreinfo.php mx_install_readme.htm play_real.php play_wmp.php radio_update.php radioplayer.php shotcast_front.php shotcast_last10.php shotcast_stats.php Log Message: Index: shotcast_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_stats.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** shotcast_stats.php 2 Oct 2007 04:52:18 -0000 1.3 --- shotcast_stats.php 24 Feb 2008 01:14:06 -0000 1.4 *************** *** 31,35 **** mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! @define('_SHOTCAST_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); --- 31,35 ---- mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! define('IN_SHOTCAST', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); *************** *** 64,90 **** 'L_STATE' => $lang['Server_state'], 'S_STATE' => $state, ! 'L_SERVER_TITLE' => $lang['Station'], ! 'S_SERVER_TITLE' => $servertitle, 'L_SONG' => $lang['Current_song'], 'S_SONG' => $song[0], 'L_BITRATE' => $lang['Bitrate'], 'S_BITRATE' => $text[5], ! 'L_PEAK_LISTENERS' => $lang['Listeners_peak'], ! 'S_PEAK_LISTENERS' => $text[2], ! 'L_MAX_LISTENERS' => $lang['Max_listeners'], ! 'S_MAX_LISTENERS' => $text[3], 'L_SERVERGENRE' => $lang['Server_genre'], 'S_SERVERGENRE' => $servergenre, 'L_SONGURL' => $lang['Stream_URL'], 'S_SONGURL' => $songurl, ! 'S_SERVERURL' => $serverurl, ! 'L_REPORTEDLISTENERS' => $lang['Unique'], ! 'S_REPORTEDLISTENERS' => $reportedlisteners, ! 'BLOCK_SIZE' => $block_size, 'BLOCK_ID' => $block_id, ! 'L_TITLE' => 'shotcast') ); --- 64,90 ---- 'L_STATE' => $lang['Server_state'], 'S_STATE' => $state, ! 'L_SERVER_TITLE' => $lang['Station'], ! 'S_SERVER_TITLE' => $servertitle, 'L_SONG' => $lang['Current_song'], 'S_SONG' => $song[0], 'L_BITRATE' => $lang['Bitrate'], 'S_BITRATE' => $text[5], ! 'L_PEAK_LISTENERS' => $lang['Listeners_peak'], ! 'S_PEAK_LISTENERS' => $text[2], ! 'L_MAX_LISTENERS' => $lang['Max_listeners'], ! 'S_MAX_LISTENERS' => $text[3], 'L_SERVERGENRE' => $lang['Server_genre'], 'S_SERVERGENRE' => $servergenre, 'L_SONGURL' => $lang['Stream_URL'], 'S_SONGURL' => $songurl, ! 'S_SERVERURL' => $serverurl, ! 'L_REPORTEDLISTENERS' => $lang['Unique'], ! 'S_REPORTEDLISTENERS' => $reportedlisteners, ! 'BLOCK_SIZE' => $block_size, 'BLOCK_ID' => $block_id, ! 'L_TITLE' => 'shotcast') ); Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_upgrade.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_upgrade.php 8 Feb 2008 23:44:04 -0000 1.3 --- db_upgrade.php 24 Feb 2008 01:14:05 -0000 1.4 *************** *** 31,35 **** } ! $mx_module_version = '1.0'; $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 = '1.0.8'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 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 *************** *** 91,93 **** echo "</table><br />"; ! ?> \ No newline at end of file --- 92,94 ---- echo "</table><br />"; ! ?> Index: shotcast_front.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_front.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** shotcast_front.php 8 Feb 2008 23:44:05 -0000 1.4 --- shotcast_front.php 24 Feb 2008 01:14:06 -0000 1.5 *************** *** 42,46 **** mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! @define('_SHOTCAST_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); --- 42,46 ---- mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! define('IN_SHOTCAST', true); include_once($module_root_path . 'includes/common.'.$phpEx); *************** *** 79,96 **** 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]; } --- 79,96 ---- 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]; } *************** *** 186,188 **** unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ?> \ No newline at end of file --- 186,188 ---- unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ?> Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/mx_install_readme.htm,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_install_readme.htm 6 Jun 2007 23:18:01 -0000 1.1 --- mx_install_readme.htm 24 Feb 2008 01:14:06 -0000 1.2 *************** *** 1,8 **** ! <html> <head> ! <title>Mx Portal installation - readme</title> ! <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> ! <!-- link rel="stylesheet" href="templates/subSilver/subSilver.css" type="text/css" --> <style type="text/css"> <!-- /* --- 1,14 ---- ! <html xmlns="http://www.w3.org/1999/xhtml"> ! <!-- $Id$ --> <head> ! <meta name="generator" content= ! "HTML Tidy for Windows (vers 19 September 2007), see www.w3.org" /> ! <title>mxBB Portal installation - readme</title> ! <meta http-equiv="Content-Type" content= ! "text/html; charset=us-ascii" /> ! <!-- link rel="stylesheet" href="../../templates/subSilver/subSilver.css" type="text/css" --> ! <style type="text/css"> + /*<![CDATA[*/ <!-- /* *************** *** 18,29 **** /* General page style. The scroll bar colours only visible in IE5.5+ */ body { ! background-color: #E5E5E5; ! scrollbar-face-color: #DEE3E7; ! scrollbar-highlight-color: #FFFFFF; ! scrollbar-shadow-color: #DEE3E7; ! scrollbar-3dlight-color: #D1D7DC; ! scrollbar-arrow-color: #006699; ! scrollbar-track-color: #EFEFEF; ! scrollbar-darkshadow-color: #98AAB1; } --- 24,35 ---- /* General page style. The scroll bar colours only visible in IE5.5+ */ body { ! background-color: #E5E5E5; ! scrollbar-face-color: #DEE3E7; ! scrollbar-highlight-color: #FFFFFF; ! scrollbar-shadow-color: #DEE3E7; ! scrollbar-3dlight-color: #D1D7DC; ! scrollbar-arrow-color: #006699; ! scrollbar-track-color: #EFEFEF; ! scrollbar-darkshadow-color: #98AAB1; } *************** *** 31,47 **** font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link, a:active, a:visited { color : #006699; } ! a:hover { text-decoration: underline; color : #DD6900; } ! hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ ! .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ ! .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ ! td.row1 { background-color: #EFEFEF; } ! td.row2 { background-color: #DEE3E7; } ! td.row3 { background-color: #D1D7DC; } /* --- 37,53 ---- font, th, td, p { font-family: Verdana, Arial, Helvetica, sans-serif } a:link, a:active, a:visited { color : #006699; } ! a:hover { text-decoration: underline; color : #DD6900; } ! hr { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;} /* This is the border line & background colour round the entire page */ ! .bodyline { background-color: #FFFFFF; border: 1px #98AAB1 solid; } /* This is the outline round the main forum tables */ ! .forumline { background-color: #FFFFFF; border: 2px #006699 solid; } /* Main table cell colours and backgrounds */ ! td.row1 { background-color: #EFEFEF; } ! td.row2 { background-color: #DEE3E7; } ! td.row3 { background-color: #D1D7DC; } /* *************** *** 51,69 **** */ td.rowpic { ! background-color: #FFFFFF; ! background-image: url('../../install/templates/subSilver/images/cellpic2.jpg'); ! background-repeat: repeat-y } /* Header cells - the blue and silver gradient backgrounds */ ! th { ! color: #FFA34F; font-size: 11px; font-weight : bold; ! background-color: #006699; height: 25px; ! background-image: url('../../install/templates/subSilver/images/cellpic3.gif'); } td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { ! background-image: url('../../install/templates/subSilver/images/cellpic1.gif'); ! background-color:#D1D7DC; border: medium solid #FFFFFF; height: 28px } --- 57,75 ---- */ td.rowpic { ! background-color: #FFFFFF; ! background-image: url('../../install/templates/subSilver/images/cellpic2.jpg'); ! background-repeat: repeat-y } /* Header cells - the blue and silver gradient backgrounds */ ! th { ! color: #FFA34F; font-size: 11px; font-weight : bold; ! background-color: #006699; height: 25px; ! background-image: url('../../install/templates/subSilver/images/cellpic3.gif'); } td.cat, td.catHead, td.catSides, td.catLeft, td.catRight, td.catBottom { ! background-image: url('../../install/templates/subSilver/images/cellpic1.gif'); ! background-color:#D1D7DC; border: medium solid #FFFFFF; height: 28px } *************** *** 74,100 **** */ td.cat, td.catHead, td.catBottom { ! height: 29px; ! border-width: 0px 0px 0px 0px; } th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { ! font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right, td.spaceRow { ! background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } ! th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; } ! th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; } ! th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; } ! th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ ! .maintitle { ! font-weight: bold; font-size: 22px; font-family: "Fixedsys, Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; ! text-decoration: none; line-height : 120%; color : #000000; } --- 80,106 ---- */ td.cat, td.catHead, td.catBottom { ! height: 29px; ! border-width: 0px 0px 0px 0px; } th.thHead, th.thSides, th.thTop, th.thLeft, th.thRight, th.thBottom, th.thCornerL, th.thCornerR { ! font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; } td.row3Right, td.spaceRow { ! background-color: #D1D7DC; border: #FFFFFF; border-style: solid; } th.thHead, td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; } ! th.thSides, td.catSides, td.spaceRow { border-width: 0px 1px 0px 1px; } ! th.thRight, td.catRight, td.row3Right { border-width: 0px 1px 0px 0px; } ! th.thLeft, td.catLeft { border-width: 0px 0px 0px 1px; } th.thBottom, td.catBottom { border-width: 0px 1px 1px 1px; } ! th.thTop { border-width: 1px 0px 0px 0px; } th.thCornerL { border-width: 1px 0px 0px 1px; } th.thCornerR { border-width: 1px 1px 0px 0px; } /* The largest text used in the index page title and toptic title etc. */ ! .maintitle { ! font-weight: bold; font-size: 22px; font-family: "Fixedsys, Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; ! text-decoration: none; line-height : 120%; color : #000000; } *************** *** 105,145 **** .gen, .genmed, .gensmall { color : #000000; } a.gen, a.genmed, a.gensmall { color: #006699; text-decoration: none; } ! a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ ! .mainmenu { font-size : 11px; color : #000000 } ! a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ ! .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} ! a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ ! .forumlink { font-weight: bold; font-size: 12px; color : #006699; } ! a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ ! .nav { font-weight: bold; font-size: 11px; color : #000000;} ! a.nav { text-decoration: none; color : #006699; } ! a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ ! .topictitle, h1, h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } ! a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ ! .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ ! .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} ! a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} --- 111,151 ---- .gen, .genmed, .gensmall { color : #000000; } a.gen, a.genmed, a.gensmall { color: #006699; text-decoration: none; } ! a.gen:hover, a.genmed:hover, a.gensmall:hover { color: #DD6900; text-decoration: underline; } /* The register, login, search etc links at the top of the page */ ! .mainmenu { font-size : 11px; color : #000000 } ! a.mainmenu { text-decoration: none; color : #006699; } a.mainmenu:hover{ text-decoration: underline; color : #DD6900; } /* Forum category titles */ ! .cattitle { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699} ! a.cattitle { text-decoration: none; color : #006699; } a.cattitle:hover{ text-decoration: underline; } /* Forum title: Text and link to the forums used in: index.php */ ! .forumlink { font-weight: bold; font-size: 12px; color : #006699; } ! a.forumlink { text-decoration: none; color : #006699; } a.forumlink:hover{ text-decoration: underline; color : #DD6900; } /* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */ ! .nav { font-weight: bold; font-size: 11px; color : #000000;} ! a.nav { text-decoration: none; color : #006699; } ! a.nav:hover { text-decoration: underline; } /* titles for the topics: could specify viewed link colour too */ ! .topictitle, h1, h2 { font-weight: bold; font-size: 11px; color : #000000; } a.topictitle:link { text-decoration: none; color : #006699; } a.topictitle:visited { text-decoration: none; color : #5493B4; } ! a.topictitle:hover { text-decoration: underline; color : #DD6900; } /* Name of poster in viewmsg.php and viewtopic.php and other places */ ! .name { font-size : 11px; color : #000000;} /* Location, number of posts, post date etc */ ! .postdetails { font-size : 10px; color : #000000; } /* The content of the posts (body of text) */ .postbody { font-size : 12px; line-height: 18px} ! a.postlink:link { text-decoration: none; color : #006699 } a.postlink:visited { text-decoration: none; color : #5493B4; } a.postlink:hover { text-decoration: underline; color : #DD6900} *************** *** 147,176 **** /* Quote & Code blocks */ .code { ! font-family: Fixedsys, Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { ! font-family: Fixedsys, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ ! .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} ! a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input, textarea, select { ! color : #000000; ! font: normal 11px Fixedsys, Verdana, Arial, Helvetica, sans-serif; ! border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { ! background-color : #FFFFFF; } --- 153,182 ---- /* Quote & Code blocks */ .code { ! font-family: Fixedsys, Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } .quote { ! font-family: Fixedsys, Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%; ! background-color: #FAFAFA; border: #D1D7DC; border-style: solid; ! border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px } /* Copyright and bottom info */ ! .copyright { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;} ! a.copyright { color: #444444; text-decoration: none;} a.copyright:hover { color: #000000; text-decoration: underline;} /* Form elements */ input, textarea, select { ! color : #000000; ! font: normal 11px Fixedsys, Verdana, Arial, Helvetica, sans-serif; ! border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { ! background-color : #FFFFFF; } *************** *** 179,197 **** /* The buttons used for bbCode styling in message post */ input.button { ! background-color : #EFEFEF; ! color : #000000; ! font-size: 11px; font-family: Fixexsys, Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { ! background-color : #FAFAFA; ! font-weight : bold; } /* None-bold submit button */ input.liteoption { ! background-color : #FAFAFA; ! font-weight : normal; } --- 185,203 ---- /* The buttons used for bbCode styling in message post */ input.button { ! background-color : #EFEFEF; ! color : #000000; ! font-size: 11px; font-family: Fixexsys, Verdana, Arial, Helvetica, sans-serif; } /* The main submit button option */ input.mainoption { ! background-color : #FAFAFA; ! font-weight : bold; } /* None-bold submit button */ input.liteoption { ! background-color : #FAFAFA; ! font-weight : normal; } *************** *** 205,300 **** @import url("templates/subSilver/formIE.css"); --> </style> <script language="Javascript" type="text/javascript"> <!-- ! if ( 0 ) ! { ! window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; ! } //--> </script> </head> - <body bgcolor="#FFFFFF" text="#000000"> <table height="1"> ! <tr> ! <td height="41" style="font-family: Arial; font-size: 18pt; font-weight: bold; letter-spacing: 1pt" id="111"><b> ! <font face="Arial" size="5">MX Module - ! mx_shotcast</font></b></td> ! </tr> ! <tr> ! <td height="45"><p><b> ! <font size="2" face="Fixedsys">v. 1.0 RC 2</font></b></p> ! <p><font face="Fixedsys"> ! <span style="font-size: 16px; line-height: normal; font-weight:bold">Module</span> ! <br /> ! - for Mx Portal v. 2.8.x</font></p> ! <p><font face="Fixedsys"><strong>Author</strong><br /> ! Niklas Pull and OryNider (Bodin Florin Ciprian)<br /> ! <br /> ! <span style="font-weight: bold">Description</span> <br /> ! The MX Module is an addon product for the MX-portal. This is the ! shotcast version of mx_radio. The player can play one stream brotcasted ! by a shotcast server that can be configured in AdminCP (host, port and ! password). The embed's are hidden in iframes ! with autostarts, so the pricipal is very ! simple. It also uses an ajax script to update ! the song title. ! Users most have instaled the latest media player (Windows ! Media Player 10+) or Real One Player, but Real player version doesnt not worked with Firefox and Netscape and should be fixed now. ! </font></p> ! <p><font face="Fixedsys"><strong>Features</strong> <br /> ! Easy to use and install/uninstall module.</font></p> ! <p> <font face="Fixedsys"> <br /> ! I. <a href="#install">Installation instructions</a> <br /> ! <br /> ! II. <a href="#themes">Additional styles</a> <br /> ! <br /> ! III. <a href="#languages">Additional languages</a><br /> ! <br /> ! <a target="_blank" class="postlink" href="http://pubory.uv.ro/potal/">DEMO ! </a> <br /> ! <br /><a name="install"> ! <br /> ! <span style="font-weight: bold">I. Installation Instructions</span> <br /> ! To install this module, follow these instructions.</a></font></p> ! <font face="Fixedsys">To summarize:<br> ! If installing from scratch, use import module in the AdminCP.<br> ! If upgrading, uninstall, then reinstall from AdminCP<br> ! If uninstalling, use the delete feature in the AdminCP</font></p> ! <p><font face="Fixedsys">Note: If upgrading,uninstall module without delting db entries, or else ! you'll lose all module data!<br /> ! <br /> ! <br /> ! <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> ! <font size="2">Back to Top</font></a></span><font size="2"> </font> <br /> ! <br /><b>II. Additional Styles</b> <br> ! This module is compatible with any theme/style. <br> ! <a name="themes"> </font></p> ! <p style="margin-top: 0; margin-bottom: 0"><font face="Tahoma"> ! <span class="gensmall"><a href="#top" onclick="window.scrollTo(0,0); return false"> ! <font size="2">Back to Top</font></a></span><font size="2"> </font> ! <br /><a name="languages"> ! <br /> ! <span style="font-weight: bold">III. Additional Languages</span> <br /> ! First check to see if your language is already translated. </a> <br /> ! <br /> ! If exists, download and install in the modules/mx_shotcast/language ! folder. If not, duplicate (copy and paste) any included language file, ! rename to match your language, translate using any texteditor, save and ! upload. <br /> ! <br /> ! <a href="#top"> Back to Top</a> </font> ! ! <p> </p> ! </td> ! </tr> ! <tr> ! <td height="1"> <font face="Fixedsys">/Mx_ShotCast Module Team</font></td> ! </tr> ! <tr> ! <td height="1"></td> ! </tr> ! </table> </body> ! </html> \ No newline at end of file --- 211,315 ---- @import url("templates/subSilver/formIE.css"); --> + /*]]>*/ </style> + <script language="Javascript" type="text/javascript"> + //<![CDATA[ <!-- ! if ( 0 ) ! { ! window.open('privmsg.php?mode=newpm', '_phpbbprivmsg', 'HEIGHT=225,resizable=yes,WIDTH=400');; ! } //--> + //]]> </script> </head> <body bgcolor="#FFFFFF" text="#000000"> <table height="1"> ! <tr> ! <td height="41" style= ! "font-family: Arial; font-size: 18pt; font-weight: bold; letter-spacing: 1pt" ! id="111"><b><font face="Arial" size="5">MX Module - ! mx_shotcast</font></b></td> ! </tr> ! <tr> ! <td height="45"> ! <p><b><font size="2" face="Fixedsys">v. 1.0.0</font></b></p> ! <p><font face="Fixedsys"><span style= ! "font-size: 16px; line-height: normal; font-weight:bold">Module</span><br /> ! ! - for Mx Portal v. 2.8.1</font></p> ! <p><font face="Fixedsys"><strong>Author</strong><br /> ! Niklas Pull and OryNider (Bodin Florin Ciprian)<br /> ! <br /> ! <span style="font-weight: bold">Description</span><br /> ! The MX Module is an addon product for the MX-portal. This is the ! shotcast version of mx_radio. The player can play one stream ! brotcasted by a shotcast server that can be configured in AdminCP ! (host, port and password). The embed's are hidden in iframes with ! autostarts, so the pricipal is very simple. It also uses an ajax ! script to update the song title. Users most have instaled the ! latest media player (Windows Media Player 10+) or Real One Player, ! but Real player version doesnt not worked with Firefox and Netscape ! and should be fixed now.</font></p> ! <p><font face="Fixedsys"><strong>Features</strong><br /> ! Easy to use and install/uninstall module.</font></p> ! <p><font face="Fixedsys"><br /> ! I. <a href="#install">Installation instructions</a><br /> ! <br /> ! II. <a href="#themes">Additional styles</a><br /> ! <br /> ! III. <a href="#languages">Additional languages</a><br /> ! <br /> ! <a target="_blank" class="postlink" href= ! "http://pubory.uv.ro/potal/">DEMO</a><br /> ! <br /> ! <a name="install"><br /> ! <span style="font-weight: bold">I. Installation ! Instructions</span><br /> ! To install this module, follow these instructions.</a></font></p> ! <font face="Fixedsys">To summarize:<br /> ! If installing from scratch, use import module in the AdminCP.<br /> ! If upgrading, uninstall, then reinstall from AdminCP<br /> ! If uninstalling, use the delete feature in the AdminCP</font> ! <p><font face="Fixedsys">Note: If upgrading,uninstall module ! without delting db entries, or else you'll lose all module ! data!<br /> ! <br /> ! <br /> ! <span class="gensmall"><a href="#top" onclick= ! "window.scrollTo(0,0); return false"><font size="2">Back to ! Top</font></a></span><br /> ! <br /> ! <b>II. Additional Styles</b><br /> ! This module is compatible with any theme/style.<br /> ! <a name="themes"> </a></font></p> ! <p style="margin-top: 0; margin-bottom: 0"><font face= ! "Fixedsys"><font face="Tahoma"><span class="gensmall"><a href= ! "#top" onclick="window.scrollTo(0,0); return false"><font size= ! "2">Back to Top</font></a></span><br /> ! <a name="languages"><br /> ! <span style="font-weight: bold">III. Additional ! Languages</span><br /> ! First check to see if your language is already ! translated.</a><br /> ! <br /> ! If exists, download and install in the modules/mx_shotcast/language ! folder. If not, duplicate (copy and paste) any included language ! file, rename to match your language, translate using any ! texteditor, save and upload.<br /> ! <br /> ! <a href="#top">Back to Top</a></font></font></p> ! <p><font face="Fixedsys"> </font></p> ! </td> ! </tr> ! <tr> ! <td height="1"><font face="Fixedsys">/Mx_ShotCast Module ! Team</font></td> ! </tr> ! <tr> ! <td height="1"></td> ! </tr> ! </table> </body> ! </html> Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_uninstall.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_uninstall.php 8 Feb 2008 23:44:04 -0000 1.3 --- db_uninstall.php 24 Feb 2008 01:14:04 -0000 1.4 *************** *** 19,23 **** // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); if( !$userdata['session_logged_in'] ) --- 19,23 ---- // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); if( !$userdata['session_logged_in'] ) *************** *** 62,64 **** echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ! ?> \ No newline at end of file --- 62,64 ---- echo '<tr><td class="row1" align="center"><span class="gen">' . $message . '</span></td></tr>'; echo '</table> <br />'; ! ?> Index: cur_song.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/cur_song.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** cur_song.php 2 Oct 2007 04:40:03 -0000 1.2 --- cur_song.php 24 Feb 2008 01:14:04 -0000 1.3 *************** *** 1,13 **** <?php ! define( 'IN_PORTAL', 1 ); ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($module_root_path . 'shotcast_config.'.$phpEx); ! include($module_root_path . 'getinfo.'.$phpEx); ! $song[0] = !empty($song[0]) ? $song[0] : $text[6]; ?> --- 1,45 ---- <?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); ! require($module_root_path . 'getinfo.'.$phpEx); ?> Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** db_install.php 8 Feb 2008 23:44:04 -0000 1.3 --- db_install.php 24 Feb 2008 01:14:04 -0000 1.4 *************** *** 35,39 **** } ! $mx_module_version = '1.0'; $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 = '1.0.8'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 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')"; *************** *** 95,97 **** echo "</table><br />"; ! ?> \ No newline at end of file --- 96,98 ---- echo "</table><br />"; ! ?> Index: radio_update.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radio_update.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radio_update.php 2 Oct 2007 04:40:11 -0000 1.2 --- radio_update.php 24 Feb 2008 01:14:06 -0000 1.3 *************** *** 19,29 **** // ini_set( 'display_errors', '1' ); ! define( 'IN_PORTAL', 1 ); ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); - include($module_root_path . 'shotcast_config.'.$phpEx); - include($module_root_path . 'getinfo.'.$phpEx); --- 19,64 ---- // 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); ! require($module_root_path . 'getinfo.'.$phpEx); Index: radioplayer.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radioplayer.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** radioplayer.php 8 Feb 2008 23:44:04 -0000 1.3 --- radioplayer.php 24 Feb 2008 01:14:06 -0000 1.4 *************** *** 1,3 **** ! <?php /** * --- 1,3 ---- ! <? /** * *************** *** 9,24 **** */ ! define( 'IN_PORTAL', 1 ); ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include($module_root_path . 'shotcast_config.'.$phpEx); ! include($module_root_path . 'getinfo.'.$phpEx); - $state = ($text[1] == 1) ? 'Up' : 'Down'; - $text[2] = !empty($text[2]) ? $text[2] : $currentlisteners; - $text[5] = !empty($text[5]) ? $text[5] : $bitrate; - $song[0] = !empty($song[0]) ? $song[0] : $text[6]; user_listensc($nick); ?> --- 9,54 ---- */ ! 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); ! require($module_root_path . 'getinfo.'.$phpEx); user_listensc($nick); ?> *************** *** 32,97 **** <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> <title>Radio Player :: <?=$station;?></title> <style type="text/css"> <!-- ! body {margin:0; padding: 0; BACKGROUND-IMAGE: url(images/iframe_bg.png); font-family: Verdana; font-size: 10px;} ! a{text-decoration:none; background-color:inherit; color:#26c;} ! a:hover{text-decoration:underline;} ! #main {width: 350px; height: 100px; position: relative; left: 0px; top: 0px; margin:0; padding:0; background-image: url(images/player.png); background-repeat: no-repeat; background-attachment: fixed; background-color: #eeeeee} ! #display {width: 315px; height: 39px; position: relative; left: 18px; top: 18px;} ! #display_low {width: 310px; height: 21px; position: relative; left: 3px; top: 3px;} ! #bottom {width: 350px; height: 39px; position: relative; left: 0px; top: 22px;} ! #songtitle {width: 310px; height: 12px; position: relative; left: 3px; top: 3px;} ! #station {width: 150px; position: relative; left: 23px; top: 30px;} ! #bitrate {width: 55px; position: relative; left: 185px; top: 18px;} ! #equalizer {width: 55px; position: relative; left: 280px; top: 0px;} ! #icon {width: 55px; position: relative; left: 300px; top: 10px;} ! #iframe {width: 0px; position: relative; left: 0px; top: 0px;} ! .table {font-family: Verdana; font-size: 10px;} --> </style> ! <script> ! function createRequestObject() { ! var ro; ! var browser = navigator.appName; ! if(browser == "Microsoft Internet Explorer"){ ! ro = new ActiveXObject("Microsoft.XMLHTTP"); ! }else{ ! ro = new XMLHttpRequest(); ! } ! return ro; ! } ! ! var http = createRequestObject(); ! function sndReq() { ! http.open('get', 'cur_song.php'); ! http.onreadystatechange = handleResponse; ! http.send(null); ! setTimeout("sndReq()", 2000); } ! ! function handleResponse() { ! if(http.readyState == 4){ ! var response = http.responseText; ! if (response != responseold || responsecheck != 1) { ! var responsecheck = 1; ! document.getElementById("messages").innerHTML = http.responseText; ! var responseold = response; ! } ! } } </script> </head> ! <body onLoad="javascript:sndReq();"> <div id="iframe"> <SCRIPT language="javascript"> <!-- ! document.writeln("<iframe width=\"350\" height=\"1\""); document.writeln(" id=\"myiframe\" name=\"myiframe\""); ! document.writeln(" src=\"radio_update.php\""); document.writeln(" scrolling=\"no\""); ! document.writeln(" style=\"width:350px;height:1px;border:1px\">"); document.writeln("Sorry, your browser doesn't seem to support IFrames!"); document.writeln("</iframe>"); --- 62,204 ---- <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> <title>Radio Player :: <?=$station;?></title> + <? //include($module_root_path . "stylesheet.$phpEx");?> <style type="text/css"> <!-- ! body { ! margin: 0; ! padding: 0; ! font-family: Verdana; ! font-size: 10px; ! BACKGROUND-IMAGE: url('<?=$module_root_path;?>images/<?=SKIN;?>/playerbg.png'); ! } ! a{ ! text-decoration: none; ! } ! #main { ! width: 350px; ! height: 100px; ! position: relative; ! left: 0px; ! top: 0px; ! margin:0; ! padding:0; ! background-image: url('<?=$module_root_path;?>images/<?=SKIN;?>/player.png'); ! background-repeat: no-repeat; ! background-attachment: fixed; ! background-color: #eeeeee; ! } ! #display { ! width: 315px; ! height: 39px; ! position: relative; ! left: 18px; ! top: 18px; ! } ! #display_low { ! width: 310px; ! height: 21px; ! position: relative; ! left: 3px; ! top: 3px; ! } ! #bottom { ! width: 350px; ! height: 39px; ! position: relative; ! left: 0px; ! top: 22px; ! } ! #songtitle { ! width: 310px; ! height: 12px; ! position: relative; ! left: 3px; ! top: 3px; ! } ! #station { ! width: 150px; ! position: relative; ! left: 23px; ! top: 30px; ! } ! #bitrate { ! width: 55px; ! position: relative; ! left: 185px; ! top: 18px; ! } ! #equalizer { ! width: 55px; ! position: relative; ! left: 280px; ! top: 0px; ! } ! #icon { ! width: 55px; ! position: relative; ! left: 300px; ! top: 10px; ! } ! #iframe { ! width: 0px; ! position: relative; ! left: 0px; ! top: 0px; ! } ! table { ! font-family: Verdana; ! font-size: 10px; ! } --> </style> ! <!-- script language="javascript" type="text/javascript" src="<?=$module_root_path;?>templates/radioplayer.js"></script --> ! <script language="javascript"> ! function Ajax(){ ! var xmlHttp; ! try{ ! xmlHttp=new XMLHttpRequest(); ! } ! catch (e){ ! try{ ! xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); ! } ! catch (e){ ! try{ ! xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); ! } ! catch (e){ ! return false; ! } ! } ! } ! xmlHttp.onreadystatechange=function(){ ! if(xmlHttp.readyState==4){ ! document.getElementById('songtitle').innerHTML=xmlHttp.responseText; ! setTimeout('Ajax()',25000); ! } } ! xmlHttp.open("GET","<?=$module_root_path;?>cur_song.<?=$phpEx;?>",true); ! xmlHttp.send(null); } + window.onload=function(){ + setTimeout('Ajax()',1); + } + function radio_player() { + props=window.open('<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?lang=&z=wmp', 'poppage', 'toolbars=0, scrollbars=0, location=0, statusbars=0, menubars=0, resizable=1, width=350, height=100 left = 100, top = 100'); + } </script> </head> ! <body> <div id="iframe"> <SCRIPT language="javascript"> <!-- ! document.writeln("<iframe width=\"350\" height=\"0\""); document.writeln(" id=\"myiframe\" name=\"myiframe\""); ! document.writeln(" src=\"<?=$module_root_path;?>radio_update.<?=$phpEx;?>\""); document.writeln(" scrolling=\"no\""); ! document.writeln(" style=\"width:350px;height:0px;border:0px\">"); document.writeln("Sorry, your browser doesn't seem to support IFrames!"); document.writeln("</iframe>"); *************** *** 102,150 **** <div id="main"> ! <div id="display"> ! <div id="songtitle"> ! <div id="messages"> ! </div> ! </div> ! <div id="display_low"> ! <table border="0" cellpadding="0" cellspacing="0" width="300" height="21"> ! <tr class="table"> ! <td align="left" valign="bottom"> ! <i>Station: <b><?=$servertitle;?></b></i> ! </td> ! <td align="center" valign="bottom"> ! <?=$bitrate;?> kbps ! </td> ! <td align="right" valign="bottom"> ! <img src="images/equalizer_<?=$status;?>.gif" height="21"> ! </td> ! </tr> ! </table> ! </div> ! </div> ! <div id="bottom"> ! <table border="0" cellpadding="0" cellspacing="0" width="350" height="39"> ! <tr class="table"> ! <td width="193"> ! <img src="images/player2.png" width="193" height="39" usemap="#play" border="0"> ! </td> ! <td width="157" height="39" background="images/player3_<?=$z;?>.png"> ! Switch to: <a href="radioplayer.php?z=<?=$mode;?>"><img src="images/small_<?=$mode;?>.png" border="0"></a> ! </td> ! </tr> ! </table> ! </div> </div> <div id="iframe"> ! <iframe src="<?=$status;?>_<?=$z;?>.php" name="stream" width="0" height="0"></iframe> </div> <map name="play"> ! <area shape="rect" alt="Stop" coords="55,0,78,27" href="radioplayer.php?z=<?=$z;?>" target="_self"> ! <area shape="rect" alt="Play" coords="21,0,47,28" href="radioplayer.php?z=<?=$z;?>&status=play" target="_self"> </map> </body> ! </html> \ No newline at end of file --- 209,276 ---- <div id="main"> ! <div id="display"> ! <div id="songtitle"> ! <? ! if($text[1] == 0) ! { ! echo "<b>Radio station currently Offline.</b>"; ! } ! else ! { ! echo "Checking for song title..."; ! } ! ?> ! </div> ! <div id="display_low"> ! <table border="0" cellpadding="0" cellspacing="0" width="300" height="21"> ! <tr class="table"> ! <td align="left" valign="bottom"> ! <i>Station: <b><?=$station;?></b></i> ! </td> ! <td align="center" valign="bottom"> ! <?=$text[5];?> kbps ! </td> ! <td align="right" valign="bottom"> ! <img src="<?=$module_root_path;?>images/equalizer_<?=$status;?>.gif" height="21"> ! </td> ! </tr> ! </table> ! </div> ! </div> ! <div id="bottom"> ! <table border="0" cellpadding="0" cellspacing="0" width="350" height="39"> ! <tr class="table"> ! <td width="193"> ! <img src="<?=$module_root_path;?>images/<?=SKIN;?>/player2.png" width="193" height="39" usemap="#play" border="0"> ! </td> ! <td width="157" height="39" background="<?=$module_root_path;?>images/<?=SKIN;?>/player3_<?=$player;?>.png"> ! Switch to: ! <a href="<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?player=<?=$changeto;?>"> ! <img src="<?=$module_root_path;?>images/<?=SKIN;?>/small_<?=$changeto;?>.png" border="0"> ! </a> ! </td> ! </tr> ! </table> ! </div> </div> <div id="iframe"> ! <? ! if($status == 'play') ! { ! ?> ! <iframe src="<?=$module_root_path;?><?=$status;?>_<?=$player;?>.<?=$phpEx;?>" name="stream" width="0" height="0"></iframe> ! <? ! } ! ?> </div> <map name="play"> ! <area shape="rect" alt="Stop" coords="55,0,78,27" href="<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?player=<?=$player;?>" target="_self"> ! <area shape="rect" alt="Play" coords="21,0,47,28" href="<?=$module_root_path;?>radioplayer.<?=$phpEx;?>?player=<?=$player;?>&status=play" target="_self"> </map> + </body> ! </html> Index: shotcast_last10.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_last10.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** shotcast_last10.php 8 Feb 2008 23:44:05 -0000 1.3 --- shotcast_last10.php 24 Feb 2008 01:14:06 -0000 1.4 *************** *** 1,3 **** ! <?php /** * --- 1,3 ---- ! <?php /** * *************** *** 31,86 **** mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! @define('_SHOTCAST_CONFIG', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); ! $bgcolor = '#ffffff'; // Page background color ! $tablew = '100%'; // Table width ! $tableh = '1'; ! $toprow = '#c0c0c0'; // Top background color ! $bottom = '#ffffff'; // Bottom background color ! $border = '#000000'; // Border color ! $thickness = '2'; // Border thickness ! $padding = '4'; // Cell padding ! $font = 'Verdana'; // Font ! $fontsize = '2'; // Font size $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! $refresh = '30'; // How often should it refresh? (seconds) ! // Return JavaScript or HTML ! $jsOutput=FALSE; // TRUE=js | FALSE=HTML ! // try to get the target from the url... /* ! $host = $_REQUEST[host]; ! if (!$host) $host = $yourIP; ! $port = $_REQUEST[port]; ! if (!$port) $port = $yourPORT; */ ! $host = $shotcast_config['shotcast_host']; // IP adress or domain $port = $shotcast_config['shotcast_port']; // Port if( empty($lang['Before_that_you_heard']) && empty($lang['Now_Playing']) ) ! { $lang['Before_that_you_heard'] = "Before that you heard"; ! $lang['Now_Playing'] = "Now Playing"; ! $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; } ! $lf = chr(10); // 0x0A [\n] ! // The lastN is configurable at the DNAS with, ShowLastSongs= it defaults to 10 and has a maximum of 20 ! $t_max = $_REQUEST[n]; ! if (!t_max || $t_max<1 || $t_max>19) $t_max=10; ! //19 is the max here because 20=current_track+19 ! // Let's get /index.html first... to keep this short, there is no code to handle the dnas being down ! // or not running, so the script will display nothing in those cases. ! $connect_timeout=5; ! $success=0; --- 31,86 ---- mx_message_die(GENERAL_ERROR, "Could not find mx_shotcast includes folder.", "", __LINE__, __FILE__); } ! define('IN_SHOTCAST', true); include_once($module_root_path . 'includes/common.'.$phpEx); include_once($module_root_path . 'getinfo.'.$phpEx); ! $bgcolor = '#ffffff'; // Page background color ! $tablew = '100%'; // Table width ! $tableh = '1'; ! $toprow = '#c0c0c0'; // Top background color ! $bottom = '#ffffff'; // Bottom background color ! $border = '#000000'; // Border color ! $thickness = '2'; // Border thickness ! $padding = '4'; // Cell padding ! $font = 'Verdana'; // Font ! $fontsize = '2'; // Font size $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! $refresh = '30'; // How often should it refresh? (seconds) ! // Return JavaScript or HTML ! $jsOutput=FALSE; // TRUE=js | FALSE=HTML ! // try to get the target from the url... /* ! $host = $_REQUEST[host]; ! if (!$host) $host = $yourIP; ! $port = $_REQUEST[port]; ! if (!$port) $port = $yourPORT; */ ! $host = $shotcast_config['shotcast_host']; // IP adress or domain $port = $shotcast_config['shotcast_port']; // Port if( empty($lang['Before_that_you_heard']) && empty($lang['Now_Playing']) ) ! { $lang['Before_that_you_heard'] = "Before that you heard"; ! $lang['Now_Playing'] = "Now Playing"; ! $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; } ! $lf = chr(10); // 0x0A [\n] ! // The lastN is configurable at the DNAS with, ShowLastSongs= it defaults to 10 and has a maximum of 20 ! $t_max = $_REQUEST[n]; ! if (!t_max || $t_max<1 || $t_max>19) $t_max=10; ! //19 is the max here because 20=current_track+19 ! // Let's get /index.html first... to keep this short, there is no code to handle the dnas being down ! // or not running, so the script will display nothing in those cases. ! $connect_timeout=5; ! $success=0; *************** *** 89,258 **** if (@phpversion() < '5.0.0') { $state = "Up"; } ! $fp1 = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); //open connection ! if (!$fp1) { //if this fails, I'm done.... ! $er = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; ! @fclose($fp1); ! $success++; ! } ! else { ! $er = ''; ! $request="GET /index.html HTTP/1.1\r\nHost:" . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [index] * (Mozilla/PHP)\r\nConnection: close\r\n\r\n"; //get index.html ! @fputs($fp1,$request,strlen($request)); ! $page=''; ! while(!feof($fp1)) ! { ! $page .= fread($fp1, 16384); ! } ! @fclose($fp1); ! // now I have the entire /index.html in $page -- all I want from here is the current track... ! // (hint-hint) ! $song00 = ereg_replace("</b></td>.*", "", ereg_replace(".*Current Song: </font></td><td><font class=default><b>", "", $page)); // easy, right <img src="images/smilies/smile.gif" border="0" alt=""> ! // now let's get /played.html... (this is kinda long) ! $fp = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); ! if(!$fp) ! { ! //if connection could not be made ! @fclose($fp); ! $success++; ! } ! 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)) ! { ! $page .= @fread($fp, 16384); ! } ! @fclose($fp); //close connection ! $played_html=$page; ! if ($played_html) ! { ! $played_html = ereg_replace('<x>','|-|',ereg_replace('</tr>','',ereg_replace('</td><td>','<x>',ereg_replace('<tr><td>','',ereg_replace('</tr>','</tr>' . $lf,ereg_replace('-->','--]',ereg_replace('<!--','[!--',ereg_replace('</table><br><br>.*','',ereg_replace('.*<b>Current Song</b></td></tr>','',$played_html))))))))); ! $xxn = strlen($played_html); ! $r = 2; ! $t_count = 0; ! $reading = 0; ! $track[0] = $song00; while ($r<$xxn & $t_count<=$t_max) ! { ! $cur = substr($played_html,$r,1); ! if ($cur == $lf) { $reading=0; } ! if ($reading == 1) { $track[$t_count] .= $cur; } ! if ($cur == "|" & substr($played_html,$r-1,1) == "-" & substr($played_html,$r-2,1) == "|") ! { ! $reading = 1; ! $t_count++; ! } ! $r++; ! } ! } ! } ! } ! ! ! // I now have $track[0-N] containg the current plus last N tracks... ! // Output time... if (!empty($er)) { ! // I couldn't connect to the DNAS ! $r = 0; $output_string = ''; ! $output_string .= '<table width="' . $tablew . '" height="' . $tableh . '" class="forumline" border="' . $thickness . '" bordercolor="' . $border . '"><tr bgcolor="' . $toprow . '"><td vAlign=top> ! <table width="100%" border="0" cellpadding="' . $padding . '"><tr><td> ! <font face=' . $font . ' size=' . $fontsize . '>' . $er; //Now playing... ! if ($success != 0) { ! $output_string .= '<td><tr>'; } ! if ($success == 0) { while ($r <= $t_max) ! { ! if ($r==0) { ! $output_string .= '<tr><td vAlign=top> ' . $lang['Before_that_you_heard'] . ' :</i><br><br>'; } else { ! $output_string .= str_replace("'", "'",str_replace('"', '"',$track[$r])) . '<br>'; } ! $r++; } } ! // I also want to close the table code now.... ! $output_string .= '</td></tr></font></td></tr></table></td></tr></table>'; ! ! echo $output_string . ''; } ! else if ($success == 0 && $state == "Up") ! { echo " <table width=\" . $block_size . \" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" class=\"forumline\">\n"; ! $r = 0; ! $output_string=''; ! //tweak the output string (the table init) here.... ! $output_string .= '<table width="' . $tablew . '" height="' . $tableh . '" class="forumline" border="' . $thickness . '" bordercolor="' . $border . '"><tr bgcolor="' . $toprow . '"><td vAlign=top> ! <table width="100%" border="0" cellpadding="' . $padding . '"><tr><td vAlign=top> ! <font face=' . $font . ' size=' . $fontsize . '>'; //Now playing... while ($r<=$t_max) ! { ! if ($r==0) { ! $output_string .= $lang['Now_Playing'] . ': <A><b>'.str_replace("'", "'",str_replace('"', '"',$track[$r])).'</b></A></td></tr></table></td></tr><tr><td><table bgcolor=' . $bottom . ' width="100%" border="0" cellpadding="' . $padding . '"><tr><td><br><font face=' . $font . ' size=' . $fontsize . '> ' . $lang['Before_that_you_heard'] . ' :<b><br><br>'; } ! else { ! $output_string .= str_replace("'", "'",str_replace('"', '"',$track[$r])) . '<br>'; } ! $r++; } ! // I also want to close the table code now.... ! $output_string .= '</b></font></td></tr></table></td></tr></table>'; ! ! echo $output_string . ''; ! } ! else ! { ! // I couldn't connect to the DNAS ! $r = 0; $output_string = ''; ! $output_string .= '<table width="' . $tablew . '" height="' . $tableh . '" class="forumline" border="' . $thickness . '" bordercolor="' . $border . '"><tr bgcolor="' . $toprow . '"><td vAlign=top> ! <table width="100%" border="0" cellpadding="' . $padding . '"><tr><td> ! <font face=' . $font . ' size=' . $fontsize . '>' . $lang['Off_Air']; //Now playing... ! if ($success != 0) { ! $output_string .= '<td><tr>'; } ! if ($success == 0) { while ($r <= $t_max) ! { ! if ($r==0) { ! $output_string .= '<tr><td vAlign=top> ' . $lang['Before_that_you_heard'] . ' :</i><br><br>'; } else { ! $output_string .= str_replace("'", "'",str_replace('"', '"',$track[$r])) . '<br>'; } ! $r++; } } ! // I also want to close the table code now.... ! $output_string .= '</td></tr></font></td></tr></table></td></tr></table>'; ! ! echo $output_string . ''; ! } ! ?> \ No newline at end of file --- 89,258 ---- if (@phpversion() < '5.0.0') { $state = "Up"; } ! $fp1 = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); //open connection ! if (!$fp1) { //if this fails, I'm done.... ! $er = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; ! @fclose($fp1); ! $success++; ! } ! else { ! $er = ''; ! $request="GET /index.html HTTP/1.1\r\nHost:" . $host . ":" . $port . "\r\nUser-Agent: SHOUTcast DNAS Status [index] * (Mozilla/PHP)\r\nConnection: close\r\n\r\n"; //get index.html ! @fputs($fp1,$request,strlen($request)); ! $page=''; ! while(!feof($fp1)) ! { ! $page .= fread($fp1, 16384); ! } ! @fclose($fp1); ! // now I have the entire /index.html in $page -- all I want from here is the current track... ! // (hint-hint) ! $song00 = ereg_replace("</b></td>.*", "", ereg_replace(".*Current Song: </font></td><td><font class=default><b>", "", $page)); // easy, right <img src="images/smilies/smile.gif" border="0" alt=""> ! // now let's get /played.html... (this is kinda long) ! $fp = @fsockopen($host, $port, &$errno, &$errstr, $connect_timeout); ! if(!$fp) ! { ! //if connection could not be made ! @fclose($fp); ! $success++; ! } ! 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)) ! { ! $page .= @fread($fp, 16384); ! } ! @fclose($fp); //close connection ! $played_html = $page; ! if ($played_html) ! { ! $played_html = ereg_replace('<x>',... [truncated message content] |