// $multibyte_charset = 'big5, shift_jis, euc-kr, gb2312'; // // Begin core code // if ($mode == 'searchuser') { // // This handles the simple windowed user search functions called from various other scripts // if (isset($_POST['search_username'])) { if (false === strpos($_POST['search_username'], '*')) { $_POST['search_username'] = '******' . $_POST['search_username'] . '*'; } username_search($_POST['search_username']); } else { username_search(''); } exit; } else { if ($search_keywords != '' || $search_author != '' || $search_id) { $store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'sort_dir', 'show_results', 'return_chars'); $search_results = ''; $split_search = array(); $total_match_count = 0; // // Search ID Limiter, decrease this value if you experience further timeout problems with searching forums $limiter = 5000; // // Cycle through options ... // if ($search_id == 'newposts' || $search_id == 'egosearch' || $search_id == 'unanswered' || $search_keywords != '' || $search_author != '') {
// // This handles the simple windowed user search functions called from various other scripts // if (isset($HTTP_POST_VARS['search_username'])) { //-- mod : avanced privmsg ------------------------------------------------------------------------- // here we added // , intval($HTTP_GET_VARS['multi']) //-- modify username_search($HTTP_POST_VARS['search_username'], intval($HTTP_GET_VARS['multi'])); //-- fin mod : avanced privmsg --------------------------------------------------------------------- } else { //-- mod : avanced privmsg ------------------------------------------------------------------------- // here we added // , intval($HTTP_GET_VARS['multi']) //-- modify username_search('', intval($HTTP_GET_VARS['multi'])); //-- fin mod : avanced privmsg --------------------------------------------------------------------- } exit; } else { if ($search_keywords != '' || $search_author != '' || $search_id) { $store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'sort_dir', 'show_results', 'return_chars'); $search_results = ''; // // Search ID Limiter, decrease this value if you experience further timeout problems with searching forums $limiter = 5000; // // Cycle through options ... // if ($search_id == 'newposts' || $search_id == 'egosearch' || $search_id == 'unanswered' || $search_keywords != '' || $search_author != '') { if ($search_id == 'newposts' || $search_id == 'egosearch' || $search_author != '' && $search_keywords == '') {
if ($user->data['session_logged_in']) { remove_bookmark($topic_list); redirect(append_sid(CMS_PAGE_SEARCH . '?search_id=bookmarks&search_mode=bookmarks' . (!empty($start) ? ('&start=' . $start) : ''), true)); } } // Reset settings $mode = ''; } if ($mode == 'searchuser') { // This handles the simple windowed user search functions called from various other scripts $search_username = request_var('search_username', '', true); $search_username = htmlspecialchars_decode($search_username, ENT_COMPAT); username_search($search_username); exit; } elseif (($search_keywords != '') || ($search_author != '') || $search_id || ($search_ip != '') || ($search_thanks != false)) { $store_vars = array('search_results', 'total_match_count', 'split_search', 'sort_by', 'psort', 'sort_dir', 'show_results', 'return_chars'); $search_results = ''; // Search ID Limiter, decrease this value if you experience further timeout problems with searching forums $limiter = 5000; $current_time = time(); // Cycle through options ... $search_id_filter_array = array('newposts', 'upi2db', 'egosearch', 'unanswered', 'bookmarks', 'mini_cal', 'mini_cal_events'); if (in_array($search_id, $search_id_filter_array) || ($search_keywords != '') || ($search_author != '') || ($search_ip != '') || ($search_thanks != false)) {
DB()->query("UPDATE " . BB_POSTS . " SET user_post = 1 WHERE poster_id = {$user->id}"); redirect("search.php?u={$user->id}"); } } // // Define censored word matches // $orig_word = $replacement_word = array(); obtain_word_list($orig_word, $replacement_word); $tracking_topics = get_tracks('topic'); $tracking_forums = get_tracks('forum'); if ($mode =& $_REQUEST['mode']) { // This handles the simple windowed user search functions called from various other scripts if ($mode == 'searchuser') { $username = isset($_POST['search_username']) ? $_POST['search_username'] : ''; username_search($username); exit; } } $excluded_forums_csv = $user->get_excluded_forums(AUTH_READ); $search_limit = 500; $forum_select_size = 16; // forum select box max rows $max_forum_name_len = 60; // inside forum select box $text_match_max_len = 60; $poster_name_max_len = 25; $start = isset($_REQUEST['start']) ? abs(intval($_REQUEST['start'])) : 0; $url = basename(__FILE__); $anon_id = GUEST_UID; $user_id = $userdata['user_id'];