diff --git a/e107_admin/search.php b/e107_admin/search.php index 9a8f5a3dd..195319a18 100644 --- a/e107_admin/search.php +++ b/e107_admin/search.php @@ -9,8 +9,8 @@ * Search Administration * * $Source: /cvs_backup/e107_0.8/e107_admin/search.php,v $ - * $Revision: 1.3 $ - * $Date: 2008-12-16 17:23:25 $ + * $Revision: 1.4 $ + * $Date: 2008-12-21 11:39:34 $ * $Author: secretr $ * */ @@ -25,7 +25,10 @@ $e_sub_cat = 'search'; require_once('auth.php'); require_once(e_HANDLER.'userclass_class.php'); require_once(e_HANDLER."message_handler.php"); +require_once (e_HANDLER.'form_handler.php'); +$frm = new e_form(true); $emessage = &eMessage::getInstance(); +$e_userclass = new user_class(); $query = explode('.', e_QUERY); @@ -71,34 +74,27 @@ if ($save_search) } -if (isset($_POST['update_main']) || isset($_POST['update_main_com'])) +if (isset($_POST['update_main'])) { // Update all the basic handler info - if(isset($_POST['update_main'])) + foreach($search_handlers as $s_key => $s_value) { - foreach($search_handlers as $s_key => $s_value) - { - $search_prefs['core_handlers'][$s_key]['class'] = $_POST['core_handlers'][$s_key]['class']; - $search_prefs['core_handlers'][$s_key]['order'] = $_POST['core_handlers'][$s_key]['order']; - } - - foreach ($search_prefs['plug_handlers'] as $plug_dir => $active) - { - $search_prefs['plug_handlers'][$plug_dir]['class'] = $_POST['plug_handlers'][$plug_dir]['class']; - $search_prefs['plug_handlers'][$plug_dir]['order'] = $_POST['plug_handlers'][$plug_dir]['order']; - } - - $search_prefs['google'] = $_POST['google']; + $search_prefs['core_handlers'][$s_key]['class'] = $_POST['core_handlers'][$s_key]['class']; + $search_prefs['core_handlers'][$s_key]['order'] = $_POST['core_handlers'][$s_key]['order']; } - if(isset($_POST['update_main_com'])) + foreach ($search_prefs['plug_handlers'] as $plug_dir => $active) { - foreach ($search_prefs['comments_handlers'] as $key => $value) - { - $search_prefs['comments_handlers'][$key]['class'] = $_POST['comments_handlers'][$key]['class']; - } + $search_prefs['plug_handlers'][$plug_dir]['class'] = $_POST['plug_handlers'][$plug_dir]['class']; + $search_prefs['plug_handlers'][$plug_dir]['order'] = $_POST['plug_handlers'][$plug_dir]['order']; } + $search_prefs['google'] = $_POST['google']; + + foreach ($search_prefs['comments_handlers'] as $key => $value) + { + $search_prefs['comments_handlers'][$key]['class'] = $_POST['comments_handlers'][$key]['class']; + } $tmp = addslashes(serialize($search_prefs)); @@ -215,74 +211,65 @@ if ($query[0] == 'settings')
+ If your MySQL server version supports it you can switch + to the MySQL sort method which is faster than the PHP sort method. See preferences. +
++ If your site includes Ideographic languages such as Chinese and Japanese you must + use the PHP sort method and switch whole word matching off. +
+"; +$ns->tablerender($caption, $text); ?> \ No newline at end of file