|
From: Jon O. <jon...@us...> - 2005-12-08 21:41:38
|
Update of /cvsroot/mxbb/core/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3429/admin Modified Files: admin_mx_portal.php Log Message: fix for mod_rewrite updated schemas Index: admin_mx_portal.php =================================================================== RCS file: /cvsroot/mxbb/core/admin/admin_mx_portal.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** admin_mx_portal.php 8 Dec 2005 14:41:47 -0000 1.20 --- admin_mx_portal.php 8 Dec 2005 21:41:27 -0000 1.21 *************** *** 51,54 **** --- 51,55 ---- $new['top_phpbb_links'] = $mx_request_vars->post('top_phpbb_links', MX_TYPE_INT, '0'); $new['mx_use_cache'] = $mx_request_vars->post('mx_use_cache', MX_TYPE_INT, '1'); + $new['mod_rewrite'] = $mx_request_vars->post('mod_rewrite', MX_TYPE_INT, '0'); $sql = "UPDATE " . PORTAL_TABLE . " *************** *** 57,61 **** portal_phpbb_url= '" . str_replace("\'", "''", $new['portal_phpbb_url']) . "', top_phpbb_links = '" . str_replace("\'", "''", $new['top_phpbb_links']) . "', ! mx_use_cache = '" . str_replace("\'", "''", $new['mx_use_cache']) . "'"; if( !($db->sql_query($sql)) ) --- 58,63 ---- portal_phpbb_url= '" . str_replace("\'", "''", $new['portal_phpbb_url']) . "', top_phpbb_links = '" . str_replace("\'", "''", $new['top_phpbb_links']) . "', ! mx_use_cache = '" . str_replace("\'", "''", $new['mx_use_cache']) . "', ! mod_rewrite = '" . str_replace("\'", "''", $new['mod_rewrite']) . "'"; if( !($db->sql_query($sql)) ) *************** *** 64,67 **** --- 66,70 ---- } + $mx_config_cache->put( 'config', $new ); $mx_config_cache->unload(); *************** *** 80,83 **** --- 83,89 ---- $mx_use_cache_no = ( $portal_config['mx_use_cache'] == 0 ) ? 'checked="checked"' : ''; + $mx_mod_rewrite_yes = ( $portal_config['mod_rewrite'] == 1 ) ? 'checked="checked"' : ''; + $mx_mod_rewrite_no = ( $portal_config['mod_rewrite'] == 0 ) ? 'checked="checked"' : ''; + $phpbb_rel_path = substr( "$phpbb_root_path", 3 ); *************** *** 131,137 **** "L_MX_USE_CACHE" => $lang['Mx_use_cache'], "S_MX_USE_CACHE_YES" => $mx_use_cache_yes, "S_MX_USE_CACHE_NO" => $mx_use_cache_no, ! "MX_USE_CACHE" => $portal_config['mx_use_cache'] )); --- 137,150 ---- "L_MX_USE_CACHE" => $lang['Mx_use_cache'], + "L_MX_USE_CACHE_EXPLAIN" => $lang['Mx_use_cache_explain'], "S_MX_USE_CACHE_YES" => $mx_use_cache_yes, "S_MX_USE_CACHE_NO" => $mx_use_cache_no, ! "MX_USE_CACHE" => $portal_config['mx_use_cache'], ! ! "L_MX_MOD_REWRITE" => $lang['Mx_mod_rewrite'], ! "L_MX_MOD_REWRITE_EXPLAIN" => $lang['Mx_mod_rewrite_explain'], ! "S_MX_MOD_REWRITE_YES" => $mx_mod_rewrite_yes, ! "S_MX_MOD_REWRITE_NO" => $mx_mod_rewrite_no, ! "MX_MOD_REWRITE" => $portal_config['mod_rewrite'] )); |