|
From: OryNider <ory...@us...> - 2008-01-16 19:50:03
|
Update of /cvsroot/mxbb/mx_music In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv16748 Modified Files: Tag: core28x music.php mx_install_readme.htm Log Message: Index: mx_install_readme.htm =================================================================== RCS file: /cvsroot/mxbb/mx_music/mx_install_readme.htm,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -C2 -d -r1.1.2.3 -r1.1.2.4 *** mx_install_readme.htm 2 Nov 2007 00:13:12 -0000 1.1.2.3 --- mx_install_readme.htm 16 Jan 2008 19:49:26 -0000 1.1.2.4 *************** *** 5,9 **** <head> <meta name="generator" content= ! "HTML Tidy for Windows (vers 19 September 2007), see www.w3.org" /> <title>mxBB Portal installation - readme</title> <meta http-equiv="Content-Type" content= --- 5,9 ---- <head> <meta name="generator" content= ! "Microsoft FrontPage 5.0" /> <title>mxBB Portal installation - readme</title> <meta http-equiv="Content-Type" content= *************** *** 270,274 **** src="http://www.mx-system.com/forum/images/smiles/icon_biggrin.gif" border="0" width="15" height="15" /><br /> !  </span></p> </li> <li> --- 270,274 ---- src="http://www.mx-system.com/forum/images/smiles/icon_biggrin.gif" border="0" width="15" height="15" /><br /> ! </span></p> </li> <li> *************** *** 277,281 **** you find the song by Song Title, Singer or Song Poster quickly and easily.<br /> !  </p> </li> <li> --- 277,281 ---- you find the song by Song Title, Singer or Song Poster quickly and easily.<br /> ! </p> </li> <li> *************** *** 283,287 **** "TEXT-DECORATION: underline">Music Cat Views</span> - is adding a viewed counter of each Category;<br /> !  </p> </li> <li> --- 283,287 ---- "TEXT-DECORATION: underline">Music Cat Views</span> - is adding a viewed counter of each Category;<br /> ! </p> </li> <li> *************** *** 344,350 **** "postbody"><span style="COLOR: red">If you upgrade from 2.7.x and you have mx_musiconline, the posibility of migration to mx_music ! it's just teoretical with unknown rezult, and you do it at your own ! risc!!! A mx_musiconline module for 2.8.0 may be relesed by ! Selven.</span></span><span style="font-size: 9pt"><br /> <br /> <a href="#top">Back to Top</a><br /> --- 344,349 ---- "postbody"><span style="COLOR: red">If you upgrade from 2.7.x and you have mx_musiconline, the posibility of migration to mx_music ! it's just teoretical with unknown rezult, and you do it at your own risc!!! You ! will have to move the mx_musiconline/upload/ folder to mx_music/upload/</span></span><span style="font-size: 9pt"><br /> <br /> <a href="#top">Back to Top</a><br /> Index: music.php =================================================================== RCS file: /cvsroot/mxbb/mx_music/music.php,v retrieving revision 1.8.2.2 retrieving revision 1.8.2.3 diff -C2 -d -r1.8.2.2 -r1.8.2.3 *** music.php 21 Sep 2007 22:25:22 -0000 1.8.2.2 --- music.php 16 Jan 2008 19:49:26 -0000 1.8.2.3 *************** *** 15,68 **** ini_set( 'display_errors', '1' ); ! ! if( !defined('IN_PORTAL') || !is_object($mx_block)) { ! define('IN_PORTAL', true); ! $mx_root_path = '../../'; ! $module_root_path = $mx_root_path . 'modules/mx_music/'; // ! // 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 = 'Media Center' 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 ! // ! $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; } - $music_root_path = $module_root_path . 'music_box/'; --- 15,111 ---- ini_set( 'display_errors', '1' ); ! if ( file_exists( './viewtopic.php' ) ) // -------------------------------------------- phpBB MOD MODE { ! define( 'MXBB_MODULE', false ); ! define( 'IN_PHPBB', true ); ! define( 'IN_PORTAL', true ); ! define( 'IN_DOWNLOAD', true ); ! ! // When run as a phpBB mod these paths are identical ;) ! $phpbb_root_path = $module_root_path = $mx_root_path = './'; ! $mx_mod_path = $phpbb_root_path . 'mx_mod/'; ! ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! include( $phpbb_root_path . 'common.' . $phpEx ); ! ! include_once( $phpbb_root_path . 'includes/bbcode.' . $phpEx ); ! include_once( $phpbb_root_path . 'includes/functions_post.' . $phpEx ); ! include_once( $mx_mod_path . 'includes/functions_required.' . $phpEx ); ! include_once( $mx_mod_path . 'includes/functions_core.' . $phpEx ); ! ! define( 'PAGE_DOWNLOAD', -501 ); // If this id generates a conflict with other mods, change it ;) ! ! // Start session management ! $userdata = session_pagestart( $user_ip, PAGE_DOWNLOAD ); ! init_userprefs( $userdata ); ! ! // End session management // ! // Instatiate the mx_cache class // ! $mx_cache = new mx_cache(); ! // ! // Get mxBB config settings // ! $portal_config = $mx_cache->obtain_mxbb_config(); ! // ! // instatiate the mx_request_vars class // ! $mx_request_vars = new mx_request_vars(); ! ! $is_block = false; ! } ! else ! { ! 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 = 'Music Center' 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 ! // ! $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; ! } } $music_root_path = $module_root_path . 'music_box/'; *************** *** 105,177 **** if ( $mode == 'music_cat' ) { ! include($module_root_path. 'includes/music_cat.'.$phpEx); } else if ( $mode == 'music_pic_cat' ) { ! include($module_root_path. 'includes/music_pic_cat.'.$phpEx); } else if ( $mode == 'music_media_cat' ) { ! include($module_root_path. 'includes/music_media_cat.'.$phpEx); } else if ( $mode == 'music_comment' ) { ! include($module_root_path. 'includes/music_comment.'.$phpEx); } else if ( $mode == 'music_comment_delete' ) { ! include($module_root_path. 'includes/music_comment_delete.'.$phpEx); } else if ( $mode == 'music_comment_edit' ) { ! include($module_root_path. 'includes/music_comment_edit.'.$phpEx); } else if ( $mode == 'music_delete' ) { ! include($module_root_path. 'includes/music_delete.'.$phpEx); } else if ( $mode == 'music_download' ) { ! include($module_root_path. 'includes/music_download.'.$phpEx); } else if ( $mode == 'music_edit' ) { ! include($module_root_path. 'includes/music_edit.'.$phpEx); } else if ( $mode == 'music_list' ) { ! include($module_root_path. 'includes/music_list.'.$phpEx); } else if ( $mode == 'music_modcp' ) { ! include($module_root_path. 'includes/music_modcp.'.$phpEx); } else if ( $mode == 'music_page' ) { ! include($module_root_path. 'includes/music_page.'.$phpEx); } else if ( $mode == 'music_rate' ) { ! include($module_root_path. 'includes/music_rate.'.$phpEx); } else if ( $mode == 'music_song' ) { ! include($module_root_path. 'includes/music_song.'.$phpEx); } else if ( $mode == 'music_upload' ) { ! include($module_root_path. 'includes/music_upload.'.$phpEx); } else if ( $mode == 'music_stream' ) { ! include($module_root_path. 'includes/music_stream.'.$phpEx); } else if ( $mode == 'music_rss' ) { ! include($module_root_path. 'includes/music_rss.'.$phpEx); ! } ! else if( !is_object($mx_block)) ! { ! die("Hacking attempt"); } else --- 148,216 ---- if ( $mode == 'music_cat' ) { ! include($module_root_path. 'music_box/modules/music_cat.'.$phpEx); } else if ( $mode == 'music_pic_cat' ) { ! include($module_root_path. 'music_box/modules/music_pic_cat.'.$phpEx); } else if ( $mode == 'music_media_cat' ) { ! include($module_root_path. 'music_box/modules/music_media_cat.'.$phpEx); } else if ( $mode == 'music_comment' ) { ! include($module_root_path. 'music_box/modules/music_comment.'.$phpEx); } else if ( $mode == 'music_comment_delete' ) { ! include($module_root_path. 'music_box/modules/music_comment_delete.'.$phpEx); } else if ( $mode == 'music_comment_edit' ) { ! include($module_root_path. 'music_box/modules/music_comment_edit.'.$phpEx); } else if ( $mode == 'music_delete' ) { ! include($module_root_path. 'music_box/modules/music_delete.'.$phpEx); } else if ( $mode == 'music_download' ) { ! include($module_root_path. 'music_box/modules/music_download.'.$phpEx); } else if ( $mode == 'music_edit' ) { ! include($module_root_path. 'music_box/modules/music_edit.'.$phpEx); } else if ( $mode == 'music_list' ) { ! include($module_root_path. 'music_box/modules/music_list.'.$phpEx); } else if ( $mode == 'music_modcp' ) { ! include($module_root_path. 'music_box/modules/music_modcp.'.$phpEx); } else if ( $mode == 'music_page' ) { ! include($module_root_path. 'music_box/modules/music_page.'.$phpEx); } else if ( $mode == 'music_rate' ) { ! include($module_root_path. 'music_box/modules/music_rate.'.$phpEx); } else if ( $mode == 'music_song' ) { ! include($module_root_path. 'music_box/modules/music_song.'.$phpEx); } else if ( $mode == 'music_upload' ) { ! include($module_root_path. 'music_box/modules/music_upload.'.$phpEx); } else if ( $mode == 'music_stream' ) { ! include($module_root_path. 'music_box/modules/music_stream.'.$phpEx); } else if ( $mode == 'music_rss' ) { ! include($module_root_path. 'music_box/modules/music_rss.'.$phpEx); } else |