|
From: Jon O. <jon...@us...> - 2005-12-17 00:33:17
|
Update of /cvsroot/mxbb/core/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14518/install Modified Files: mx_install.php Log Message: - updated schemas, adding new parameter_auth field - fix for regenerating cache during install/upgrade Index: mx_install.php =================================================================== RCS file: /cvsroot/mxbb/core/install/mx_install.php,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** mx_install.php 16 Dec 2005 18:58:45 -0000 1.58 --- mx_install.php 17 Dec 2005 00:33:10 -0000 1.59 *************** *** 43,47 **** define('INSTALL_READONLY', true); - // // Set mxBB-Portal version here! --- 43,46 ---- *************** *** 72,76 **** define('U_MXBB_NEWS_NOW', 'http://lists.sourceforge.net/lists/listinfo/mxbb-news'); - // // Initialization --- 71,74 ---- *************** *** 81,85 **** $mx_root_path = '../'; - // // FYI: --- 79,82 ---- *************** *** 564,594 **** // //if( $install_mode == 'upgrade' && count($schemas) > 0 ) ! if( count($schemas) > 0 ) { ! if( version_compare($mx_portal_version, '2.8.0', '<') ) ! { ! // ! // FYI: This is how the cache worked before 2.8.0. ! // ! if( @file_exists($mx_root_path . 'cache/block_config.xml') ) ! { ! include($mx_root_path . "cache/mx_functions_core.$phpEx"); ! update_session_cache(MX_ALL_DATA); ! $process_msgs[] = $lang['Cache_generate']; ! } ! } ! else { ! // ! // FYI: update_session_cache() needs $portal_config to be filled. ! // ! $sql = 'SELECT * FROM '.PORTAL_TABLE.' WHERE portal_id = 1'; ! if( ($result = $db->sql_query($sql)) ) ! { ! $portal_config = $db->sql_fetchrow($result); ! include($mx_root_path . "includes/mx_functions_core.$phpEx"); ! update_session_cache(MX_CACHE_ALL); ! $process_msgs[] = $lang['Cache_generate']; ! } } } --- 561,576 ---- // //if( $install_mode == 'upgrade' && count($schemas) > 0 ) ! if( count($schemas) > 0 && file_exists($mx_root_path . "includes/mx_functions_core" . $phpEx) ) { ! // ! // FYI: update_session_cache() needs $portal_config to be filled. ! // ! $sql = 'SELECT * FROM '.PORTAL_TABLE.' WHERE portal_id = 1'; ! if( ($result = $db->sql_query($sql)) ) { ! $portal_config = $db->sql_fetchrow($result); ! include($mx_root_path . "includes/mx_functions_core" . $phpEx); ! update_session_cache(MX_CACHE_ALL); ! $process_msgs[] = $lang['Cache_generate']; } } |