You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
|
From: OryNider <ory...@us...> - 2007-10-02 04:42:47
|
Update of /cvsroot/mxbb/mx_shotcast/templates/SwiftBlue In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv26138 Modified Files: shotcast_front.tpl Log Message: upgrading... Index: shotcast_front.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/templates/SwiftBlue/shotcast_front.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** shotcast_front.tpl 6 Jun 2007 23:20:32 -0000 1.1 --- shotcast_front.tpl 2 Oct 2007 04:42:41 -0000 1.2 *************** *** 14,18 **** <td class="row1" align="center" valign="middle" rowspan="2"> <!-- END switch_listeners_list_off --> ! <a href="javascript:void(0);" onClick="window.open('{S_MOREINFO}','','scrollbars=no,resizable=yes,width=350,height=200')"><img src="{SHOTCAST_IMG}" alt="{L_VERSION}" border="0" /></a> </td> <td class="row1" align="left"> --- 14,18 ---- <td class="row1" align="center" valign="middle" rowspan="2"> <!-- END switch_listeners_list_off --> ! <a href="javascript:void(0);" onClick="window.open('{S_MOREINFO}','','scrollbars=no,resizable=yes,width=350,height=112')"><img src="{SHOTCAST_IMG}" alt="{L_VERSION}" border="0" /></a> </td> <td class="row1" align="left"> *************** *** 27,33 **** <!-- END switch_user_logged_out --> <!-- BEGIN switch_user_logged_in --> ! [ <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_STATION}','','scrollbars=no,resizable=yes,width=350,height=200')">{L_CLICK_TO_LISTEN_STATION}</a> ] ! <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_WMP}','','scrollbars=no,resizable=yes,width=350,height=200')"><img src="{WMP_IMG}" alt="{L_CLICK_TO_LISTEN_WMP}" border="0" /></a> ! <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_REAL}','','scrollbars=no,resizable=yes,width=350,height=200')"><img src="{REAL_IMG}" alt="{L_CLICK_TO_LISTEN_REAL}" border="0" /></a> <!-- END switch_user_logged_in --> <!-- BEGIN switch_user_listening --> --- 27,33 ---- <!-- END switch_user_logged_out --> <!-- BEGIN switch_user_logged_in --> ! [ <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_STATION}','','scrollbars=no,resizable=yes,width=350,height=96')">{L_CLICK_TO_LISTEN_STATION}</a> ] ! <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_WMP}','','scrollbars=no,resizable=yes,width=350,height=96')"><img src="{WMP_IMG}" alt="{L_CLICK_TO_LISTEN_WMP}" border="0" /></a> ! <a href="javascript:void(0);" onClick="window.open('{S_LISTEN_REAL}','','scrollbars=no,resizable=yes,width=350,height=96')"><img src="{REAL_IMG}" alt="{L_CLICK_TO_LISTEN_REAL}" border="0" /></a> <!-- END switch_user_logged_in --> <!-- BEGIN switch_user_listening --> |
|
From: OryNider <ory...@us...> - 2007-10-02 04:42:29
|
Update of /cvsroot/mxbb/mx_shotcast/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25895/lang_english Modified Files: lang_admin.php lang_main.php Log Message: upgrading... Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/language/lang_english/lang_main.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_main.php 6 Jun 2007 23:20:11 -0000 1.1 --- lang_main.php 2 Oct 2007 04:42:21 -0000 1.2 *************** *** 36,40 **** $lang['Now_Playing'] = "Now Playing"; $lang['Before_that_you_heard'] = "Before that you heard"; ! $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; // // That's all Folks! --- 36,42 ---- $lang['Now_Playing'] = "Now Playing"; $lang['Before_that_you_heard'] = "Before that you heard"; ! $lang['Off_Air'] = "The server is <b>Off-Air</b>, try again later."; ! $lang['Socket_functions_disabled'] = 'Unable to use socket functions.'; ! // // That's all Folks! |
|
From: OryNider <ory...@us...> - 2007-10-02 04:42:27
|
Update of /cvsroot/mxbb/mx_shotcast/language/lang_romanian In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25895/lang_romanian Modified Files: lang_main.php Log Message: upgrading... Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/language/lang_romanian/lang_main.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** lang_main.php 6 Jun 2007 23:20:14 -0000 1.1 --- lang_main.php 2 Oct 2007 04:42:22 -0000 1.2 *************** *** 28,31 **** --- 28,33 ---- $lang['Before_that_you_heard'] = "Ultimele nouã melodii"; $lang['Off_Air'] = "Serverul este <b>Off-Air</b>, incearcã mai târziu."; + $lang['Socket_functions_disabled'] = 'Unable to use socket functions.'; + // // That's all Folks! |
|
From: OryNider <ory...@us...> - 2007-10-02 04:41:51
|
Update of /cvsroot/mxbb/mx_shotcast/doc/contrib In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25026/contrib Modified Files: getinfo2_fadisabled.php getinfo2_faenabled.php Log Message: upgrading... |
|
From: OryNider <ory...@us...> - 2007-10-02 04:41:10
|
Update of /cvsroot/mxbb/mx_shotcast/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23360/includes Modified Files: common.php Log Message: upgrading... |
|
From: OryNider <ory...@us...> - 2007-10-02 04:41:09
|
Update of /cvsroot/mxbb/mx_shotcast/doc In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23360/doc Modified Files: test.txt Log Message: upgrading... Index: test.txt =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/doc/test.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** test.txt 6 Jun 2007 23:18:18 -0000 1.1 --- test.txt 2 Oct 2007 04:40:24 -0000 1.2 *************** *** 1,2 **** ! 84.19.182.24:8000 ! 67.15.50.243:10040 \ No newline at end of file --- 1,3 ---- ! 209.85.88.199:10040 ! tv3.stream-music.net:8188 ! lewebradio3.net:9060 |
|
From: OryNider <ory...@us...> - 2007-10-02 04:40:52
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23360 Modified Files: cur_song.php db_install.php db_uninstall.php db_upgrade.php getinfo.php moreinfo.php play_real.php play_wmp.php radio_update.php radioplayer.php shotcast.pak shotcast_config.php shotcast_front.php shotcast_stats.php Removed Files: last10.php Log Message: upgrading... Index: shotcast_stats.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_stats.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** shotcast_stats.php 6 Jun 2007 23:18:16 -0000 1.1 --- shotcast_stats.php 2 Oct 2007 04:40:20 -0000 1.2 *************** *** 9,17 **** */ // -------------------------------------------------------------------------------- // Security check // ! if( !defined('IN_PORTAL') ) { die("Hacking attempt"); --- 9,23 ---- */ + // + // ERROR HANDLING + // + //error_reporting( E_ALL ); + ini_set( 'display_errors', '1' ); + // -------------------------------------------------------------------------------- // Security check // ! if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); *************** *** 23,47 **** if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) { ! 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 . 'getinfo2.'.$phpEx); - if ($text[1]==1) - { - $state = "Up"; - $shotcast_state_icon = 'online.gif'; - } - else - { - $state = "Down"; - $shotcast_state_icon = 'offline.gif'; - } ! if ($text[2]=="") { $text[2] = $currentlisteners; } ! if ($text[3]=="") { $text[3] = $maxlisteners; } ! if ($text[5]=="") { $text[5] = $bitrate; } ! if ($song[0]=="") { $song[0] = $text[6]; } // --- 29,45 ---- if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) { ! 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); ! $state = ($text[1] == 1) ? 'Up' : 'Down'; ! $shotcast_state_icon = ($text[1] == 1) ? 'online.gif' : 'offline.gif'; ! $text[2] = !empty($text[2]) ? $text[2] : $currentlisteners; ! $text[3] = !empty($text[3]) ? $text[3] : $maxlisteners; ! $text[5] = !empty($text[5]) ? $text[5] : $bitrate; ! $song[0] = !empty($song[0]) ? $song[0] : $text[6]; // *************** *** 60,64 **** $template->assign_vars(array( ! 'SHOTCAST_STATE_IMG' => $module_root_path.'templates/images/'.$shotcast_state_icon, 'L_STATION' => $lang['Stats_for'], --- 58,62 ---- $template->assign_vars(array( ! 'SHOTCAST_STATE_IMG' => $module_root_path.'images/'.$shotcast_state_icon, 'L_STATION' => $lang['Stats_for'], *************** *** 76,81 **** '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, --- 74,79 ---- '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, Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_upgrade.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_upgrade.php 6 Jun 2007 23:17:58 -0000 1.1 --- db_upgrade.php 2 Oct 2007 04:40:05 -0000 1.2 *************** *** 31,35 **** } ! $mx_module_version = '1.0.0 RC 3'; $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'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 38,47 **** $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 />"; --- 38,87 ---- $sql = array(); ! // ! // Precheck ! // ! if ( $result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "shotcast_config" ) ) ! { ! // ! // Upgrade checks ! // ! $upgrade_100 = 0; ! // ! // validate before 1.0 Gold ! // ! $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "shotcast_config WHERE config_name = 'force_online'" ); ! if ( $db->sql_numrows( $result ) == 0 ) ! { ! $upgrade_100 = 1; ! } ! ! $message = "<b>Upgrading!</b><br/><br/>"; ! ! if ( $upgrade_100 == 1 ) ! { ! $message .= "<b>Upgrading to v. 1.0 (Gold)...</b><br/><br/>"; ! ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config VALUES ('force_online', '1')"; ! } ! 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 />"; Index: shotcast_front.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_front.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** shotcast_front.php 6 Jun 2007 23:18:15 -0000 1.1 --- shotcast_front.php 2 Oct 2007 04:40:17 -0000 1.2 *************** *** 16,19 **** --- 16,24 ---- * -modified by OryNider to shotcast_front ***************************************************************************/ + // + // ERROR HANDLING + // + //error_reporting( E_ALL ); + ini_set( 'display_errors', '1' ); // -------------------------------------------------------------------------------- *************** *** 21,25 **** // ! if( !defined('IN_PORTAL') ) { die("Hacking attempt"); --- 26,30 ---- // ! if( !defined('IN_PORTAL') || !is_object($mx_block)) { die("Hacking attempt"); *************** *** 35,50 **** if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) { ! 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); ! if ( empty($shotcast_config['shotcast_host']) ) { ! include_once($module_root_path . 'getinfo1.'.$phpEx); } else { ! include_once($module_root_path . 'getinfo2.'.$phpEx); } --- 40,56 ---- if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) { ! 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); ! if ( !empty($shotcast_config['shotcast_host']) ) { ! include_once($module_root_path . 'getinfo.'.$phpEx); } else { ! $shotcast_config['shotcast_host'] = '127.0.0.1'; ! include_once($module_root_path . 'getinfo.'.$phpEx); } *************** *** 69,98 **** if (!$sol = $db->sql_query($sql)) { ! message_die(GENERAL_ERROR, "Could not query shotcast Session information", "", __LINE__, __FILE__, $sql); } if( empty($currentlisteners) && empty($text[2]) ) { ! $text[2] = $shotcast_config['currentlisteners']; } ! elseif (empty($currentlisteners) && !empty($text[2])) { ! $currentlisteners = $text[2]; } ! ! ! // if( $currentlisteners != "" ) ! if( !empty($currentlisteners)) { ! $howmanylisten = $db->sql_numrows($sol); ! $howmanypeak = $currentlisteners; } else { ! $howmanylisten = $db->sql_numrows($sol); // Return this ! $howmanypeak="0"; } ! $isimler[0] = $db->sql_numrows($sol); $i = 1; --- 75,99 ---- if (!$sol = $db->sql_query($sql)) { ! mx_message_die(GENERAL_ERROR, "Could not query shotcast Session information", "", __LINE__, __FILE__, $sql); } 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]; } ! $isimler[0] = $howmanylisten = $db->sql_numrows($sol); // Return this $i = 1; *************** *** 159,165 **** $template->assign_vars(array( ! 'SHOTCAST_IMG' => $module_root_path.'templates/images/'.$shotcast_icon, ! 'WMP_IMG' => $module_root_path.'templates/images/'.$wmp_icon, ! 'REAL_IMG' => $module_root_path.'templates/images/'.$real_icon, 'TOTAL_LISTENERS_ONLINE' => sprintf($lang['How_Many_Listeners'], $howmanylisten), --- 160,166 ---- $template->assign_vars(array( ! 'SHOTCAST_IMG' => $module_root_path.'images/'.$shotcast_icon, ! 'WMP_IMG' => $module_root_path.'images/'.$wmp_icon, ! 'REAL_IMG' => $module_root_path.'images/'.$real_icon, 'TOTAL_LISTENERS_ONLINE' => sprintf($lang['How_Many_Listeners'], $howmanylisten), Index: shotcast_config.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_config.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** shotcast_config.php 6 Jun 2007 23:18:14 -0000 1.1 --- shotcast_config.php 2 Oct 2007 04:40:16 -0000 1.2 *************** *** 9,27 **** */ ! 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('_SHOTCAST_CONFIG', true); ! include_once($mx_module_path .'includes/common.'.$phpEx); // --- 9,26 ---- */ ! if( !defined('IN_PORTAL')) ! { ! die("Hacking attempt"); ! } ! if( !is_object($mx_block)) ! { ! $mx_root_path = "../../"; ! include_once($mx_root_path . 'common.'.$phpEx); ! $mx_user->init($user_ip, PAGE_INDEX); ! } define('_SHOTCAST_CONFIG', true); ! include_once($module_root_path .'includes/common.'.$phpEx); // *************** *** 32,40 **** $nick = str_replace(" ", "_", $userdata['username']); - //read check period ! $period=$shotcast_config['check_period']*1000; $station = $shotcast_config['shotcast_name']; // Station name ! $scip = $shotcast_config['shotcast_host']; // IP adress or domain $scport = $shotcast_config['shotcast_port']; // Port $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password --- 31,38 ---- $nick = str_replace(" ", "_", $userdata['username']); //read check period ! $period = $shotcast_config['check_period'] * 1000; $station = $shotcast_config['shotcast_name']; // Station name ! $scip = $shotcast_config['shotcast_host']; // IP adress or domain $scport = $shotcast_config['shotcast_port']; // Port $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password Index: cur_song.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/cur_song.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cur_song.php 6 Jun 2007 23:17:56 -0000 1.1 --- cur_song.php 2 Oct 2007 04:40:03 -0000 1.2 *************** *** 1,2 **** ! <?php include "getinfo.php";?> ! <b><?=$song[0];?></b> \ No newline at end of file --- 1,60 ---- ! <?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]; ! ! ?> ! <HTML> ! <HEAD> ! <META http-equiv="pragma" content="no-cache"> ! <META HTTP-EQUIV="refresh" CONTENT="60"> ! <META name="robots" content="noindex"> ! <script> ! <!-- ! ! /* ! Auto Refresh Page with Time script ! By JavaScript Kit (javascriptkit.com) ! Over 200+ free scripts here! ! */ ! ! //enter refresh time in "minutes:seconds" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59 ! var limit="0:60" ! ! if (document.images){ ! var parselimit=limit.split(":") ! parselimit=parselimit[0]*60+parselimit[1]*1 ! } ! function beginrefresh(){ ! if (!document.images) ! return ! if (parselimit==1) ! window.location.reload() ! else{ ! parselimit-=1 ! curmin=Math.floor(parselimit/60) ! cursec=parselimit%60 ! if (curmin!=0) ! curtime=curmin+" minutes and "+cursec+" seconds left until page refresh!" ! else ! curtime=cursec+" seconds left until page refresh!" ! window.status=curtime ! setTimeout("beginrefresh()",1000) ! } ! } ! ! window.onload=beginrefresh ! //--> ! </script> ! </HEAD> ! <body> ! <span style="font-weight : bold;"><?=$song[0];?></span> ! </body> ! </HTML> \ No newline at end of file Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/db_install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** db_install.php 6 Jun 2007 23:17:57 -0000 1.1 --- db_install.php 2 Oct 2007 04:40:04 -0000 1.2 *************** *** 35,39 **** } ! $mx_module_version = '1.0.0 RC 3'; $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'; $mx_module_copy = 'mxBB <i> - Shotcast</i> module by OryNider & <a href="http://www.mxbb.net" target="_blank">Mx Team</a>'; *************** *** 63,69 **** ) TYPE=MyISAM"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_name', 'Radio Cezareea Romania')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_host', 'tv3.stream-music.net')"; ! $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_port', '8188')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('shotcast_pass', 'thejoyfm')"; $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('play_list', 'listen.pls')"; --- 63,69 ---- ) 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')"; *************** *** 71,74 **** --- 71,75 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "shotcast_config ( config_name , config_value ) VALUES ('check_period', '960')"; $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 ('show_status', 'true')"; --- last10.php DELETED --- Index: radio_update.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/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:18:10 -0000 1.1 --- radio_update.php 2 Oct 2007 04:40:11 -0000 1.2 *************** *** 19,44 **** // ini_set( 'display_errors', '1' ); ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; $module_root_path = './'; $phpEx = substr(strrchr(__FILE__, '.'), 1); - include_once($mx_root_path . 'common.'.$phpEx); - - $mx_user->init($user_ip, PAGE_INDEX); ! define('_SHOTCAST_CONFIG', true); ! include_once($module_root_path . 'includes/common.'.$phpEx); ! include_once($module_root_path . 'getinfo2.'.$phpEx); - $time=date("U"); - $nick = str_replace(" ", "_", $userdata['username']); ! if ($_POST['update']==true) { ! update_shotcast_users($nick,$time); } else { ! update_shotcast_users($nick,$time); } --- 19,38 ---- // 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); ! if (isset($_POST['update'])) { ! update_shotcast_users($nick,$time); } else { ! update_shotcast_users($nick,$time); } *************** *** 58,68 **** } ! if( $currentlisteners != "" ) { ! update_total_users($currentlisteners); } //read check period ! $period=$shotcast_config['check_period']*1000; //radio_update.php (send to the db the user statue "listening" every $period seconds) --- 52,62 ---- } ! if( !empty($currentlisteners)) { ! update_total_users($currentlisteners); } //read check period ! $period = $shotcast_config['check_period'] * 1000; //radio_update.php (send to the db the user statue "listening" every $period seconds) *************** *** 104,108 **** echo "</script>\n"; echo "</head>"; ! echo "<body background=\"templates/gateway_files/iframe_bg.png\">"; echo "<form name=\"update\" action=\"radio_update.php\" method=\"POST\">"; echo "<input type=\"hidden\" name=\"update\" value=\"true\">"; --- 98,102 ---- echo "</script>\n"; echo "</head>"; ! echo "<body background=\"images/iframe_bg.png\">"; echo "<form name=\"update\" action=\"radio_update.php\" method=\"POST\">"; echo "<input type=\"hidden\" name=\"update\" value=\"true\">"; Index: radioplayer.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radioplayer.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radioplayer.php 6 Jun 2007 23:18:12 -0000 1.1 --- radioplayer.php 2 Oct 2007 04:40:13 -0000 1.2 *************** *** 9,17 **** */ ! include "getinfo.php"; ! if ($currentlisteners=="") { $currentlisteners = $text[2]; } ! if ($bitrate=="") { $bitrate = $text[5]; } ! if ($song[0]=="") { $song[0] = $text[6]; } user_listensc($nick); ?> --- 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); ?> *************** *** 27,31 **** <style type="text/css"> <!-- ! body {margin:0; padding: 0; BACKGROUND-IMAGE: url(templates/gateway_files/iframe_bg.png); font-family: Verdana; font-size: 10px;} a{text-decoration:none; background-color:inherit; color:#26c;} a:hover{text-decoration:underline;} --- 34,38 ---- <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;} Index: getinfo.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getinfo.php 6 Jun 2007 23:17:59 -0000 1.1 --- getinfo.php 2 Oct 2007 04:40:07 -0000 1.2 *************** *** 9,93 **** */ ! include "shotcast_config.php"; - $mx_user->init($user_ip, PAGE_INDEX); $nick = str_replace(" ", "_", $userdata['username']); ! $time=date("U"); ! if ($_POST['update']==true) { ! update_shotcast_user($nick,$time); } ! ini_set("display_errors", "0"); ! if (@phpversion() >= '5.0.0') { ! $open = fsockopen($scip,$scport); ! if ($open) { ! fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n"); ! $read = fread($open,1000); ! $text = explode("content-type:text/html",$read); ! $text = explode(",",$text[1]); ! fclose($open); ! } else { $er="Connection Refused!"; } } ! //$scfp = fsockopen($scip, $scport, &$errno, &$errstr, 1); ! $scfp = fsockopen($scip, $scport); ! if(!$scfp) { ! $scsuccs=1; ! } ! if($scsuccs!=1){ ! fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); ! while(!feof($scfp)) { ! $page .= fgets($scfp, 1000); ! } ! $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "MAXLISTENERS", "BITRATE", "SERVERGENRE", "SONGURL", "SERVERURL", "REPORTEDLISTENERS"); ! $y=0; ! while($loop[$y]!=''){ ! $pageed = ereg_replace(".*<$loop[$y]>", "", $page); ! $scphp = strtolower($loop[$y]); ! $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed); ! if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE) ! $$scphp = urldecode($$scphp); ! $y++; ! } ! $pageed = ereg_replace(".*<SONGHISTORY>", "", $page); ! $pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed); ! $songatime = explode("<SONG>", $pageed); ! $r=1; ! while($songatime[$r]!=""){ ! $t=$r-1; ! $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]); ! $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]); ! $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]); ! $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]); ! $song[$t] = urldecode($song[$t]); ! $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page); ! $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed); ! $r++; ! } ! fclose($scfp); } ! if(isset($_GET['status'])){ ! $status = $_GET['status']; ! } else{ ! $status = "stop"; } ! if(isset($_GET['z'])){ ! $z = $_GET['z']; ! } else{ ! $z = "wmp"; } ! if ($z == 'wmp'){ ! $mode = 'real'; ! } elseif ($z == 'real'){ ! $mode = 'wmp'; } ?> \ No newline at end of file --- 9,166 ---- */ ! if( !defined('IN_PORTAL')) ! { ! die("Hacking attempt"); ! } $nick = str_replace(" ", "_", $userdata['username']); ! $period = !empty($period) ? $period : $shotcast_config['check_period'] * 1000; ! $station = !empty($station) ? $station : $shotcast_config['shotcast_name']; // Station name ! $scip = !empty($scip) ? $scip : $shotcast_config['shotcast_host']; // IP adress or domain ! $scport = !empty($scport) ? $scport : $shotcast_config['shotcast_port']; // Port ! $scpass = !empty($scpass) ? $scpass : $shotcast_config['shotcast_pass']; // SHOUTcast Password ! $time = date("U"); ! $errno = 0; ! $errstr = ''; ! $connect_timeout = 5; ! ! if ( isset($_POST['update']) ) { ! update_shotcast_user($nick, $time); } ! if (@phpversion() >= '5.0.0') ! { ! //$open = fsockopen($scip, $scport, &$errno, &$errstr, $connect_timeout); //open connection ! $open = @fsockopen($scip, $scport); //open connection ! if(!$open) ! { ! //if connection could not be made ! @fclose($open); ! $text = array(); ! if ($shotcast_config['force_online'] == 1) ! { ! $text[1] = '1,1,4,32,1,128,Unknon Artist'; ! $text = explode(",",$text[1]); ! } ! $er = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; ! } ! else ! { ! //$request = "GET /7.html HTTP/1.1\r\nHost:" . $scip . ":" . $scport . "\r\nUser-Agent: SHOUTcast DNAS Status [7] * XML Getter (Mozilla Compatible)\r\nConnection: close\r\n\r\n"; //get 7.html ! @fputs($open,"GET /7 HTTP/1.1\r\nUser-Agent:Mozilla\r\n\r\n"); ! $read = @fread($open, 1000); ! $text = explode("content-type:text/html", $read); ! $text = explode(",",$text[1]); ! @fclose($open); ! } ! } ! else ! { ! $text = array(); ! $er = '<p> Old php version! </p>'; } ! /* ! $scfp = fsockopen($scip, $scport, &$errno, &$errstr, $connect_timeout); ! if (!$scfp) ! { ! $scsuccs = 1; ! } ! */ + $scfp = @fsockopen($scip, $scport); + $scsuccs = ($scfp) ? '' : 1; ! if ($scfp) ! { ! @fputs($scfp, "GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); ! while(!feof($scfp)) ! { ! $page .= @fgets($scfp, 1000); ! } ! $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "MAXLISTENERS", "BITRATE", "SERVERGENRE", "SONGURL", "SERVERURL", "REPORTEDLISTENERS"); ! $y=0; ! while($loop[$y] != '') ! { ! $pageed = ereg_replace(".*<$loop[$y]>", "", $page); ! $scphp = strtolower($loop[$y]); ! $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed); ! if($loop[$y] == STREAMSTATUS || $loop[$y] == BITRATE || $loop[$y] == SERVERTITLE || $loop[$y] == SERVERGENRE || $loop[$y] == CURRENTLISTENERS || $loop[$y] == MAXLISTENERS || $loop[$y] == SONGURL || $loop[$y] == SERVERURL || $loop[$y] == SONGTITLE || $loop[$y] == REPORTEDLISTENERS) ! { ! $$scphp = urldecode($$scphp); ! } ! $y++; ! } ! $pageed = ereg_replace(".*<SONGHISTORY>", "", $page); ! $pageed = ereg_replace("</SONGHISTORY>.*", "", $pageed); ! $songatime = explode("<SONG>", $pageed); ! //$streamstatus = ereg_replace(".*<STREAMSTATUS>", "", $page); ! //$streamstatus = ereg_replace("</STREAMSTATUS>.*", "", $pageed); ! $r = 1; ! while($songatime[$r] != "") ! { ! $t = $r - 1; ! $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]); ! $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]); ! $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]); ! $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]); ! $song[$t] = urldecode($song[$t]); ! $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page); ! $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed); ! $r++; ! } ! @fclose($scfp); ! ! $text[1] = ($text[1] == 1) ? $text[1] : $streamstatus; ! //$text[2] = !empty($text[2]) ? $text[2] : $currentlisteners; ! $text[3] = !empty($text[3]) ? $text[3] : $maxlisteners; ! $text[5] = !empty($text[5]) ? $text[5] : $bitrate; ! $text[6] = !empty($text[6]) ? $text[6] : $song[0]; ! } ! else ! { ! $shoutcastserver = $station = $servertitle = $shotcast_config['shotcast_name']; ! $currentlisteners = "0"; ! $bitrate = "56"; ! $song[0] = "Unknon Artist"; ! $maxlisteners = "32"; ! $servergenre = ""; ! $songurl = ""; ! $serverurl = ""; ! $reportedlisteners = ""; ! $er = '<p>' . $lang['Socket_functions_disabled'] . '</p>'; } ! if (isset($_GET['status'])) ! { ! $status = $_GET['status']; ! } ! else ! { ! $status = "stop"; } ! ! if (isset($_GET['z'])) ! { ! $z = $_GET['z']; ! } ! else ! { ! $z = "wmp"; } ! if ($z == 'wmp') ! { ! $mode = 'real'; ! } ! elseif ($z == 'real') ! { ! $mode = 'wmp'; } + ?> \ No newline at end of file Index: moreinfo.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/moreinfo.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** moreinfo.php 6 Jun 2007 23:18:01 -0000 1.1 --- moreinfo.php 2 Oct 2007 04:40:08 -0000 1.2 *************** *** 9,17 **** */ ! include "getinfo.php"; ! if ($text[1]==1) { $state = "Up"; } else { $state = "Down"; } ! if ($text[2]=="") { $text[2] = $currentlisteners; } ! if ($text[5]=="") { $text[5] = $bitrate; } ! if ($song[0]=="") { $song[0] = $text[6]; } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" --- 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]; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" Index: play_real.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_real.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** play_real.php 6 Jun 2007 23:18:03 -0000 1.1 --- play_real.php 2 Oct 2007 04:40:09 -0000 1.2 *************** *** 1,3 **** ! <?php include "getinfo.php";?> <html> <head> --- 1,17 ---- ! <?php ! ! define( 'IN_PORTAL', 1 ); ! ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! include($module_root_path . 'shotcast_config.'.$phpEx); ! ! if (empty($song[0])) ! { ! $song[0] = $text[6]; ! } ! ! ?> <html> <head> Index: play_wmp.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_wmp.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** play_wmp.php 6 Jun 2007 23:18:05 -0000 1.1 --- play_wmp.php 2 Oct 2007 04:40:10 -0000 1.2 *************** *** 1,3 **** ! <?php include "getinfo.php";?> <html><head> <STYLE type=text/css>BODY { --- 1,17 ---- ! <?php ! ! define( 'IN_PORTAL', 1 ); ! ! $module_root_path = './'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! include($module_root_path . 'shotcast_config.'.$phpEx); ! ! if (empty($song[0])) ! { ! $song[0] = $text[6]; ! } ! ! ?> <html><head> <STYLE type=text/css>BODY { Index: shotcast.pak =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast.pak,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** shotcast.pak 6 Jun 2007 23:18:13 -0000 1.1 --- shotcast.pak 2 Oct 2007 04:40:14 -0000 1.2 *************** *** 1,18 **** ! module=+:1000=+:shotcast=+:modules/mx_shotcast/=+:mx_shotcast=+:1 ! New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:1000=+:1010=+:shotcast Front=+:=+:shotcast_front.php=+: ! parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:1020=+:shotcast Front=+:=+:1010=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:45=+:45=+:Shotcast Save Front=+:=+:shotcast_save_front.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:37=+:Shotcast Save Front=+:Demo block=+:45=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:46=+:99=+:Last 10=+:Shotcast Last 10 block =+:last10.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Demo - Last 10=+:Demo block=+:99=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:71=+:191=+:Shotcast Stats=+:Shotcast Statinstics block =+:shotcast_stats.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:Demo - Shotcast Stats=+:Demo block=+:99=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 --- 1,14 ---- ! module=+:71=+:ShotCast=+:modules/mx_shotcast/=+:mxBB ShotCast=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:71=+:85=+:ShotCast Front=+:=+:shotcast_front.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:ShotCast Front=+:Demo block=+:85=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:71=+:87=+:ShotCast Last 10=+:ShotCast Last 10 Block =+:shotcast_last10.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:ShotCast Last 10=+:Demo block=+:87=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 New_function=+:---------------------------=+:0=+:0=+:0=+:0=+:0 ! function=+:71=+:88=+:Shotcast Stats=+:ShotCast Statinstics Block =+:shotcast_stats.php=+: parameter=+:0=+:0=+:0=+:endoflist=+:0=+:0 ! block=+:=+:ShotCast Stats=+:Demo block=+:88=+:0=+:5=+:0=+:0=+:0=+:0=+:1=+:1 function=+:0=+:0=+:0=+:endoflist=+:0=+:0 |
|
From: OryNider <ory...@us...> - 2007-10-02 04:40:40
|
Update of /cvsroot/mxbb/mx_shotcast/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv23360/admin Modified Files: admin_shotcast.php Log Message: upgrading... Index: admin_shotcast.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/admin/admin_shotcast.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin_shotcast.php 6 Jun 2007 23:17:56 -0000 1.1 --- admin_shotcast.php 2 Oct 2007 04:40:01 -0000 1.2 *************** *** 27,31 **** if( !empty($setmodules) ) { ! $module['shotcast']['Settings'] = 'modules/mx_shotcast/admin/' . @basename(__FILE__); return; } --- 27,31 ---- if( !empty($setmodules) ) { ! $module['ShotCast']['Settings'] = 'modules/mx_shotcast/admin/' . @basename(__FILE__); return; } *************** *** 82,86 **** if( !$db->sql_query($sql) ) { ! message_die(GENERAL_ERROR, "Failed to update shotcast configuration for $config_name", "", __LINE__, __FILE__, $sql); } } --- 82,86 ---- if( !$db->sql_query($sql) ) { ! mx_message_die(GENERAL_ERROR, "Failed to update shotcast configuration for $config_name", "", __LINE__, __FILE__, $sql); } } *************** *** 91,99 **** if ($new['show_status']=="true") { ! $show_status="<select name=\"show_status\" size=1><option value=\"true\" selected>on<option value=\"false\">off</select>"; } else { ! $show_status="<select name=\"show_status\" size=1><option value=\"true\">on<option value=\"false\" selected>off</select>"; } --- 91,99 ---- if ($new['show_status']=="true") { ! $show_status = "<select name=\"show_status\" size=1><option value=\"true\" selected>on<option value=\"false\">off</select>"; } else { ! $show_status = "<select name=\"show_status\" size=1><option value=\"true\">on<option value=\"false\" selected>off</select>"; } *************** *** 121,124 **** --- 121,125 ---- 'L_SHOW_LISTEN' => $lang['show_listen'], 'L_SHOW_LISTEN_INFO' => $lang['show_listen_info'], + 'L_FORCE_ONLINE' => !empty($lang['Force_Online']) ? $lang['Force_Online'] : 'Force Online', "L_NO" => $lang['No'], "L_YES" => $lang['Yes'], *************** *** 132,139 **** ! //GUI_SETTING 'USER_STATE_BUTTON' => $user_state_button, ! 'S_LISTEN_YES' => $show_listen_select_yes, 'S_LISTEN_NO' => $show_listen_select_no, 'SHOW_STATUS' => $show_status) ); --- 133,142 ---- ! //GUI_SETTING 'USER_STATE_BUTTON' => $user_state_button, ! 'S_LISTEN_YES' => $show_listen_select_yes, 'S_LISTEN_NO' => $show_listen_select_no, + 'FORCE_ON_ENABLED' => ($new['force_online'] == 1) ? 'checked="checked"' : '', + 'FORCE_ON_DISABLED' => ($new['force_online'] == 0) ? 'checked="checked"' : '', 'SHOW_STATUS' => $show_status) ); |
|
From: OryNider <ory...@us...> - 2007-10-02 04:37:35
|
Update of /cvsroot/mxbb/mx_shotcast/templates/images In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21351/images Removed Files: icon_radio.gif icon_radio_hot.gif offline.gif online.gif real_front.gif shotcast_front_01.gif shotcast_front_02.gif shotcast_front_03.gif spacer.gif wmp_front.gif Log Message: moving files --- spacer.gif DELETED --- --- icon_radio_hot.gif DELETED --- --- online.gif DELETED --- --- wmp_front.gif DELETED --- --- offline.gif DELETED --- --- real_front.gif DELETED --- --- shotcast_front_01.gif DELETED --- --- shotcast_front_03.gif DELETED --- --- shotcast_front_02.gif DELETED --- --- icon_radio.gif DELETED --- |
|
From: OryNider <ory...@us...> - 2007-10-02 04:37:25
|
Update of /cvsroot/mxbb/mx_shotcast/templates/gateway_files In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv21351/gateway_files Removed Files: adview.gif adx.js iframe_bg.png mp3.gif scripts.css wmp.gif Log Message: moving files --- iframe_bg.png DELETED --- --- mp3.gif DELETED --- --- adx.js DELETED --- --- adview.gif DELETED --- --- scripts.css DELETED --- --- wmp.gif DELETED --- |
|
From: OryNider <ory...@us...> - 2007-10-02 04:30:55
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16266 Removed Files: Tag: core28x cur_song_save.php getinfo1.php getinfo2.php getinfo_save.php play_real_save.php play_wmp_save.php radio_update_save.php radioplayer_save.php shotcast_save_front.php Log Message: removed old files. --- radioplayer_save.php DELETED --- --- shotcast_save_front.php DELETED --- --- getinfo1.php DELETED --- --- play_wmp_save.php DELETED --- --- play_real_save.php DELETED --- --- cur_song_save.php DELETED --- --- getinfo_save.php DELETED --- --- radio_update_save.php DELETED --- --- getinfo2.php DELETED --- |
|
From: OryNider <ory...@us...> - 2007-10-02 04:29:44
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv15703 Removed Files: cur_song_save.php getinfo1.php getinfo2.php getinfo_save.php play_real_save.php play_wmp_save.php radio_update_save.php radioplayer_save.php shotcast_save_front.php Log Message: removed old files. --- radioplayer_save.php DELETED --- --- shotcast_save_front.php DELETED --- --- getinfo1.php DELETED --- --- play_wmp_save.php DELETED --- --- play_real_save.php DELETED --- --- cur_song_save.php DELETED --- --- getinfo_save.php DELETED --- --- radio_update_save.php DELETED --- --- getinfo2.php DELETED --- |
|
From: OryNider <ory...@us...> - 2007-10-02 04:26:56
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13067 Modified Files: Tag: core28x cur_song_save.php getinfo1.php getinfo2.php getinfo_save.php play_real_save.php play_wmp_save.php radio_update_save.php radioplayer_save.php shotcast_save_front.php Log Message: clearing save mode files. Index: radioplayer_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radioplayer_save.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radioplayer_save.php 6 Jun 2007 23:18:13 -0000 1.1 --- radioplayer_save.php 2 Oct 2007 04:26:41 -0000 1.1.2.1 *************** *** 1,149 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - include "getinfo_save.php"; - - user_listensc($nick); - ?> - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" - "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> - <head> - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <meta name="description" content="Radio Player" /> - <meta name="keywords" content="Radio Player" /> - <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> - <title>Radio Player :: <?=$station;?></title> - <style type="text/css"> - <!-- - body {margin:0; padding: 0; BACKGROUND-IMAGE: url(templates/gateway_files/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_save.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_save.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>"); - document.writeln(""); - //--> - </SCRIPT> - </div> - <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_save.php?z=<?=$mode;?>"><img src="images/small_<?=$mode;?>.png" border="0"></a> - </td> - </tr> - </table> - </div> - - </div> - - <div id="iframe"> - <iframe src="<?=$status;?>_<?=$z;?>_save.php" name="stream" width="0" height="0"></iframe> - </div> - - <map name="play"> - <area shape="rect" alt="Stop" coords="55,0,78,27" href="radioplayer_save.php?z=<?=$z;?>" target="_self"> - <area shape="rect" alt="Play" coords="21,0,47,28" href="radioplayer_save.php?z=<?=$z;?>&status=play" target="_self"> - </map> - </body> - </html> --- 0 ---- Index: shotcast_save_front.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_save_front.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** shotcast_save_front.php 6 Jun 2007 23:18:15 -0000 1.1 --- shotcast_save_front.php 2 Oct 2007 04:26:42 -0000 1.1.2.1 *************** *** 1,209 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_chatbox module written by markus_petrux at phpmix dot com - *************************************************************************** - * History: - * 2006/09/10 - * -modified by OryNider to shotcast_front - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - // -------------------------------------------------------------------------------- - // Security check - // - - if( !defined('IN_PORTAL') ) - { - die("Hacking attempt"); - } - - // -------------------------------------------------------------------------------- - // Initialization - // - - // - // Common Includes and Read Module Settings - // - if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) - { - 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); - - // - // Start session management - // - - // $mx_user->init($user_ip, PAGE_INDEX); - - // - // End session management - // - - - $time=date("U"); - // $nick = str_replace(" ", "_", $userdata['username']); - - //read check period - $period=$shotcast_config['check_period']*1000; - $station = $shotcast_config['shotcast_name']; // Station name - $scip = $shotcast_config['shotcast_host']; // IP adress or domain - $scport = $shotcast_config['shotcast_port']; // Port - $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password - - ini_set("display_errors", "0"); - - - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "11"; - $bitrate = "32"; - $song[0] = "Unknon Artist"; - - // - // Read block Configuration - // - $title = $mx_block->block_info['block_title']; - $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); - $shotcast_icon = 'shotcast_front_02.gif'; - $wmp_icon = 'wmp_front.gif'; - $real_icon = 'real_front.gif'; - - // -------------------------------------------------------------------------------- - // Get ChatBox Session information - // - - // REMOVE OLD SESSIONS - drop_shotcast_users($shotcast_config['check_period']); - - // Get all remain sessions - $sql = "SELECT * FROM ".SHOTCAST_SESSION_TABLE; - if (!$sol = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query shotcast Session information", "", __LINE__, __FILE__, $sql); - } - - if( empty($currentlisteners) && empty($text[2]) ) - { - $text[2] = $shotcast_config['currentlisteners']; - } - elseif (empty($currentlisteners) && !empty($text[2])) - { - $currentlisteners = $text[2]; - } - - - if( $currentlisteners != "" ) - { - $howmanylisten = $db->sql_numrows($sol); - $howmanypeak = $currentlisteners; - } - else - { - $howmanylisten = $db->sql_numrows($sol); // Return this - $howmanypeak="0"; - } - - $isimler[0] = $db->sql_numrows($sol); - - $i = 1; - while ($record = $db->sql_fetchrow($sol)) - { - $isimler[$i++] = $record['username']; - if ( ( $shotcast_config['show_listen_select'] ) ) - { - $can_listen="yes"; - } - elseif ($record['username']==$userdata['username']) - { - $can_listen="no"; - } - 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 />'; - } - - - // -------------------------------------------------------------------------------- - // Generate block output (using templates) - // Generate HTML for the block... - // - $template->set_filenames(array( - 'body' => 'shotcast_front.tpl') - ); - - - if ( !$userdata['session_logged_in'] ) - { - $template->assign_block_vars('switch_user_logged_out', array()); - } - else - { - if ( $can_listen=="no") - { - $template->assign_block_vars('switch_user_listening', array()); - } - else - { - $template->assign_block_vars('switch_user_logged_in', array()); - } - } - - if( empty($listeners) ) - { - $template->assign_block_vars('switch_listeners_list_off', array()); - $listeners_list = ''; - } - else - { - $template->assign_block_vars('switch_listeners_list_on', array()); - $listeners_list = sprintf($lang['Who_Are_Listening'], $listeners); - } - - $template->assign_vars(array( - 'SHOTCAST_IMG' => $module_root_path.'templates/images/'.$shotcast_icon, - 'WMP_IMG' => $module_root_path.'templates/images/'.$wmp_icon, - 'REAL_IMG' => $module_root_path.'templates/images/'.$real_icon, - - 'TOTAL_LISTENERS_ONLINE' => sprintf($lang['How_Many_Listeners'], $howmanylisten), - 'TOTAL_LISTENERS_PEAK' => sprintf($lang['How_Many_Peak'], $howmanypeak), - 'LISTENERS_LIST' => $listeners_list, - 'L_CLICK_TO_LISTEN_STATION' => $lang['Click_to_listen_station'], - 'L_CLICK_TO_LISTEN_WMP' => $lang['Click_to_listen_wmp'], - 'L_CLICK_TO_LISTEN_REAL' => $lang['Click_to_listen_real'], - 'S_LISTEN_STATION' => append_sid($module_root_path.'radioplayer_save.php'), - 'S_LISTEN_WMP' => append_sid($module_root_path.'radioplayer_save.php?lang=&z=wmp'), - 'S_LISTEN_REAL' => append_sid($module_root_path.'radioplayer_save.php?lang=&z=real'), - 'S_MOREINFO' => append_sid($module_root_path.'moreinfo.php'), - 'L_LOGIN_TO_LISTEN_STATION' => $lang['Login_to_listen_station'], - 'L_ALREADY_LISTENING' => $lang['Already_listening'], - 'BLOCK_SIZE' => $block_size, - // 'U_URL' => append_sid(PORTAL_URL . 'index.' . $phpEx . '?block_id=' . $block_id), - 'BLOCK_ID' => $block_id, - 'L_VERSION' => _SHOTCAST_VERSION, - 'L_TITLE' => 'shotcast') - ); - - $template->pparse('body'); - - unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); - ?> --- 0 ---- Index: getinfo1.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo1.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** getinfo1.php 6 Jun 2007 23:17:59 -0000 1.1 --- getinfo1.php 2 Oct 2007 04:26:37 -0000 1.1.2.1 *************** *** 1,71 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - - // - // Start session management - // - // $mx_user->init($user_ip, PAGE_INDEX); - - /* - if ( !$userdata['session_logged_in'] ) - { - mx_redirect(append_sid(PHPBB_URL . "login.".$phpEx."?redirect=chat.".$phpEx, true)); - exit; - } - */ - - // - // End session management - // - - - $time=date("U"); - // $nick = str_replace(" ", "_", $userdata['username']); - - /* - if ($_POST['update']==true) - { - update_shotcast_user($nick,$time); - } - */ - - //read check period - $period=$shotcast_config['check_period']*1000; - - $scip = "277.0.0.0"; - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "0"; - $bitrate = "56"; - $song[0] = "Unknon Artist"; - $maxlisteners = "32"; - - // if ($currentlisteners=="") { $currentlisteners = $text[2]; } - // if ($bitrate=="") { $bitrate = $text[5]; } - // if ($song[0]=="") { $song[0] = $text[6]; - - if(isset($_GET['status'])){ - $status = $_GET['status']; - } else{ - $status = "stop"; - } - if(isset($_GET['z'])){ - $z = $_GET['z']; - } else{ - $z = "wmp"; - } - - if ($z == 'wmp'){ - $mode = 'real'; - } elseif ($z == 'real'){ - $mode = 'wmp'; - } - ?> \ No newline at end of file --- 0 ---- Index: play_wmp_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_wmp_save.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** play_wmp_save.php 6 Jun 2007 23:18:09 -0000 1.1 --- play_wmp_save.php 2 Oct 2007 04:26:40 -0000 1.1.2.1 *************** *** 1,135 **** - <?php include "getinfo_save.php";?> - <html><head> - <STYLE type=text/css>BODY { - PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #CEDEDF; - } - </STYLE> - </head><body> - <TABLE cellSpacing=0 cellPadding=0 width=315 border=0> - <TBODY> - <TR> - <TD vAlign=top align=left> - - <TABLE cellSpacing=0 cellPadding=0 width=300 border=0> - <TBODY> - <!-- Check Media Player Version --> - <SCRIPT LANGUAGE="JavaScript"> - var WMP7; - var Mac; - var Win; - var Unix; - var Linux; - - Win = navigator.userAgent.indexOf("Win") > -1; - Mac = navigator.userAgent.indexOf("Mac") > -1; - Unix = navigator.appVersion.indexOf("X11") > -1; - Linux = navigator.appVersion.indexOf("Linux") > -1; - - - if (Mac) - { - - if ( navigator.appName == "Netscape" ){ - //Netscape code - document.write (' <Embed id="wmp" name="wmp" type="audio/mpeg"'); - document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"'); - document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' Name=MediaPlayer'); - document.write (' ShowControls=1'); - document.write (' ShowDisplay=1'); - document.write (' ShowStatusBar=1'); - document.write (' AUTOSTART=1'); - document.write (' width=332'); - document.write (' height=354>'); - document.write (' </Embed>'); } - - if ( navigator.appName != "Netscape" ){ - document.write(' <embed id="wmp" name="wmp" type="audio/mpeg" width="332" height="354" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="1" src="http://<?=$scip;?>:<?=$scport;?>" ></embed>'); } - } - - - if (Win) - { - if ( navigator.appName != "Netscape" ){ - WMP7 = new ActiveXObject('WMPlayer.OCX'); - } - - // Windows Media Player 7 Code - if ( WMP7 ) - { - - document.write ('<OBJECT ID=MediaPlayer '); - document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'); - document.write (' standby="Loading Microsoft Windows Media Player components..."'); - document.write (' TYPE="application/x-oleobject" width="332" height="354">'); - document.write ('<PARAM NAME="url" VALUE="http://<?=$scip;?>:<?=$scport;?>">'); - document.write ('<PARAM NAME="AutoStart" VALUE="true">'); - document.write ('<PARAM NAME="ShowControls" VALUE="1">'); - document.write ('<PARAM NAME="uiMode" VALUE="mini">'); - - document.write (' <Embed type="application/x-mplayer2"'); - document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); - document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' Name="MediaPlayer"'); - document.write (' ShowControls="1"'); - document.write (' ShowDisplay="1"'); - document.write (' ShowStatusBar="1"'); - document.write (' AUTOSTART="true"'); - document.write (' width="332"'); - document.write (' height="354">'); - document.write (' </embed>'); - - document.write ('</OBJECT>'); - - - } - - // Windows Media Player 6.4 Code - else - - { - - //IE Code - document.write ('<OBJECT ID=MediaPlayer '); - document.write (' CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'); - document.write (' CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 '); - document.write (' standby="Loading Microsoft Windows Media Player components..."'); - document.write (' TYPE="application/x-oleobject" width="332" height="354">'); - document.write (' <PARAM NAME="FileName" VALUE="http://<?=$scip;?>:<?=$scport;?>">'); - document.write ('<PARAM NAME="url" VALUE="http://<?=$scip;?>:<?=$scport;?>"> '); - document.write ('<PARAM NAME="AutoStart" VALUE="1">'); - document.write ('<PARAM NAME="ShowControls" VALUE="1">'); - - //Firefox code - document.write (' <Embed type="application/x-mplayer2"'); - document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); - document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' Name="MediaPlayer"'); - document.write (' ShowControls="1"'); - document.write (' ShowDisplay="1"'); - document.write (' ShowStatusBar="1"'); - document.write (' AUTOSTART="true"'); - document.write (' width="332"'); - document.write (' height="354">'); - document.write (' </embed>'); - - document.write ('</OBJECT>'); - - } - } - - else - { - - document.write(' <embed type="audio/mpeg" width="332" height="354" AUTOSTART="1" filename="http://<?=$scip;?>:<?=$scport;?>" src="http://<?=$scip;?>:<?=$scport;?>" ></embed>'); - - } - - </SCRIPT> - </TD></TR> - </TBODY></TABLE> - </body> - </html> \ No newline at end of file --- 0 ---- Index: play_real_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_real_save.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** play_real_save.php 6 Jun 2007 23:18:04 -0000 1.1 --- play_real_save.php 2 Oct 2007 04:26:40 -0000 1.1.2.1 *************** *** 1,26 **** - <?php include "getinfo_save.php";?> - <html> - <head> - <title>RealMedia</title> - </head> - - <body> - <p> - <object id="RVOCX" classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="172"> - <param name="SRC" value="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>"> - <param name="CONTROLS" value="ImageWindow"> - <param name="CONSOLE" value="cons"> - <embed autostart="true" src="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>" type="audio/x-pn-realaudio-plugin" width="320" height="172" controls="ImageWindow" console="cons"> </embed> - <param name="autostart" value="true"> - </object> - </p> - <p> - <object id=RVOCX classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="320" height="30" > - <param name="SRC" value="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>"> - <param name="CONTROLS" value="ControlPanel"> - <param name="CONSOLE" value="cons"> - <embed src="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>" type="audio/x-pn-realaudio-plugin" width="320" height="30" controls="ControlPanel" console="cons" > </embed> - </object> - </p> - </body> - </html> \ No newline at end of file --- 0 ---- Index: cur_song_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/cur_song_save.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** cur_song_save.php 6 Jun 2007 23:17:57 -0000 1.1 --- cur_song_save.php 2 Oct 2007 04:26:35 -0000 1.1.2.1 *************** *** 1,2 **** - <?php include "getinfo_save.php";?> - <b><?=$song[0];?></b> \ No newline at end of file --- 0 ---- Index: getinfo_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo_save.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** getinfo_save.php 6 Jun 2007 23:18:00 -0000 1.1 --- getinfo_save.php 2 Oct 2007 04:26:40 -0000 1.1.2.1 *************** *** 1,59 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - include "shotcast_config.php"; - - ini_set("display_errors", "0"); - - $mx_user->init($user_ip, PAGE_INDEX); - $nick = str_replace(" ", "_", $userdata['username']); - $time=date("U"); - if ($_POST['update']==true) - { - update_shotcast_user($nick,$time); - } - - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "11"; - $bitrate = "56"; - $song[0] = "Unknon Artist"; - $maxlisteners = "32"; - - // if ($currentlisteners=="") { $currentlisteners = $text[2]; } - // if ($bitrate=="") { $bitrate = $text[5]; } - // if ($song[0]=="") { $song[0] = $text[6]; } - - if(isset($_GET['status'])){ - $status = $_GET['status']; - } else{ - $status = "stop"; - } - if(isset($_GET['z'])){ - $z = $_GET['z']; - } else{ - $z = "wmp"; - } - - if ($z == 'wmp'){ - $mode = 'real'; - } elseif ($z == 'real'){ - $mode = 'wmp'; - } - ?> \ No newline at end of file --- 0 ---- Index: radio_update_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radio_update_save.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** radio_update_save.php 6 Jun 2007 23:18:11 -0000 1.1 --- radio_update_save.php 2 Oct 2007 04:26:41 -0000 1.1.2.1 *************** *** 1,134 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - error_reporting( E_ALL ); - ini_set( 'display_errors', '1' ); - - define('IN_PORTAL', true); - $mx_root_path = '../../'; - $module_root_path = './'; - $phpEx = substr(strrchr(__FILE__, '.'), 1); - include_once($mx_root_path . 'common.'.$phpEx); - - define('_SHOTCAST_CONFIG', true); - include_once($module_root_path . 'includes/common.'.$phpEx); - - // - // Start session management - // - $mx_user->init($user_ip, PAGE_INDEX); - // - // End session management - // - - $time=date("U"); - $nick = str_replace(" ", "_", $userdata['username']); - - //read check period - $period=$shotcast_config['check_period']*1000; - $station = $shotcast_config['shotcast_name']; // Station name - $scip = $shotcast_config['shotcast_host']; // IP adress or domain - $scport = $shotcast_config['shotcast_port']; // Port - $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password - - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "11"; - $bitrate = "56"; - $song[0] = "Unknon Artist"; - $maxlisteners = "32"; - - $time=date("U"); - - if ($_POST['update']==true) - { - update_shotcast_users($nick,$time); - } - else - { - update_shotcast_users($nick,$time); - } - - function update_total_users($currentlisteners) - { - global $shotcast_config, $board_config, $db, $lang; - - - $sql = "UPDATE ". SHOTCAST_CONFIG_TABLE ." SET `config_name` = 'currentlisteners' WHERE `config_value` = '". $currentlisteners ."'"; - - if( !$result = $db->sql_query($sql) ) - { - die("SQL Error in function update_total_users(): UPDATE<br />" . $sql); - } - } - - if( $currentlisteners != "" ) - { - update_total_users($currentlisteners); - } - - //read check period - $period=$shotcast_config['check_period']*1000; - - //radio_update.php (send to the db the user statue "listening" every $period seconds) - echo "<html>"; - echo "<head>"; - echo "<script language=\"javascript\">"; - echo "setInterval(\"document.forms['update'].submit();\",".$period.");"; - echo "</script>"; - echo "<script>\n"; - echo "<!--\n"; - echo "\n"; - echo "//enter refresh time in \"minutes:seconds\" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59\n"; - echo "var limit=\"0:30\"\n"; - echo "\n"; - echo "if (document.images){\n"; - echo "var parselimit=limit.split(\":\")\n"; - echo "parselimit=parselimit[0]*60+parselimit[1]*1\n"; - echo "}\n"; - echo "function beginrefresh(){\n"; - echo "if (!document.images)\n"; - echo "return\n"; - echo "if (parselimit==1)\n"; - echo "window.location.reload()\n"; - echo "else{\n"; - echo "parselimit-=1\n"; - echo "curmin=Math.floor(parselimit/60)\n"; - echo "cursec=parselimit%60\n"; - echo "if (curmin!=0)\n"; - echo "curtime=curmin+\" minutes and \"+cursec+\" seconds left until page refresh!\"\n"; - echo "else\n"; - echo "curtime=cursec+\" seconds left until page refresh!\"\n"; - echo "window.status=curtime\n"; - echo "setTimeout(\"beginrefresh()\",1000)\n"; - echo "}\n"; - echo "}\n"; - echo "\n"; - echo "window.onload=beginrefresh\n"; - echo "//-->\n"; - echo "</script>\n"; - echo "</head>"; - echo "<body background=\"templates/gateway_files/iframe_bg.png\">"; - echo "<form name=\"update\" action=\"radio_update_save.php\" method=\"POST\">"; - echo "<input type=\"hidden\" name=\"update\" value=\"true\">"; - echo "</form>"; - echo " Loged in as: $nick\n"; - echo "</body>"; - echo "</html>"; - ?> \ No newline at end of file --- 0 ---- Index: getinfo2.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo2.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** getinfo2.php 6 Jun 2007 23:17:59 -0000 1.1 --- getinfo2.php 2 Oct 2007 04:26:39 -0000 1.1.2.1 *************** *** 1,127 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if URL file-access is disabled in the - * server configuration - ***************************************************************************/ - - // - // Start session management - // - // $mx_user->init($user_ip, PAGE_INDEX); - - /* - if ( !$userdata['session_logged_in'] ) - { - mx_redirect(append_sid(PHPBB_URL . "login.".$phpEx."?redirect=chat.".$phpEx, true)); - exit; - } - */ - - // - // End session management - // - - /* - $time=date("U"); - $nick = str_replace(" ", "_", $userdata['username']); - - if ($_POST['update']==true) - { - update_shotcast_user($nick,$time); - } - */ - - //read check period - $period=$shotcast_config['check_period']*1000; - $station = $shotcast_config['shotcast_name']; // Station name - $scip = $shotcast_config['shotcast_host']; // IP adress or domain - $scport = $shotcast_config['shotcast_port']; // Port - $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password - - ini_set("display_errors", "0"); - - if (@phpversion() >= '5.0.0') { - $open = fsockopen($scip,$scport); - if ($open) { - fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n"); - $read = fread($open,1000); - $text = explode("content-type:text/html",$read); - $text = explode(",",$text[1]); - fclose($open); - } else { $er="Connection Refused!"; } - } - - //$scfp = fsockopen($scip, $scport, &$errno, &$errstr, 1); - $scfp = fsockopen($scip, $scport); - if(!$scfp) { - $scsuccs=1; - } - if($scsuccs!=1){ - fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); - while(!feof($scfp)) { - $page .= fgets($scfp, 1000); - } - - - $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "MAXLISTENERS", "BITRATE", "SERVERGENRE", "SONGURL", "SERVERURL", "REPORTEDLISTENERS"); - $y=0; - while($loop[$y]!=''){ - $pageed = ereg_replace(".*<$loop[$y]>", "", $page); - $scphp = strtolower($loop[$y]); - $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed); - if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE) - $$scphp = urldecode($$scphp); - - $y++; - } - - $pageed = ereg_replace(".*<SONGHISTORY>", "", $page); - $pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed); - $songatime = explode("<SONG>", $pageed); - $r=1; - while($songatime[$r]!=""){ - $t=$r-1; - $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]); - $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]); - $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]); - $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]); - $song[$t] = urldecode($song[$t]); - $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page); - $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed); - $r++; - } - - fclose($scfp); - } - - if(isset($_GET['status'])){ - $status = $_GET['status']; - } else{ - $status = "stop"; - } - if(isset($_GET['z'])){ - $z = $_GET['z']; - } else{ - $z = "wmp"; - } - - if ($z == 'wmp'){ - $mode = 'real'; - } elseif ($z == 'real'){ - $mode = 'wmp'; - } - ?> \ No newline at end of file --- 0 ---- |
|
From: OryNider <ory...@us...> - 2007-10-02 04:15:48
|
Update of /cvsroot/mxbb/mx_shotcast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv6992 Modified Files: cur_song_save.php getinfo1.php getinfo2.php getinfo_save.php play_real_save.php play_wmp_save.php radio_update_save.php radioplayer_save.php shotcast_save_front.php Log Message: clearing old files. Index: radioplayer_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radioplayer_save.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radioplayer_save.php 6 Jun 2007 23:18:13 -0000 1.1 --- radioplayer_save.php 2 Oct 2007 04:15:27 -0000 1.2 *************** *** 1,149 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - include "getinfo_save.php"; - - user_listensc($nick); - ?> - <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" - "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> - <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> - <head> - <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /> - <meta name="description" content="Radio Player" /> - <meta name="keywords" content="Radio Player" /> - <meta name="author" content="Radio Player originaly made by: Niklas Pull - http://pull.zapto.org" /> - <title>Radio Player :: <?=$station;?></title> - <style type="text/css"> - <!-- - body {margin:0; padding: 0; BACKGROUND-IMAGE: url(templates/gateway_files/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_save.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_save.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>"); - document.writeln(""); - //--> - </SCRIPT> - </div> - <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_save.php?z=<?=$mode;?>"><img src="images/small_<?=$mode;?>.png" border="0"></a> - </td> - </tr> - </table> - </div> - - </div> - - <div id="iframe"> - <iframe src="<?=$status;?>_<?=$z;?>_save.php" name="stream" width="0" height="0"></iframe> - </div> - - <map name="play"> - <area shape="rect" alt="Stop" coords="55,0,78,27" href="radioplayer_save.php?z=<?=$z;?>" target="_self"> - <area shape="rect" alt="Play" coords="21,0,47,28" href="radioplayer_save.php?z=<?=$z;?>&status=play" target="_self"> - </map> - </body> - </html> --- 0 ---- Index: shotcast_save_front.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/shotcast_save_front.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** shotcast_save_front.php 6 Jun 2007 23:18:15 -0000 1.1 --- shotcast_save_front.php 2 Oct 2007 04:15:27 -0000 1.2 *************** *** 1,209 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_chatbox module written by markus_petrux at phpmix dot com - *************************************************************************** - * History: - * 2006/09/10 - * -modified by OryNider to shotcast_front - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - // -------------------------------------------------------------------------------- - // Security check - // - - if( !defined('IN_PORTAL') ) - { - die("Hacking attempt"); - } - - // -------------------------------------------------------------------------------- - // Initialization - // - - // - // Common Includes and Read Module Settings - // - if( !file_exists($module_root_path . 'includes/common.'.$phpEx) ) - { - 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); - - // - // Start session management - // - - // $mx_user->init($user_ip, PAGE_INDEX); - - // - // End session management - // - - - $time=date("U"); - // $nick = str_replace(" ", "_", $userdata['username']); - - //read check period - $period=$shotcast_config['check_period']*1000; - $station = $shotcast_config['shotcast_name']; // Station name - $scip = $shotcast_config['shotcast_host']; // IP adress or domain - $scport = $shotcast_config['shotcast_port']; // Port - $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password - - ini_set("display_errors", "0"); - - - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "11"; - $bitrate = "32"; - $song[0] = "Unknon Artist"; - - // - // Read block Configuration - // - $title = $mx_block->block_info['block_title']; - $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); - $shotcast_icon = 'shotcast_front_02.gif'; - $wmp_icon = 'wmp_front.gif'; - $real_icon = 'real_front.gif'; - - // -------------------------------------------------------------------------------- - // Get ChatBox Session information - // - - // REMOVE OLD SESSIONS - drop_shotcast_users($shotcast_config['check_period']); - - // Get all remain sessions - $sql = "SELECT * FROM ".SHOTCAST_SESSION_TABLE; - if (!$sol = $db->sql_query($sql)) - { - message_die(GENERAL_ERROR, "Could not query shotcast Session information", "", __LINE__, __FILE__, $sql); - } - - if( empty($currentlisteners) && empty($text[2]) ) - { - $text[2] = $shotcast_config['currentlisteners']; - } - elseif (empty($currentlisteners) && !empty($text[2])) - { - $currentlisteners = $text[2]; - } - - - if( $currentlisteners != "" ) - { - $howmanylisten = $db->sql_numrows($sol); - $howmanypeak = $currentlisteners; - } - else - { - $howmanylisten = $db->sql_numrows($sol); // Return this - $howmanypeak="0"; - } - - $isimler[0] = $db->sql_numrows($sol); - - $i = 1; - while ($record = $db->sql_fetchrow($sol)) - { - $isimler[$i++] = $record['username']; - if ( ( $shotcast_config['show_listen_select'] ) ) - { - $can_listen="yes"; - } - elseif ($record['username']==$userdata['username']) - { - $can_listen="no"; - } - 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 />'; - } - - - // -------------------------------------------------------------------------------- - // Generate block output (using templates) - // Generate HTML for the block... - // - $template->set_filenames(array( - 'body' => 'shotcast_front.tpl') - ); - - - if ( !$userdata['session_logged_in'] ) - { - $template->assign_block_vars('switch_user_logged_out', array()); - } - else - { - if ( $can_listen=="no") - { - $template->assign_block_vars('switch_user_listening', array()); - } - else - { - $template->assign_block_vars('switch_user_logged_in', array()); - } - } - - if( empty($listeners) ) - { - $template->assign_block_vars('switch_listeners_list_off', array()); - $listeners_list = ''; - } - else - { - $template->assign_block_vars('switch_listeners_list_on', array()); - $listeners_list = sprintf($lang['Who_Are_Listening'], $listeners); - } - - $template->assign_vars(array( - 'SHOTCAST_IMG' => $module_root_path.'templates/images/'.$shotcast_icon, - 'WMP_IMG' => $module_root_path.'templates/images/'.$wmp_icon, - 'REAL_IMG' => $module_root_path.'templates/images/'.$real_icon, - - 'TOTAL_LISTENERS_ONLINE' => sprintf($lang['How_Many_Listeners'], $howmanylisten), - 'TOTAL_LISTENERS_PEAK' => sprintf($lang['How_Many_Peak'], $howmanypeak), - 'LISTENERS_LIST' => $listeners_list, - 'L_CLICK_TO_LISTEN_STATION' => $lang['Click_to_listen_station'], - 'L_CLICK_TO_LISTEN_WMP' => $lang['Click_to_listen_wmp'], - 'L_CLICK_TO_LISTEN_REAL' => $lang['Click_to_listen_real'], - 'S_LISTEN_STATION' => append_sid($module_root_path.'radioplayer_save.php'), - 'S_LISTEN_WMP' => append_sid($module_root_path.'radioplayer_save.php?lang=&z=wmp'), - 'S_LISTEN_REAL' => append_sid($module_root_path.'radioplayer_save.php?lang=&z=real'), - 'S_MOREINFO' => append_sid($module_root_path.'moreinfo.php'), - 'L_LOGIN_TO_LISTEN_STATION' => $lang['Login_to_listen_station'], - 'L_ALREADY_LISTENING' => $lang['Already_listening'], - 'BLOCK_SIZE' => $block_size, - // 'U_URL' => append_sid(PORTAL_URL . 'index.' . $phpEx . '?block_id=' . $block_id), - 'BLOCK_ID' => $block_id, - 'L_VERSION' => _SHOTCAST_VERSION, - 'L_TITLE' => 'shotcast') - ); - - $template->pparse('body'); - - unset($liteners, $sql, $howmanylisten, $listeners_list, $block_size, $module_root_path, $isimler, $can_listen); - ?> --- 0 ---- Index: getinfo1.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo1.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getinfo1.php 6 Jun 2007 23:17:59 -0000 1.1 --- getinfo1.php 2 Oct 2007 04:15:24 -0000 1.2 *************** *** 1,71 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - - // - // Start session management - // - // $mx_user->init($user_ip, PAGE_INDEX); - - /* - if ( !$userdata['session_logged_in'] ) - { - mx_redirect(append_sid(PHPBB_URL . "login.".$phpEx."?redirect=chat.".$phpEx, true)); - exit; - } - */ - - // - // End session management - // - - - $time=date("U"); - // $nick = str_replace(" ", "_", $userdata['username']); - - /* - if ($_POST['update']==true) - { - update_shotcast_user($nick,$time); - } - */ - - //read check period - $period=$shotcast_config['check_period']*1000; - - $scip = "277.0.0.0"; - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "0"; - $bitrate = "56"; - $song[0] = "Unknon Artist"; - $maxlisteners = "32"; - - // if ($currentlisteners=="") { $currentlisteners = $text[2]; } - // if ($bitrate=="") { $bitrate = $text[5]; } - // if ($song[0]=="") { $song[0] = $text[6]; - - if(isset($_GET['status'])){ - $status = $_GET['status']; - } else{ - $status = "stop"; - } - if(isset($_GET['z'])){ - $z = $_GET['z']; - } else{ - $z = "wmp"; - } - - if ($z == 'wmp'){ - $mode = 'real'; - } elseif ($z == 'real'){ - $mode = 'wmp'; - } - ?> \ No newline at end of file --- 0 ---- Index: play_wmp_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_wmp_save.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** play_wmp_save.php 6 Jun 2007 23:18:09 -0000 1.1 --- play_wmp_save.php 2 Oct 2007 04:15:26 -0000 1.2 *************** *** 1,135 **** - <?php include "getinfo_save.php";?> - <html><head> - <STYLE type=text/css>BODY { - PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; BACKGROUND-REPEAT: repeat-x; FONT-FAMILY: Arial, Helvetica, sans-serif; BACKGROUND-COLOR: #CEDEDF; - } - </STYLE> - </head><body> - <TABLE cellSpacing=0 cellPadding=0 width=315 border=0> - <TBODY> - <TR> - <TD vAlign=top align=left> - - <TABLE cellSpacing=0 cellPadding=0 width=300 border=0> - <TBODY> - <!-- Check Media Player Version --> - <SCRIPT LANGUAGE="JavaScript"> - var WMP7; - var Mac; - var Win; - var Unix; - var Linux; - - Win = navigator.userAgent.indexOf("Win") > -1; - Mac = navigator.userAgent.indexOf("Mac") > -1; - Unix = navigator.appVersion.indexOf("X11") > -1; - Linux = navigator.appVersion.indexOf("Linux") > -1; - - - if (Mac) - { - - if ( navigator.appName == "Netscape" ){ - //Netscape code - document.write (' <Embed id="wmp" name="wmp" type="audio/mpeg"'); - document.write (' pluginspage="http://www.microsoft.com/windows/windowsmedia/"'); - document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' Name=MediaPlayer'); - document.write (' ShowControls=1'); - document.write (' ShowDisplay=1'); - document.write (' ShowStatusBar=1'); - document.write (' AUTOSTART=1'); - document.write (' width=332'); - document.write (' height=354>'); - document.write (' </Embed>'); } - - if ( navigator.appName != "Netscape" ){ - document.write(' <embed id="wmp" name="wmp" type="audio/mpeg" width="332" height="354" ShowTracker="0" ShowDisplay="0" ShowGotoBar="0" ShowStatusBar="1" ShowCaptioning="0" AUTOSTART="1" src="http://<?=$scip;?>:<?=$scport;?>" ></embed>'); } - } - - - if (Win) - { - if ( navigator.appName != "Netscape" ){ - WMP7 = new ActiveXObject('WMPlayer.OCX'); - } - - // Windows Media Player 7 Code - if ( WMP7 ) - { - - document.write ('<OBJECT ID=MediaPlayer '); - document.write (' CLASSID=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6'); - document.write (' standby="Loading Microsoft Windows Media Player components..."'); - document.write (' TYPE="application/x-oleobject" width="332" height="354">'); - document.write ('<PARAM NAME="url" VALUE="http://<?=$scip;?>:<?=$scport;?>">'); - document.write ('<PARAM NAME="AutoStart" VALUE="true">'); - document.write ('<PARAM NAME="ShowControls" VALUE="1">'); - document.write ('<PARAM NAME="uiMode" VALUE="mini">'); - - document.write (' <Embed type="application/x-mplayer2"'); - document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); - document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' Name="MediaPlayer"'); - document.write (' ShowControls="1"'); - document.write (' ShowDisplay="1"'); - document.write (' ShowStatusBar="1"'); - document.write (' AUTOSTART="true"'); - document.write (' width="332"'); - document.write (' height="354">'); - document.write (' </embed>'); - - document.write ('</OBJECT>'); - - - } - - // Windows Media Player 6.4 Code - else - - { - - //IE Code - document.write ('<OBJECT ID=MediaPlayer '); - document.write (' CLASSID=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'); - document.write (' CODEBASE=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715 '); - document.write (' standby="Loading Microsoft Windows Media Player components..."'); - document.write (' TYPE="application/x-oleobject" width="332" height="354">'); - document.write (' <PARAM NAME="FileName" VALUE="http://<?=$scip;?>:<?=$scport;?>">'); - document.write ('<PARAM NAME="url" VALUE="http://<?=$scip;?>:<?=$scport;?>"> '); - document.write ('<PARAM NAME="AutoStart" VALUE="1">'); - document.write ('<PARAM NAME="ShowControls" VALUE="1">'); - - //Firefox code - document.write (' <Embed type="application/x-mplayer2"'); - document.write (' pluginspage="http://www.microsoft.com/isapi/redir.dll?prd=windows&sbp=mediaplayer&ar=Media&sba=Plugin&"'); - document.write (' filename="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' src="http://<?=$scip;?>:<?=$scport;?>"'); - document.write (' Name="MediaPlayer"'); - document.write (' ShowControls="1"'); - document.write (' ShowDisplay="1"'); - document.write (' ShowStatusBar="1"'); - document.write (' AUTOSTART="true"'); - document.write (' width="332"'); - document.write (' height="354">'); - document.write (' </embed>'); - - document.write ('</OBJECT>'); - - } - } - - else - { - - document.write(' <embed type="audio/mpeg" width="332" height="354" AUTOSTART="1" filename="http://<?=$scip;?>:<?=$scport;?>" src="http://<?=$scip;?>:<?=$scport;?>" ></embed>'); - - } - - </SCRIPT> - </TD></TR> - </TBODY></TABLE> - </body> - </html> \ No newline at end of file --- 0 ---- Index: play_real_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/play_real_save.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** play_real_save.php 6 Jun 2007 23:18:04 -0000 1.1 --- play_real_save.php 2 Oct 2007 04:15:26 -0000 1.2 *************** *** 1,26 **** - <?php include "getinfo_save.php";?> - <html> - <head> - <title>RealMedia</title> - </head> - - <body> - <p> - <object id="RVOCX" classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="172"> - <param name="SRC" value="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>"> - <param name="CONTROLS" value="ImageWindow"> - <param name="CONSOLE" value="cons"> - <embed autostart="true" src="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>" type="audio/x-pn-realaudio-plugin" width="320" height="172" controls="ImageWindow" console="cons"> </embed> - <param name="autostart" value="true"> - </object> - </p> - <p> - <object id=RVOCX classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="320" height="30" > - <param name="SRC" value="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>"> - <param name="CONTROLS" value="ControlPanel"> - <param name="CONSOLE" value="cons"> - <embed src="http://<?=$scip;?>:<?=$scport;?>/<?=$playlist;?>" type="audio/x-pn-realaudio-plugin" width="320" height="30" controls="ControlPanel" console="cons" > </embed> - </object> - </p> - </body> - </html> \ No newline at end of file --- 0 ---- Index: cur_song_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/cur_song_save.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cur_song_save.php 6 Jun 2007 23:17:57 -0000 1.1 --- cur_song_save.php 2 Oct 2007 04:15:24 -0000 1.2 *************** *** 1,2 **** - <?php include "getinfo_save.php";?> - <b><?=$song[0];?></b> \ No newline at end of file --- 0 ---- Index: getinfo_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo_save.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getinfo_save.php 6 Jun 2007 23:18:00 -0000 1.1 --- getinfo_save.php 2 Oct 2007 04:15:25 -0000 1.2 *************** *** 1,59 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - include "shotcast_config.php"; - - ini_set("display_errors", "0"); - - $mx_user->init($user_ip, PAGE_INDEX); - $nick = str_replace(" ", "_", $userdata['username']); - $time=date("U"); - if ($_POST['update']==true) - { - update_shotcast_user($nick,$time); - } - - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "11"; - $bitrate = "56"; - $song[0] = "Unknon Artist"; - $maxlisteners = "32"; - - // if ($currentlisteners=="") { $currentlisteners = $text[2]; } - // if ($bitrate=="") { $bitrate = $text[5]; } - // if ($song[0]=="") { $song[0] = $text[6]; } - - if(isset($_GET['status'])){ - $status = $_GET['status']; - } else{ - $status = "stop"; - } - if(isset($_GET['z'])){ - $z = $_GET['z']; - } else{ - $z = "wmp"; - } - - if ($z == 'wmp'){ - $mode = 'real'; - } elseif ($z == 'real'){ - $mode = 'wmp'; - } - ?> \ No newline at end of file --- 0 ---- Index: radio_update_save.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/radio_update_save.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** radio_update_save.php 6 Jun 2007 23:18:11 -0000 1.1 --- radio_update_save.php 2 Oct 2007 04:15:26 -0000 1.2 *************** *** 1,134 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if some functions are disabled in php.ini - ***************************************************************************/ - - error_reporting( E_ALL ); - ini_set( 'display_errors', '1' ); - - define('IN_PORTAL', true); - $mx_root_path = '../../'; - $module_root_path = './'; - $phpEx = substr(strrchr(__FILE__, '.'), 1); - include_once($mx_root_path . 'common.'.$phpEx); - - define('_SHOTCAST_CONFIG', true); - include_once($module_root_path . 'includes/common.'.$phpEx); - - // - // Start session management - // - $mx_user->init($user_ip, PAGE_INDEX); - // - // End session management - // - - $time=date("U"); - $nick = str_replace(" ", "_", $userdata['username']); - - //read check period - $period=$shotcast_config['check_period']*1000; - $station = $shotcast_config['shotcast_name']; // Station name - $scip = $shotcast_config['shotcast_host']; // IP adress or domain - $scport = $shotcast_config['shotcast_port']; // Port - $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password - - $shoutcastserver = $shotcast_config['shotcast_name']; - $servertitle = $shotcast_config['shotcast_name']; - $currentlisteners = "11"; - $bitrate = "56"; - $song[0] = "Unknon Artist"; - $maxlisteners = "32"; - - $time=date("U"); - - if ($_POST['update']==true) - { - update_shotcast_users($nick,$time); - } - else - { - update_shotcast_users($nick,$time); - } - - function update_total_users($currentlisteners) - { - global $shotcast_config, $board_config, $db, $lang; - - - $sql = "UPDATE ". SHOTCAST_CONFIG_TABLE ." SET `config_name` = 'currentlisteners' WHERE `config_value` = '". $currentlisteners ."'"; - - if( !$result = $db->sql_query($sql) ) - { - die("SQL Error in function update_total_users(): UPDATE<br />" . $sql); - } - } - - if( $currentlisteners != "" ) - { - update_total_users($currentlisteners); - } - - //read check period - $period=$shotcast_config['check_period']*1000; - - //radio_update.php (send to the db the user statue "listening" every $period seconds) - echo "<html>"; - echo "<head>"; - echo "<script language=\"javascript\">"; - echo "setInterval(\"document.forms['update'].submit();\",".$period.");"; - echo "</script>"; - echo "<script>\n"; - echo "<!--\n"; - echo "\n"; - echo "//enter refresh time in \"minutes:seconds\" Minutes should range from 0 to inifinity. Seconds should range from 0 to 59\n"; - echo "var limit=\"0:30\"\n"; - echo "\n"; - echo "if (document.images){\n"; - echo "var parselimit=limit.split(\":\")\n"; - echo "parselimit=parselimit[0]*60+parselimit[1]*1\n"; - echo "}\n"; - echo "function beginrefresh(){\n"; - echo "if (!document.images)\n"; - echo "return\n"; - echo "if (parselimit==1)\n"; - echo "window.location.reload()\n"; - echo "else{\n"; - echo "parselimit-=1\n"; - echo "curmin=Math.floor(parselimit/60)\n"; - echo "cursec=parselimit%60\n"; - echo "if (curmin!=0)\n"; - echo "curtime=curmin+\" minutes and \"+cursec+\" seconds left until page refresh!\"\n"; - echo "else\n"; - echo "curtime=cursec+\" seconds left until page refresh!\"\n"; - echo "window.status=curtime\n"; - echo "setTimeout(\"beginrefresh()\",1000)\n"; - echo "}\n"; - echo "}\n"; - echo "\n"; - echo "window.onload=beginrefresh\n"; - echo "//-->\n"; - echo "</script>\n"; - echo "</head>"; - echo "<body background=\"templates/gateway_files/iframe_bg.png\">"; - echo "<form name=\"update\" action=\"radio_update_save.php\" method=\"POST\">"; - echo "<input type=\"hidden\" name=\"update\" value=\"true\">"; - echo "</form>"; - echo " Loged in as: $nick\n"; - echo "</body>"; - echo "</html>"; - ?> \ No newline at end of file --- 0 ---- Index: getinfo2.php =================================================================== RCS file: /cvsroot/mxbb/mx_shotcast/getinfo2.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** getinfo2.php 6 Jun 2007 23:17:59 -0000 1.1 --- getinfo2.php 2 Oct 2007 04:15:25 -0000 1.2 *************** *** 1,127 **** - <?php - /** - * - * @package mxBB Portal Module - mx_shotcast - * @version $Id$ - * @copyright (c) 2002-2006 [OryNider] mxBB Development Team - * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 - * - */ - - /*************************************************************************** - * mx_shotcast - *************************************************************************** - * History: - *OryNider (16/09/2006) : 1st try - * 2007/01/27 - * -modified by OryNider to work if URL file-access is disabled in the - * server configuration - ***************************************************************************/ - - // - // Start session management - // - // $mx_user->init($user_ip, PAGE_INDEX); - - /* - if ( !$userdata['session_logged_in'] ) - { - mx_redirect(append_sid(PHPBB_URL . "login.".$phpEx."?redirect=chat.".$phpEx, true)); - exit; - } - */ - - // - // End session management - // - - /* - $time=date("U"); - $nick = str_replace(" ", "_", $userdata['username']); - - if ($_POST['update']==true) - { - update_shotcast_user($nick,$time); - } - */ - - //read check period - $period=$shotcast_config['check_period']*1000; - $station = $shotcast_config['shotcast_name']; // Station name - $scip = $shotcast_config['shotcast_host']; // IP adress or domain - $scport = $shotcast_config['shotcast_port']; // Port - $scpass = $shotcast_config['shotcast_pass']; // SHOUTcast Password - - ini_set("display_errors", "0"); - - if (@phpversion() >= '5.0.0') { - $open = fsockopen($scip,$scport); - if ($open) { - fputs($open,"GET /7.html HTTP/1.1\nUser-Agent:Mozilla\n\n"); - $read = fread($open,1000); - $text = explode("content-type:text/html",$read); - $text = explode(",",$text[1]); - fclose($open); - } else { $er="Connection Refused!"; } - } - - //$scfp = fsockopen($scip, $scport, &$errno, &$errstr, 1); - $scfp = fsockopen($scip, $scport); - if(!$scfp) { - $scsuccs=1; - } - if($scsuccs!=1){ - fputs($scfp,"GET /admin.cgi?pass=$scpass&mode=viewxml HTTP/1.0\r\nUser-Agent: SHOUTcast Song Status (Mozilla Compatible)\r\n\r\n"); - while(!feof($scfp)) { - $page .= fgets($scfp, 1000); - } - - - $loop = array("STREAMSTATUS", "BITRATE", "SERVERTITLE", "CURRENTLISTENERS", "MAXLISTENERS", "BITRATE", "SERVERGENRE", "SONGURL", "SERVERURL", "REPORTEDLISTENERS"); - $y=0; - while($loop[$y]!=''){ - $pageed = ereg_replace(".*<$loop[$y]>", "", $page); - $scphp = strtolower($loop[$y]); - $$scphp = ereg_replace("</$loop[$y]>.*", "", $pageed); - if($loop[$y]==SERVERGENRE || $loop[$y]==SERVERTITLE || $loop[$y]==SONGTITLE || $loop[$y]==SERVERTITLE) - $$scphp = urldecode($$scphp); - - $y++; - } - - $pageed = ereg_replace(".*<SONGHISTORY>", "", $page); - $pageed = ereg_replace("<SONGHISTORY>.*", "", $pageed); - $songatime = explode("<SONG>", $pageed); - $r=1; - while($songatime[$r]!=""){ - $t=$r-1; - $playedat[$t] = ereg_replace(".*<PLAYEDAT>", "", $songatime[$r]); - $playedat[$t] = ereg_replace("</PLAYEDAT>.*", "", $playedat[$t]); - $song[$t] = ereg_replace(".*<TITLE>", "", $songatime[$r]); - $song[$t] = ereg_replace("</TITLE>.*", "", $song[$t]); - $song[$t] = urldecode($song[$t]); - $dj[$t] = ereg_replace(".*<SERVERTITLE>", "", $page); - $dj[$t] = ereg_replace("</SERVERTITLE>.*", "", $pageed); - $r++; - } - - fclose($scfp); - } - - if(isset($_GET['status'])){ - $status = $_GET['status']; - } else{ - $status = "stop"; - } - if(isset($_GET['z'])){ - $z = $_GET['z']; - } else{ - $z = "wmp"; - } - - if ($z == 'wmp'){ - $mode = 'real'; - } elseif ($z == 'real'){ - $mode = 'wmp'; - } - ?> \ No newline at end of file --- 0 ---- |
|
From: OryNider <ory...@us...> - 2007-09-28 23:02:00
|
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv28497 Modified Files: album_cat.php album_jupload.php album_showpage.php album_upload.php Log Message: some last revizion :P Index: album_upload.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_upload.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** album_upload.php 17 Jul 2007 05:38:27 -0000 1.10 --- album_upload.php 28 Sep 2007 23:01:55 -0000 1.11 *************** *** 21,55 **** } - if( empty($module_root_path) ) - { - $module_root_path = '../'; - $mx_root_path = $module_root_path . '../../'; - } - - $phpEx = substr(strrchr(__FILE__, '.'), 1); - include_once($mx_root_path . 'common.'.$phpEx); - - //include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); - - - if( !defined('ALBUM_MOD_PATH') ) - { - define('ALBUM_MOD_PATH', 'album_mod/'); - } - - // Get general album information - if (!isset($album_root_path) || empty($album_root_path)) - { - $album_root_path = $module_root_path . ALBUM_MOD_PATH . ''; - } - if( !is_object($mx_block) ) - { - // Start session management - $mx_user->init($user_ip, PAGE_INDEX); - // End session management - - include_once($album_root_path . 'album_common.'.$phpEx); - } --- 21,25 ---- Index: album_showpage.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_showpage.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** album_showpage.php 9 Aug 2007 13:17:00 -0000 1.12 --- album_showpage.php 28 Sep 2007 23:01:55 -0000 1.13 *************** *** 115,122 **** else { ! if ($album_config['midthumb_use'] == 1) { $picm = true; ! $full_size_param = ''; } else --- 115,122 ---- else { ! if ($album_sp_config['midthumb_use'] == 1) { $picm = true; ! $full_size_param = '&full=false'; } else *************** *** 1065,1070 **** //'U_PIC' => ( $picm ) ? append_sid(this_smartor_mxurl("smartor_mode=album_pic&pic_id=$pic_id", TRUE)) : append_sid(this_smartor_mxurl("smartor_mode=album_picm&pic_id=$pic_id", TRUE)), 'U_PIC' => $pic_link, ! 'U_PIC_L1' => ( $picm ) ? '' : '<a href='.this_smartor_mxurl("smartor_mode=album_showpage&full=&pic_id=" . $pic_id) . '>', ! 'U_PIC_L2' => ( $picm ) ? '' : '</a>', 'U_PIC_CLICK' => ( $picm ) ? '' : 'Click on image to view larger image', --- 1065,1070 ---- //'U_PIC' => ( $picm ) ? append_sid(this_smartor_mxurl("smartor_mode=album_pic&pic_id=$pic_id", TRUE)) : append_sid(this_smartor_mxurl("smartor_mode=album_picm&pic_id=$pic_id", TRUE)), 'U_PIC' => $pic_link, ! 'U_PIC_L1' => ( $picm ) ? '<a href='.this_smartor_mxurl("smartor_mode=album_showpage&full=true&pic_id=" . $pic_id) . '>' : '', ! 'U_PIC_L2' => ( $picm ) ? '</a>' : '', 'U_PIC_CLICK' => ( $picm ) ? '' : 'Click on image to view larger image', |
|
From: OryNider <ory...@us...> - 2007-09-28 22:59:23
|
Update of /cvsroot/mxbb/mx_smartor/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27577 Modified Files: Tag: core28x album_cat.php album_jupload.php album_showpage.php album_upload.php Log Message: Index: album_upload.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_upload.php,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -C2 -d -r1.10 -r1.10.2.1 *** album_upload.php 17 Jul 2007 05:38:27 -0000 1.10 --- album_upload.php 28 Sep 2007 22:59:17 -0000 1.10.2.1 *************** *** 21,55 **** } - if( empty($module_root_path) ) - { - $module_root_path = '../'; - $mx_root_path = $module_root_path . '../../'; - } - - $phpEx = substr(strrchr(__FILE__, '.'), 1); - include_once($mx_root_path . 'common.'.$phpEx); - - //include($phpbb_root_path . 'includes/functions_validate.'.$phpEx); - - - if( !defined('ALBUM_MOD_PATH') ) - { - define('ALBUM_MOD_PATH', 'album_mod/'); - } - - // Get general album information - if (!isset($album_root_path) || empty($album_root_path)) - { - $album_root_path = $module_root_path . ALBUM_MOD_PATH . ''; - } - if( !is_object($mx_block) ) - { - // Start session management - $mx_user->init($user_ip, PAGE_INDEX); - // End session management - - include_once($album_root_path . 'album_common.'.$phpEx); - } --- 21,25 ---- Index: album_showpage.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/includes/album_showpage.php,v retrieving revision 1.12 retrieving revision 1.12.2.1 diff -C2 -d -r1.12 -r1.12.2.1 *** album_showpage.php 9 Aug 2007 13:17:00 -0000 1.12 --- album_showpage.php 28 Sep 2007 22:59:17 -0000 1.12.2.1 *************** *** 115,122 **** else { ! if ($album_config['midthumb_use'] == 1) { $picm = true; ! $full_size_param = ''; } else --- 115,122 ---- else { ! if ($album_sp_config['midthumb_use'] == 1) { $picm = true; ! $full_size_param = '&full=false'; } else *************** *** 1065,1070 **** //'U_PIC' => ( $picm ) ? append_sid(this_smartor_mxurl("smartor_mode=album_pic&pic_id=$pic_id", TRUE)) : append_sid(this_smartor_mxurl("smartor_mode=album_picm&pic_id=$pic_id", TRUE)), 'U_PIC' => $pic_link, ! 'U_PIC_L1' => ( $picm ) ? '' : '<a href='.this_smartor_mxurl("smartor_mode=album_showpage&full=&pic_id=" . $pic_id) . '>', ! 'U_PIC_L2' => ( $picm ) ? '' : '</a>', 'U_PIC_CLICK' => ( $picm ) ? '' : 'Click on image to view larger image', --- 1065,1070 ---- //'U_PIC' => ( $picm ) ? append_sid(this_smartor_mxurl("smartor_mode=album_pic&pic_id=$pic_id", TRUE)) : append_sid(this_smartor_mxurl("smartor_mode=album_picm&pic_id=$pic_id", TRUE)), 'U_PIC' => $pic_link, ! 'U_PIC_L1' => ( $picm ) ? '<a href='.this_smartor_mxurl("smartor_mode=album_showpage&full=true&pic_id=" . $pic_id) . '>' : '', ! 'U_PIC_L2' => ( $picm ) ? '</a>' : '', 'U_PIC_CLICK' => ( $picm ) ? '' : 'Click on image to view larger image', |
|
From: OryNider <ory...@us...> - 2007-09-27 16:11:37
|
Update of /cvsroot/mxbb/mx_smartor/docs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8337 Modified Files: albuming.txt Log Message: Index: albuming.txt =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/docs/albuming.txt,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** albuming.txt 27 Sep 2007 00:31:46 -0000 1.3 --- albuming.txt 27 Sep 2007 16:11:33 -0000 1.4 *************** *** 29,32 **** --- 29,35 ---- # + // Replace 'mx_' with your table prefix! + $mx_table_prefix = !empty($mx_table_prefix) ? $mx_table_prefix : 'mx_'; + !defined('ALBUM_CONFIG_TABLE') ? define('ALBUM_CONFIG_TABLE', $mx_table_prefix.'smartor_album_config') : false; |
|
From: OryNider <ory...@us...> - 2007-09-27 16:11:05
|
Update of /cvsroot/mxbb/mx_smartor/docs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv7933 Modified Files: Tag: core28x albuming.txt Log Message: Index: albuming.txt =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/docs/albuming.txt,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** albuming.txt 27 Sep 2007 00:30:33 -0000 1.1.2.2 --- albuming.txt 27 Sep 2007 16:10:56 -0000 1.1.2.3 *************** *** 29,32 **** --- 29,35 ---- # + // Replace 'mx_' with your table prefix! + $mx_table_prefix = !empty($mx_table_prefix) ? $mx_table_prefix : 'mx_'; + !defined('ALBUM_CONFIG_TABLE') ? define('ALBUM_CONFIG_TABLE', $mx_table_prefix.'smartor_album_config') : false; |
|
From: OryNider <ory...@us...> - 2007-09-27 00:31:49
|
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10651/album_mod Modified Files: album_bbconstants.php Log Message: Index: album_bbconstants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_bbconstants.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** album_bbconstants.php 26 Sep 2007 12:54:05 -0000 1.3 --- album_bbconstants.php 27 Sep 2007 00:31:45 -0000 1.4 *************** *** 40,48 **** function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $album_index, $phpEx, $integration_enabled, $is_block; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode || !$is_block ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); --- 40,48 ---- function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $album_index, $phpEx, $integration_enabled; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); *************** *** 57,61 **** define('ALBUM_INDEX', this_smartor_mxurl()); ! define('ALBUM_SHOWPAGE', this_smartor_mxurl('smartor_mode=album_showpage')); define('ALBUM_PICM', this_smartor_mxurl('smartor_mode=album_picm', true)); define('ALBUM_THUMBNAIL', this_smartor_mxurl('smartor_mode=album_thumbnail', true)); --- 57,61 ---- define('ALBUM_INDEX', this_smartor_mxurl()); ! define('ALBUM_SHOWPAGE', this_smartor_mxurl('smartor_mode=album_showpage', false)); define('ALBUM_PICM', this_smartor_mxurl('smartor_mode=album_picm', true)); define('ALBUM_THUMBNAIL', this_smartor_mxurl('smartor_mode=album_thumbnail', true)); |
|
From: OryNider <ory...@us...> - 2007-09-27 00:31:49
|
Update of /cvsroot/mxbb/mx_smartor/docs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10651/docs Modified Files: albuming.txt Log Message: Index: albuming.txt =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/docs/albuming.txt,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** albuming.txt 24 Sep 2007 22:28:11 -0000 1.2 --- albuming.txt 27 Sep 2007 00:31:46 -0000 1.3 *************** *** 6,14 **** #-----[ FIND ]------------------------------------------------ # ! $mx_root_path = './../'; # #-----[ AFTER, ADD ]------------------------------------------ # ! $mx_table_prefix = 'mx_'; # --- 6,14 ---- #-----[ FIND ]------------------------------------------------ # ! $mx_root_path = './../'; # #-----[ AFTER, ADD ]------------------------------------------ # ! $mx_table_prefix = 'mx_'; # *************** *** 47,55 **** function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $page_id, $album_index, $phpEx, $integration_enabled, $is_block; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode || !$is_block ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); --- 47,55 ---- function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $page_id, $album_index, $phpEx, $integration_enabled; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); |
|
From: OryNider <ory...@us...> - 2007-09-27 00:30:38
|
Update of /cvsroot/mxbb/mx_smartor/docs In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10226 Modified Files: Tag: core28x albuming.txt Log Message: Index: albuming.txt =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/docs/albuming.txt,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** albuming.txt 24 Sep 2007 22:27:26 -0000 1.1.2.1 --- albuming.txt 27 Sep 2007 00:30:33 -0000 1.1.2.2 *************** *** 6,14 **** #-----[ FIND ]------------------------------------------------ # ! $mx_root_path = './../'; # #-----[ AFTER, ADD ]------------------------------------------ # ! $mx_table_prefix = 'mx_'; # --- 6,14 ---- #-----[ FIND ]------------------------------------------------ # ! $mx_root_path = './../'; # #-----[ AFTER, ADD ]------------------------------------------ # ! $mx_table_prefix = 'mx_'; # *************** *** 47,55 **** function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $page_id, $album_index, $phpEx, $integration_enabled, $is_block; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode || !$is_block ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); --- 47,55 ---- function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $page_id, $album_index, $phpEx, $integration_enabled; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); |
|
From: OryNider <ory...@us...> - 2007-09-27 00:28:34
|
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9148 Modified Files: Tag: core28x album_bbconstants.php Log Message: Index: album_bbconstants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_bbconstants.php,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -C2 -d -r1.1.2.2 -r1.1.2.3 *** album_bbconstants.php 26 Sep 2007 12:55:15 -0000 1.1.2.2 --- album_bbconstants.php 27 Sep 2007 00:28:29 -0000 1.1.2.3 *************** *** 40,48 **** function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $album_index, $phpEx, $integration_enabled, $is_block; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode || !$is_block ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); --- 40,48 ---- function this_smartor_mxurl($args = '', $force_standalone_mode = false) { ! global $mx_root_path, $album_index, $phpEx, $integration_enabled; $module_root_path = $mx_root_path . 'modules/mx_smartor/'; ! if( $force_standalone_mode ) { $mxurl = $mx_root_path . 'modules/mx_smartor/' . 'album.' . $phpEx . ($args == '' ? '' : '?' . $args); *************** *** 57,61 **** define('ALBUM_INDEX', this_smartor_mxurl()); ! define('ALBUM_SHOWPAGE', this_smartor_mxurl('smartor_mode=album_showpage')); define('ALBUM_PICM', this_smartor_mxurl('smartor_mode=album_picm', true)); define('ALBUM_THUMBNAIL', this_smartor_mxurl('smartor_mode=album_thumbnail', true)); --- 57,61 ---- define('ALBUM_INDEX', this_smartor_mxurl()); ! define('ALBUM_SHOWPAGE', this_smartor_mxurl('smartor_mode=album_showpage', false)); define('ALBUM_PICM', this_smartor_mxurl('smartor_mode=album_picm', true)); define('ALBUM_THUMBNAIL', this_smartor_mxurl('smartor_mode=album_thumbnail', true)); |
|
From: OryNider <ory...@us...> - 2007-09-26 12:55:19
|
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv334 Modified Files: Tag: core28x album_bbconstants.php Log Message: fixed ;) Index: album_bbconstants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_bbconstants.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** album_bbconstants.php 24 Sep 2007 22:27:25 -0000 1.1.2.1 --- album_bbconstants.php 26 Sep 2007 12:55:15 -0000 1.1.2.2 *************** *** 11,15 **** if ( !defined('IN_PORTAL') ) { ! die('Hacking attempt'); } --- 11,15 ---- if ( !defined('IN_PORTAL') ) { ! //die('Hacking attempt'); } *************** *** 19,22 **** --- 19,25 ---- } + // Replace 'mx_' with your table prefix! + $mx_table_prefix = !empty($mx_table_prefix) ? $mx_table_prefix : 'mx_'; + !defined('ALBUM_CONFIG_TABLE') ? define('ALBUM_CONFIG_TABLE', $mx_table_prefix.'smartor_album_config') : false; *************** *** 26,30 **** if ( !($result = $db->sql_query($sql)) ) { ! mx_message_die(CRITICAL_ERROR, 'Could not query album config database'); } --- 29,33 ---- if ( !($result = $db->sql_query($sql)) ) { ! message_die(CRITICAL_ERROR, 'Could not query album config database'); } |
|
From: OryNider <ory...@us...> - 2007-09-26 12:54:11
|
Update of /cvsroot/mxbb/mx_smartor/album_mod In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32301 Modified Files: album_bbconstants.php Log Message: fixed ;) Index: album_bbconstants.php =================================================================== RCS file: /cvsroot/mxbb/mx_smartor/album_mod/album_bbconstants.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** album_bbconstants.php 24 Sep 2007 22:28:10 -0000 1.2 --- album_bbconstants.php 26 Sep 2007 12:54:05 -0000 1.3 *************** *** 11,15 **** if ( !defined('IN_PORTAL') ) { ! die('Hacking attempt'); } --- 11,15 ---- if ( !defined('IN_PORTAL') ) { ! //die('Hacking attempt'); } *************** *** 19,22 **** --- 19,25 ---- } + // Replace 'mx_' with your table prefix! + $mx_table_prefix = !empty($mx_table_prefix) ? $mx_table_prefix : 'mx_'; + !defined('ALBUM_CONFIG_TABLE') ? define('ALBUM_CONFIG_TABLE', $mx_table_prefix.'smartor_album_config') : false; *************** *** 26,30 **** if ( !($result = $db->sql_query($sql)) ) { ! mx_message_die(CRITICAL_ERROR, 'Could not query album config database'); } --- 29,33 ---- if ( !($result = $db->sql_query($sql)) ) { ! message_die(CRITICAL_ERROR, 'Could not query album config database'); } |
|
From: OryNider <ory...@us...> - 2007-09-24 23:11:28
|
Update of /cvsroot/mxbb/mx_clock/source/Sprite/sprite7 In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv32531/sprite7 Added Files: sprite7_frame1.swf Log Message: added source --- NEW FILE: sprite7_frame1.swf --- (This appears to be a binary file; contents omitted.) |