[R45phpbbmods-checkins] user_search/admin admin_user_search.php,1.5,1.6
Brought to you by:
rasadam
|
From: Adam A. <ra...@us...> - 2004-05-03 06:37:03
|
Update of /cvsroot/r45phpbbmods/user_search/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5985/admin Modified Files: admin_user_search.php Log Message: Just commiting what's there Index: admin_user_search.php =================================================================== RCS file: /cvsroot/r45phpbbmods/user_search/admin/admin_user_search.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin_user_search.php 12 Apr 2004 09:41:08 -0000 1.5 --- admin_user_search.php 3 May 2004 06:36:24 -0000 1.6 *************** *** 89,92 **** --- 89,115 ---- 'L_DISABLED_USERS' => $lang['Disabled_users'], 'L_USERS_DISABLED_PMS' => $lang['Users_disabled_pms'], + 'L_POSTCOUNT' => $lang['Postcount'], + 'L_POSTCOUNT_EXPLAIN' => $lang['Search_users_postcount_explain'], + 'L_EQUALS' => $lang['Equals'], + 'L_GREATERTHAN' => $lang['Greater_than'], + 'L_LESSERTHAN' => $lang['Less_than'], + 'L_USERFIELD' => $lang['Userfield'], + 'L_USERFIELD_EXPLAIN' => $lang['Search_users_userfield_explain'], + 'L_ICQ' => $lang['ICQ'], + 'L_AIM' => $lang['AIM'], + 'L_YAHOO' => $lang['YIM'], + 'L_MSN' => $lang['MSNM'], + 'L_WEBSITE' => $lang['Website'], + 'L_LOCATION' => $lang['Location'], + 'L_INTERESTS' => $lang['Interests'], + 'L_OCCUPATION' => $lang['Occupation'], + 'L_LANGUAGE' => $lang['Board_lang'], + 'L_LANGUAGE_EXPLAIN' => $lang['Search_users_language_explain'], + 'L_TIMEZONE' => $lang['Timezone'], + 'L_TIMEZONE_EXPLAIN' => $lang['Search_users_timezone_explain'], + 'L_STYLE' => $lang['Board_style'], + 'L_STYLE_EXPLAIN' => $lang['Search_users_timezone_explain'], + 'L_MODERATORS_OF' => $lang['Moderators_of'], + 'L_MODERATORS_OF_EXPLAIN' => $lang['Search_users_moderators_explain'], 'L_MISC_EXPLAIN' => $lang['Search_users_misc_explain'], *************** *** 95,98 **** --- 118,125 ---- 'DAY' => date("d"), 'GROUP_LIST' => $group_list, + 'LANGUAGE_LIST' => + 'TIMEZONE_LIST' => + 'FORUMS_LIST' => + 'STYLE_LIST' => 'S_SEARCH_ACTION' => append_sid("admin_user_search.$phpEx") *************** *** 175,179 **** message_die(GENERAL_MESSAGE, $lang['Search_invalid_group']); } ! break; case 'search_misc': default: --- 202,217 ---- message_die(GENERAL_MESSAGE, $lang['Search_invalid_group']); } ! break; ! case 'search_postcount': ! $postcount_type = ( isset($HTTP_POST_VARS['postcount_type'] ) ) ? $HTTP_POST_VARS['postcount_type'] : urldecode($HTTP_GET_VARS['postcount_type']); ! $postcount_value = ( isset($HTTP_POST_VARS['postcount_value'] ) ) ? $HTTP_POST_VARS['postcount_value'] : urldecode($HTTP_GET_VARS['postcount_value']); ! ! if(!$postcount_type || !$postcount_value) ! { ! message_die(GENERAL_MESSAGE, $lang['Search_invalid_postcount']); ! } ! break; ! case 'search_miscfield': ! break; case 'search_misc': default: *************** *** 182,186 **** { message_die(GENERAL_MESSAGE, $lang['Search_invalid']); ! } } --- 220,224 ---- { message_die(GENERAL_MESSAGE, $lang['Search_invalid']); ! } } *************** *** 498,502 **** AND u.user_id <> ".ANONYMOUS; ! break; case 'search_misc': default: --- 536,622 ---- AND u.user_id <> ".ANONYMOUS; ! break; ! case 'search_postcount': ! $postcount_type = trim(strtolower($postcount_type)); ! $postcount_value = trim(strtolower($postcount_value)); ! ! $base_url .= "&search_postcount=true&postcount_type=".urlencode($postcount_type)."&postcount_value=".urlencode($postcount_value); ! ! switch($postcount_type) ! { ! case 'greater': ! $postcount_value = intval($postcount_value); ! ! $text = sprintf($lang['Search_by_postcount_greater'], $postcount_value); ! ! $total_sql .= "SELECT COUNT(user_id) AS total ! FROM ".USERS_TABLE." ! WHERE user_posts > $postcount_value ! AND user_id <> ".ANONYMOUS; ! ! $select_sql .= " WHERE u.user_posts > $postcount_value ! AND u.user_id <> ".ANONYMOUS; ! break; ! case 'lesser': ! $postcount_value = intval($postcount_value); ! ! $text = sprintf($lang['Search_by_postcount_lesser'], $postcount_value); ! ! $total_sql .= "SELECT COUNT(user_id) AS total ! FROM ".USERS_TABLE." ! WHERE user_posts < $postcount_value ! AND user_id <> ".ANONYMOUS; ! ! $select_sql .= " WHERE u.user_posts < $postcount_value ! AND u.user_id <> ".ANONYMOUS; ! break; ! case 'equals': ! // looking for a - ! if(strstr($postcount_value, '-')) ! { ! $range = preg_split('/[-\s]+/', $postcount_value); ! ! $range_begin = intval($range[0]); ! $range_end = intval($range[1]); ! ! if($range_begin < $range_end) ! { ! message_die(GENERAL_MESSAGE, $lang['Search_invalid_postcount']); ! } ! ! $text = sprintf($lang['Search_by_postcount_range'], $range_begin, $range_end); ! ! $total_sql .= "SELECT COUNT(user_id) AS total ! FROM ".USERS_TABLE." ! WHERE user_posts >= $range_begin ! AND user_posts <= $range_end ! AND user_id <> ".ANONYMOUS; ! ! $select_sql .= " WHERE u.user_posts >= $range_begin ! AND u.user_posts <= $range_end ! AND u.user_id <> ".ANONYMOUS; ! } ! else ! { ! $postcount_value = intval($postcount_value); ! ! $text = sprintf($lang['Search_by_postcount_equals'], $postcount_value); ! ! $total_sql .= "SELECT COUNT(user_id) AS total ! FROM ".USERS_TABLE." ! WHERE user_posts = $postcount_value ! AND user_id <> ".ANONYMOUS; ! ! $select_sql .= " WHERE u.user_posts = $postcount_value ! AND u.user_id <> ".ANONYMOUS; ! } ! break; ! default: ! message_die(GENERAL_MESSAGE, $lang['Search_invalid']); ! } ! ! break; ! case 'search_miscfield': ! break; case 'search_misc': default: |