Update of /cvsroot/mxbb/mx_radio In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21483/mx_radio Modified Files: db_install.php db_uninstall.php db_upgrade.php mx_install_readme.htm radio_front.php radio_index.php radio_update.php Added Files: Media_Radio.pak Log Message: cvs commit test Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_radio/db_upgrade.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_upgrade.php 8 Feb 2008 23:43:40 -0000 1.2 --- db_upgrade.php 28 Feb 2008 06:26:32 -0000 1.3 *************** *** 31,47 **** } ! $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - Media Radio</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; ! $message = "<b>Upgrading!</b><br/><br/>"; $sql = array(); ! $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; ! $message .= mx_do_install_upgrade( $sql ); echo "<br /><br />"; --- 31,97 ---- } ! $mx_module_version = '1.0.8'; $mx_module_copy = 'mxBB <i> - Media Radio</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; ! $message = "<b>Upgrading!</b><br /><br />"; $sql = array(); ! // ! // Precheck ! // ! if ($result = $db->sql_query("SELECT config_name from " . $mx_table_prefix . "radio_config")) ! { ! // ! // Upgrade checks ! // ! $upgrade_108 = 0; ! // ! // validate before 1.08 ! // ! if (!$result = $db->sql_query("SELECT bot_id from " . $mx_table_prefix . "radio_session")) ! { ! $upgrade_108 = 1; ! } ! ! $message = "<b>Upgrading!</b><br/><br/>"; ! ! if ($upgrade_108 == 1) ! { ! $message .= "<b>Upgrading to v. 1.08...</b><br/><br/>"; ! ! $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radio_session"; ! ! $sql[] = "CREATE TABLE ".$mx_table_prefix."radio_session ( ! id int(11) unsigned NOT NULL auto_increment, ! user_id mediumint(8) DEFAULT '0' NOT NULL, ! username varchar(99) NOT NULL, ! time int(11) DEFAULT '0' NOT NULL, ! session_ip char(8) DEFAULT '0' NOT NULL, ! bot_id mediumint(8) DEFAULT '0' NOT NULL, ! PRIMARY KEY (id), ! KEY user_id (user_id) ! ) TYPE=MyISAM"; ! } ! else ! { ! $message .= "<b>Nothing to upgrade...</b><br/><br/>"; ! } ! ! $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; ! ! $message .= mx_do_install_upgrade($sql); ! } ! else ! { ! // ! // If not installed ! // ! $message = "<b>Module is not installed...and thus cannot be upgraded ;)</b><br/><br/>"; ! } echo "<br /><br />"; *************** *** 50,53 **** echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ! ?> \ No newline at end of file --- 100,102 ---- echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ! ?> Index: radio_front.php =================================================================== RCS file: /cvsroot/mxbb/mx_radio/radio_front.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** radio_front.php 8 Feb 2008 23:43:41 -0000 1.2 --- radio_front.php 28 Feb 2008 06:26:33 -0000 1.3 *************** *** 2,6 **** /** * ! * @package mxBB Portal Module - mx_radio * @version $Id$ * @copyright (c) 2002-2006 [OryNider] mxBB Development Team --- 2,6 ---- /** * ! * @package Mx-Publisher Module - mx_radio * @version $Id$ * @copyright (c) 2002-2006 [OryNider] mxBB Development Team *************** *** 29,43 **** // Initialization // ! $phpEx = substr(strrchr(__FILE__, '.'), 1); // // Common Includes and Read Module Settings // ! if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) { ! message_die(GENERAL_ERROR, "Could not find mx_radio includes folder.", "", __LINE__, __FILE__); } - define('_RADIO_CONFIG', true); - include_once($module_root_path . 'includes/common.'.$phpEx); // --- 29,41 ---- // Initialization // ! @define('_RADIO_CONFIG', true); // // Common Includes and Read Module Settings // ! if ((include_once $module_root_path . "includes/common.$phpEx") === false) { ! mx_message_die(GENERAL_ERROR, "Could not find mx_radio includes folder.", "", __LINE__, __FILE__); } // *************** *** 48,62 **** $radio_icon = 'radio_front_02.gif'; - // - // Instantiate the mx_text class - // - include_once($mx_root_path . 'includes/mx_functions_tools.'.$phpEx); - $mx_text = new mx_text(); - $mx_text->init(true, false, false); - - // - // Decode for display - // - $title = $mx_text->display($title); // -------------------------------------------------------------------------------- --- 46,49 ---- *************** *** 64,78 **** // - // REMOVE OLD SESSIONS - drop_radio_users($radio_config['check_period']); - // Get all remain sessions ! $sql = "SELECT * FROM ".RADIO_SESSION_TABLE; if (!$sol = $db->sql_query($sql)) { ! message_die(GENERAL_ERROR, "Could not query radio Session information", "", __LINE__, __FILE__, $sql); } $howmanylisten = $db->sql_numrows($sol); // Return this ! $isimler[0] = $db->sql_numrows($sol); $can_listen = 'TRUE'; --- 51,69 ---- // // Get all remain sessions ! $sql = "SELECT * FROM " . RADIO_SESSION_TABLE; if (!$sol = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, "Could not query radio Session information", "", __LINE__, __FILE__, $sql); } $howmanylisten = $db->sql_numrows($sol); // Return this ! ! //Get registreg users sessions ! $sql = "SELECT * FROM " . RADIO_SESSION_TABLE . " WHERE user_id <> '" . ANONYMOUS . "'"; ! if (!$sol = $db->sql_query($sql)) ! { ! mx_message_die(GENERAL_ERROR, "Could not query radio Session information", "", __LINE__, __FILE__, $sql); ! } ! $isimler[0] = $db->sql_numrows($sol); $can_listen = 'TRUE'; *************** *** 81,101 **** { $isimler[$i++] = $record['username']; ! if ($record['username']==$userdata['username']) { ! $can_listen="yes"; } else { ! $can_listen="yes"; } } $listeners = ( empty($isimler[1]) ? '' : ! '<a href="' . append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u='.$isimler[1]) . '" >'.$isimler[1].'</a><br />' ); for($s = 2; $s <= $isimler[0]; $s++) { ! $listeners .= ', <a href="' . append_sid( PHPBB_URL . 'profile.php?mode=viewprofile&u='.$isimler[$s]) . '" >'.$isimler[$s].'</a><br />'; } // -------------------------------------------------------------------------------- --- 72,129 ---- { $isimler[$i++] = $record['username']; ! if ($record['username'] == $userdata['username']) { ! $can_listen = "yes"; } else { ! $can_listen = "yes"; } } $listeners = ( empty($isimler[1]) ? '' : ! '<a href="' . mx_append_sid(PHPBB_URL . 'profile.php?mode=viewprofile&u='.$isimler[1]) . '" >'.$isimler[1].'</a><br />'); 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 " . RADIO_SESSION_TABLE . " ! WHERE user_id = '" . ANONYMOUS . "' ! AND bot_id <> '" . ANONYMOUS . "'"; ! if (!$sol = $db->sql_query($sql)) ! { ! mx_message_die(GENERAL_ERROR, "Could not query radio Session information", "", __LINE__, __FILE__, $sql); ! } ! $isimlerb[0] = $db->sql_numrows($sol); ! ! $i = 1; ! while ($record = $db->sql_fetchrow($sol)) ! { ! $isimlerb[$i++] = $record['username']; ! } ! ! $radio_bots = empty($isimlerb[1]) ? '' : $isimlerb[1]; ! for($s = 2; $s <= $isimlerb[0]; $s++) ! { ! $radio_bots .= ', ' . $isimlerb[$s]; } + $msn_color = 'style="font-weight: bold; color:#' . $theme['fontcolor1'] . '"'; + $yahoo_color = 'style="font-weight: bold; color: #DD2222;"'; + $lycos_color = 'style="font-weight: bold;"'; + + $radio_bots = str_replace('google','<span style="font-weight: bold; color: #2244BB;">G</span><span style="font-weight: bold; color: #DD2222;">o</span><span style="font-weight: bold; color: #EEBB00;">o</span><span style="font-weight: bold; color: #2244BB;">g</span><span style="font-weight: bold; color: #339933;">l</span><span style="font-weight: bold; color: #DD2222;">e</span>',$radio_bots); + $radio_bots = str_replace('adsense','<span ' . $yahoo_color . '>adsense</span>',$radio_bots); + $radio_bots = str_replace('msn','<span ' . $msn_color . '>msn</span>',$radio_bots); + $radio_bots = str_replace('lycos','<span ' . $lycos_color . '>lycos</span>',$radio_bots); + $radio_bots = str_replace('yahoo','<span ' . $yahoo_color . '>Yahoo!</span>',$radio_bots); + $radio_bots = str_replace('slurp','<span ' . $yahoo_color . '>Yahoo! Slurp</span>',$radio_bots); + + if ($isimlerb[0]) + { + $listeners .= ', ' . $radio_bots; + } // -------------------------------------------------------------------------------- *************** *** 114,124 **** else { ! if ( $can_listen=="no") { ! $template->assign_block_vars('switch_user_chatting', array()); } else { ! $template->assign_block_vars('switch_user_logged_in', array()); } } --- 142,152 ---- else { ! if ($can_listen == "no") { ! $template->assign_block_vars('switch_user_chatting', array()); } else { ! $template->assign_block_vars('switch_user_logged_in', array()); } } *************** *** 153,155 **** unset($liteners, $block_config, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ?> \ No newline at end of file --- 181,183 ---- unset($liteners, $block_config, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); ! ?> Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_radio/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:31:11 -0000 1.1 --- mx_install_readme.htm 28 Feb 2008 06:26:32 -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,16 ---- ! <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ! "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ! <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; } --- 26,37 ---- /* 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; } /* --- 39,55 ---- 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 } --- 59,77 ---- */ 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: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif; ! text-decoration: none; line-height : 120%; color : #000000; } --- 82,108 ---- */ 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: "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} --- 113,153 ---- .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: 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: 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 Verdana, Arial, Helvetica, sans-serif; ! border-color : #000000; } /* The text input fields background colour */ input.post, textarea.post, select { ! background-color : #FFFFFF; } --- 155,184 ---- /* Quote & Code blocks */ .code { ! font-family: 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: 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 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: 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; } --- 187,205 ---- /* The buttons used for bbCode styling in message post */ input.button { ! background-color : #EFEFEF; ! color : #000000; ! font-size: 11px; font-family: 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,279 **** @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> ! <tr> ! <td colspan="2"><p><b><font size="5"><font face="Verdana">MX Module - ! mx_radio</font><br> ! <font size="2">v. 1.0 RC 2</font></font></b></p> ! <p><span style="font-weight: bold"><span style="font-size: 16px; line-height: normal">Module</span></span> ! <br /> ! - for Mx Portal v. 2.8.x</p> ! <p><strong>Author</strong><br /> ! OryNider<br /> ! <br /> ! <span style="font-weight: bold">Description</span> <br /> ! The MX Module is an addon product for the MX-portal.</p> ! <p><strong>Features</strong> <br /> ! Easy to use and install/uninstall module.</p> ! <p> <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></p> ! 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</p> ! <p>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_radio/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> ! ! <p> /Mx MX_RADIO Module Team</p> ! </td> ! </tr> </table> </body> --- 213,295 ---- @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> ! <tr> ! <td colspan="2"> ! <p><b><font size="5"><font face="Verdana">mxBB Module - ! mx_radio</font><br /> ! <font size="2">v. 1.0.0</font></font></b></p> ! <p><span style="font-weight: bold"><span style= ! "font-size: 16px; line-height: normal">Module</span></span><br /> ! - for mxBB Portal v. 2.8.1</p> ! <p><strong>Author</strong><br /> ! OryNider<br /> ! <br /> ! <span style="font-weight: bold">Description</span><br /> ! The MX Module is an addon product for the MX-portal.</p> ! <p><strong>Features</strong><br /> ! Easy to use and install/uninstall module.</p> ! <p><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" id="install"><br /> ! <span style="font-weight: bold">I. Installation ! Instructions</span><br /> ! To install this module, follow these instructions.</a></p> ! 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 ! <p>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" id="themes"> </a></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><br /> ! <a name="languages" id="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_radio/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><font face="Tahoma">/Mx MX_RADIO Module Team</font></p> ! </td> ! </tr> </table> </body> Index: db_uninstall.php =================================================================== RCS file: /cvsroot/mxbb/mx_radio/db_uninstall.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_uninstall.php 8 Feb 2008 23:43:40 -0000 1.2 --- db_uninstall.php 28 Feb 2008 06:26:32 -0000 1.3 *************** *** 13,17 **** { $mx_root_path = '../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); --- 13,17 ---- { $mx_root_path = '../../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); include($mx_root_path . 'common.'.$phpEx); *************** *** 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: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_radio/db_install.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_install.php 8 Feb 2008 23:43:40 -0000 1.2 --- db_install.php 28 Feb 2008 06:26:32 -0000 1.3 *************** *** 35,39 **** } ! $mx_module_version = '1.0.0'; $mx_module_copy = 'mxBB <i> - Media Radio</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> - Media Radio</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 49,60 **** $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radio_session"; ! $sql[] = "CREATE TABLE ".$mx_table_prefix."radio_session ( username varchar(99) NOT NULL, ! time bigint(20) NOT NULL, ! UNIQUE username (username) ) TYPE=MyISAM"; - $sql[] = "CREATE TABLE " . $mx_table_prefix . "radio_config ( config_name VARCHAR(255) NOT NULL default '', --- 49,64 ---- $sql[] = "DROP TABLE IF EXISTS " . $mx_table_prefix . "radio_session"; ! $sql[] = "CREATE TABLE ".$mx_table_prefix."radio_session ( + id int(11) unsigned NOT NULL auto_increment, + user_id mediumint(8) DEFAULT '0' NOT NULL, username varchar(99) NOT NULL, ! time int(11) DEFAULT '0' NOT NULL, ! session_ip char(8) DEFAULT '0' NOT NULL, ! bot_id mediumint(8) DEFAULT '0' NOT NULL, ! PRIMARY KEY (id), ! KEY user_id (user_id) ) TYPE=MyISAM"; $sql[] = "CREATE TABLE " . $mx_table_prefix . "radio_config ( config_name VARCHAR(255) NOT NULL default '', *************** *** 93,95 **** echo "</table><br />"; ! ?> \ No newline at end of file --- 97,99 ---- echo "</table><br />"; ! ?> --- NEW FILE: Media_Radio.pak --- module=+:72=+:Media Radio=+:modules/mx_radio/=+:mx_radio=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:72=+:89=+:Radio Front=+:mx_radio front block=+:radio_front.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Radio Front=+:Demo block=+:89=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 function=+:72=+:126=+:Radio Player=+:Radio Player or Index=+:radio_index.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 block=+:=+:Radio Player=+:Demo block=+:126=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 Index: radio_update.php =================================================================== RCS file: /cvsroot/mxbb/mx_radio/radio_update.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radio_update.php 6 Jun 2007 23:31:15 -0000 1.1 --- radio_update.php 28 Feb 2008 06:26:34 -0000 1.2 *************** *** 16,49 **** ***************************************************************************/ ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! include_once($mx_root_path . 'common.'.$phpEx); ! define('_RADIO_CONFIG', true); ! include_once($mx_module_path .'includes/common.'.$phpEx); ! $mx_user->init($user_ip, PAGE_INDEX); define('_RADIO_CONFIG', true); ! include_once($module_root_path . 'includes/common.'.$phpEx); ! $time=date("U"); // $nick = str_replace(" ", "_", $userdata['username']); ! if ($_POST['update']==true) { ! update_radio_users($nick,$time); } else { ! update_radio_users($nick,$time); } - //read check period - $period=$radio_config['check_period']*1000; //radio_update.php (send to the db the user statue "listening" every $period seconds) --- 16,76 ---- ***************************************************************************/ ! 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 = $player_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } define('_RADIO_CONFIG', true); ! include_once($module_root_path .'includes/common.'.$phpEx); ! ! //$time = date("U"); ! //$user_id = $userdata['user_id']; // $nick = str_replace(" ", "_", $userdata['username']); ! if ($_POST['update'] === true) { ! update_radio_users($nick); } else { ! update_radio_users($nick); } //radio_update.php (send to the db the user statue "listening" every $period seconds) Index: radio_index.php =================================================================== RCS file: /cvsroot/mxbb/mx_radio/radio_index.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radio_index.php 6 Jun 2007 23:31:14 -0000 1.1 --- radio_index.php 28 Feb 2008 06:26:33 -0000 1.2 *************** *** 8,61 **** * */ - define('IN_PORTAL', 1); ! $mx_root_path = "../../"; ! $mx_module_path = "./"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! // ! // Start session management ! // ! $mx_user->init($user_ip, PAGE_INDEX); ! define('_RADIO_CONFIG', true); ! include_once($mx_module_path .'includes/common.'.$phpEx); ! // ! // End session management ! // ! // include_once($mx_module_path .'includes/player.'.$phpEx); ! // ! // Begin output of page ! // if ( $radio_config['gf_select'] ) ! { $template->set_filenames(array( 'body_radio' => 'mx_player.tpl' )); ! } else ! { $template->set_filenames(array( 'body_radio' => 'mx_playerg.tpl' )); ! } $template->assign_vars(array( 'BLOCK_SIZE' => $block_size, ! 'U_PHPBB_ROOT_PATH' => PHPBB_URL, ! 'U_PORTAL_ROOT_PATH' => PORTAL_URL, ! 'SITENAME' => $board_config['sitename'], 'L_TITLE' => $radio_config['radio_name'], 'RADIO_NAME' => $radio_config['radio_name'], 'FLASH_FILE' => $mx_root_path . $radio_config['flash_FileName'], 'GATEWAY_FILE' => $mx_root_path . $radio_config['gateway_FileName'], ! 'IMG_IFRAME_BG' => $mx_module_path .'images/iframe_bg.png', ! 'IMG_ADVIEW' => $mx_module_path .'gateway/gateway_files/adview.gif', ! 'JS_ADX' => $mx_module_path .'gateway/gateway_files/adx.js', 'STATION_STREAM' => $radio_config['radio_FileName'] )); --- 8,101 ---- * */ ! 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' ); ! $player_size = ( isset($block_size) && !empty($block_size) ? $block_size - 15 : '300' ); ! ! $is_block = FALSE; ! } ! else ! { ! // ! // Read block Configuration ! // ! ! $title = $mx_block->block_info['block_title']; ! $block_size = $player_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); ! ! if( is_object($mx_block)) ! { ! $is_block = TRUE; ! } ! } ! ! define('_RADIO_CONFIG', true); ! include_once($module_root_path .'includes/common.'.$phpEx); + // + // Begin output of page + // if ( $radio_config['gf_select'] ) ! { $template->set_filenames(array( 'body_radio' => 'mx_player.tpl' )); ! } else ! { $template->set_filenames(array( 'body_radio' => 'mx_playerg.tpl' )); ! } $template->assign_vars(array( 'BLOCK_SIZE' => $block_size, ! 'PLAYER_SIZE' => $player_size, ! 'SHOW_HEADER' => ($is_block) ? false : true, ! ! //+ MX-Publisher ! 'U_PORTAL_ROOT_PATH' => PORTAL_URL, ! 'U_PHPBB_ROOT_PATH' => PHPBB_URL, ! 'TEMPLATE_ROOT_PATH' => TEMPLATE_ROOT_PATH, ! 'MODULE_PATH' => $module_root_path, ! ! 'T_PHPBB_STYLESHEET' => $theme['head_stylesheet'], ! 'T_MXBB_STYLESHEET' => $theme['head_stylesheet'], ! ! 'S_CONTENT_DIRECTION' => $lang['DIRECTION'], ! 'S_CONTENT_ENCODING' => $lang['ENCODING'], ! 'S_CONTENT_DIR_LEFT' => $lang['LEFT'], ! 'S_CONTENT_DIR_RIGHT' => $lang['RIGHT'], ! 'S_USER_LANG' => ($mx_user->lang['default_lang']) ? $mx_user->get_old_lang($mx_user->lang['default_lang']) : $board_config['default_lang'], ! ! 'S_UPDATE_RADIO' => mx_append_sid(PORTAL_URL."modules/mx_radio/radio_update.$phpEx"), ! 'SITENAME' => $board_config['sitename'], ! 'SITE_DESCRIPTION' => $board_config['site_desc'], 'L_TITLE' => $radio_config['radio_name'], 'RADIO_NAME' => $radio_config['radio_name'], 'FLASH_FILE' => $mx_root_path . $radio_config['flash_FileName'], 'GATEWAY_FILE' => $mx_root_path . $radio_config['gateway_FileName'], ! 'IMG_IFRAME_BG' => $module_root_path .'images/iframe_bg.png', ! 'IMG_ADVIEW' => $module_root_path .'gateway/gateway_files/adview.gif', ! 'JS_ADX' => $module_root_path .'gateway/gateway_files/adx.js', 'STATION_STREAM' => $radio_config['radio_FileName'] )); *************** *** 64,78 **** $template->pparse('body_radio'); - - $time=date("U"); - $nick = str_replace(" ", "_", $userdata['username']); - - if ($_POST['update']==true) - { - update_radio_user($nick,$time); - } - - //read check period - $period=$radio_config['check_period']*1000; - ?> \ No newline at end of file --- 104,106 ---- |