|
From: OryNider <ory...@us...> - 2008-03-21 08:57:46
|
Update of /cvsroot/mxbb/mx_radiocast In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv27023 Modified Files: Tag: core28x Radio_Cast.nfo db_install.php db_upgrade.php mx_install_readme.htm radiocast.php Log Message: version 1.0.2 Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_upgrade.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 *** db_upgrade.php 17 Sep 2007 07:24:30 -0000 1.1.2.2 --- db_upgrade.php 21 Mar 2008 08:57:07 -0000 1.1.2.3 *************** *** 30,34 **** } ! $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; --- 30,34 ---- } ! $mx_module_version = '1.0.2'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; *************** *** 44,47 **** --- 44,48 ---- // $upgrade_101 = 0; + $upgrade_102 = 0; // *************** *** 53,60 **** $upgrade_101 = 1; } $message = "<b>Upgrading!</b><br/><br/>"; ! if ( $upgrade_101 == 1 ) { $message .= "<b>Upgrading to v. 1.0.1...</b><br/><br/>"; --- 54,67 ---- $upgrade_101 = 1; } + + $result = $db->sql_query( "SELECT config_value from " . $mx_table_prefix . "radiocast_config WHERE config_name = 'xs_enabled'" ); + if ( $db->sql_numrows( $result ) == 0 ) + { + $upgrade_102 = 1; + } $message = "<b>Upgrading!</b><br/><br/>"; ! if ($upgrade_101 == 1) { $message .= "<b>Upgrading to v. 1.0.1...</b><br/><br/>"; *************** *** 69,72 **** --- 76,95 ---- WHERE config_name = 'radiocast_version'"; } + + if ($upgrade_102 == 1) + { + $message .= "<b>Upgrading to v. 1.0.2...</b><br/><br/>"; + + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('xs_enabled', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('img_allowed', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('flv_allowed', '1')"; + + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_media', '10')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_media', '1')"; + + $sql[] = "ALTER TABLE " . $mx_table_prefix . "radiocast ADD station_filetype varchar(255) NOT NULL AFTER station_filename"; + } else { Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/db_install.php,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** db_install.php 17 Sep 2007 07:24:29 -0000 1.1.2.1 --- db_install.php 21 Mar 2008 08:57:05 -0000 1.1.2.2 *************** *** 33,37 **** } ! $mx_module_version = '1.0.1'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; --- 33,37 ---- } ! $mx_module_version = '1.0.2'; $mx_module_copy = 'mxBB <i> - Radio Cast</i> module by <a href="http://www.mxbb.net/" target="_blank">OryNider</a>'; *************** *** 57,60 **** --- 57,61 ---- station_id int(11) UNSIGNED NOT NULL auto_increment, station_filename varchar(255) NOT NULL, + station_filetype varchar(255) NOT NULL, station_imagename varchar(255) NOT NULL, station_title varchar(255) NOT NULL, *************** *** 174,177 **** --- 175,187 ---- $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('index', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('xs_enabled', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('img_allowed', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('flv_allowed', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('show_index_subcats', '1')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_pic', '5')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('rows_per_page_media', '10')"; + $sql[] = "INSERT INTO " . $mx_table_prefix . "radiocast_config VALUES ('cols_per_page_media', '1')"; + $sql[] = "UPDATE " . $mx_table_prefix . "module" . " SET module_version = '" . $mx_module_version . "', Index: radiocast.php =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/radiocast.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 *** radiocast.php 17 Sep 2007 07:24:30 -0000 1.1.2.1 --- radiocast.php 21 Mar 2008 08:57:08 -0000 1.1.2.2 *************** *** 16,49 **** if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; ! // ! // Let's include some stuff... ! // ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.' . $phpEx); // // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management // ! $block_id = ( !empty($HTTP_GET_VARS['block_id']) ) ? $HTTP_GET_VARS['block_id'] : $HTTP_POST_VARS['id']; ! if( empty($block_id) ) ! { ! $sql = "SELECT * FROM " . BLOCK_TABLE . " WHERE block_title = 'Radio Cast' LIMIT 1"; ! if(!$result = $db->sql_query($sql)) ! { ! message_die(GENERAL_ERROR, "Could not query Music Center module information", "", __LINE__, __FILE__, $sql); ! } ! $row = $db->sql_fetchrow($result); ! $block_id = $row['block_id']; ! } $is_block = FALSE; } else { - // // Read block Configuration --- 16,45 ---- if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! ! @define('IN_PORTAL', true); ! ! $mx_root_path = "../../"; ! $module_root_path = "./"; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include_once($mx_root_path . 'common.'.$phpEx); ! // // Start session management // ! $mx_user->init($user_ip, PAGE_INDEX); // // End session management // ! ! $title = 'Media Player Radio'; ! ! $block_size = (isset($block_size) && !empty($block_size) ? $block_size : '348'); ! //$player_size = (isset($block_size) && !empty($block_size) ? $block_size - 15 : '333'); ! $is_block = FALSE; } else { // // Read block Configuration *************** *** 51,65 **** $title = $mx_block->block_info['block_title']; ! $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); if( is_object($mx_block)) { ! $is_block = TRUE; } - - global $images, $mx_images; } - $radiocast_root_path = $module_root_path . 'radiocast_mod/'; --- 47,60 ---- $title = $mx_block->block_info['block_title']; ! $desc = $mx_block->block_info['block_desc']; ! $block_size = (isset($block_size) && !empty($block_size) ? $block_size : '100%'); ! //$player_size = $mx_block->get_parameters('player_width'); if( is_object($mx_block)) { ! $is_block = TRUE; } } $radiocast_root_path = $module_root_path . 'radiocast_mod/'; *************** *** 621,625 **** 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, --- 616,620 ---- 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $images['radio_front'], 'POSTER' => $top_poster, *************** *** 737,741 **** 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $mx_images['radio_front'], 'POSTER' => $top_poster, --- 732,736 ---- 'SINGER' => $topsongrow[$j]['station_singer'], ! 'RADIO_FRONT_IMG' => $images['radio_front'], 'POSTER' => $top_poster, Index: Radio_Cast.nfo =================================================================== RCS file: /cvsroot/mxbb/mx_radiocast/Radio_Cast.nfo,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** Radio_Cast.nfo 6 Jun 2007 23:03:42 -0000 1.1 --- Radio_Cast.nfo 21 Mar 2008 08:57:05 -0000 1.1.2.1 *************** *** 17,26 **** º±³ -..- ³ º±³ .. ³ ! º±³ mx_radiocast v1.0.0 ³ ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ· ³ Supplied by.......mxBB Dev. Team Release type.................module ³±º ³ Cracked by...................n/a Protection......................n/a ³±º ³ Packaged by.............OryNider Release size.................117 KB ³±º ! ³ Release date..........20.05.2006 Operating system..........php4/php5 ³±º ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ Ú Ä ÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ÄÄ Ä ¿ --- 17,26 ---- º±³ -..- ³ º±³ .. ³ ! º±³ mx_radiocast v1.0.2 ³ ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ· ³ Supplied by.......mxBB Dev. Team Release type.................module ³±º ³ Cracked by...................n/a Protection......................n/a ³±º ³ Packaged by.............OryNider Release size.................117 KB ³±º ! ³ Release date..........21.03.2008 Operating system..........php4/php5 ³±º ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄĽ Ú Ä ÄÄ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ÄÄ Ä ¿ |