Zeile 11 | Zeile 11 |
---|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'memberlist.php');
|
define("IN_MYBB", 1); define('THIS_SCRIPT', 'memberlist.php');
|
$templatelist = "memberlist,memberlist_search,memberlist_user,memberlist_user_groupimage,memberlist_user_avatar,memberlist_user_userstar"; $templatelist .= ",multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,memberlist_referrals,memberlist_referrals_bit,memberlist_error,memberlist_orderarrow";
| $templatelist = "memberlist,memberlist_search,memberlist_user,memberlist_user_groupimage,memberlist_user_avatar,memberlist_user_userstar,memberlist_search_contact_field,memberlist_referrals,memberlist_referrals_bit"; $templatelist .= ",multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start,memberlist_error,memberlist_orderarrow";
|
require_once "./global.php";
| require_once "./global.php";
|
Zeile 38 | Zeile 38 |
---|
{ $plugins->run_hooks("memberlist_search"); add_breadcrumb($lang->nav_memberlist_search);
|
{ $plugins->run_hooks("memberlist_search"); add_breadcrumb($lang->nav_memberlist_search);
|
| $contact_fields = array(); foreach(array('aim', 'skype', 'google', 'yahoo', 'icq') as $field) { $contact_fields[$field] = ''; $settingkey = 'allow'.$field.'field';
if($mybb->settings[$settingkey] != '' && is_member($mybb->settings[$settingkey], array('usergroup' => $mybb->usergroup['usergroup'], 'additionalgroups' => $mybb->usergroup['additionalgroups']))) { $tmpl = 'memberlist_search_'.$field;
$lang_string = 'search_'.$field; $lang_string = $lang->{$lang_string};
$bgcolors[$field] = alt_trow(); eval('$contact_fields[\''.$field.'\'] = "'.$templates->get('memberlist_search_contact_field').'";'); } }
|
eval("\$search_page = \"".$templates->get("memberlist_search")."\";"); output_page($search_page); }
| eval("\$search_page = \"".$templates->get("memberlist_search")."\";"); output_page($search_page); }
|
Zeile 50 | Zeile 69 |
---|
if(isset($mybb->input['sort'])) { $mybb->input['sort'] = strtolower($mybb->get_input('sort'));
|
if(isset($mybb->input['sort'])) { $mybb->input['sort'] = strtolower($mybb->get_input('sort'));
|
}
| }
|
else { $mybb->input['sort'] = $mybb->settings['default_memberlist_sortby'];
| else { $mybb->input['sort'] = $mybb->settings['default_memberlist_sortby'];
|
Zeile 75 | Zeile 94 |
---|
break; case "reputation": $sort_field = "u.reputation";
|
break; case "reputation": $sort_field = "u.reputation";
|
break;
| break;
|
case "postnum": $sort_field = "u.postnum"; break;
| case "postnum": $sort_field = "u.postnum"; break;
|
Zeile 100 | Zeile 119 |
---|
else { $mybb->input['order'] = strtolower($mybb->settings['default_memberlist_order']);
|
else { $mybb->input['order'] = strtolower($mybb->settings['default_memberlist_order']);
|
}
| }
|
$order_check = array('ascending' => '', 'descending' => ''); if($mybb->input['order'] == "ascending" || (!$mybb->input['order'] && $mybb->input['sort'] == 'username'))
|
$order_check = array('ascending' => '', 'descending' => ''); if($mybb->input['order'] == "ascending" || (!$mybb->input['order'] && $mybb->input['sort'] == 'username'))
|
{
| {
|
$sort_order = "ASC"; $sortordernow = "ascending"; $oppsort = $lang->desc; $oppsortnext = "descending"; $mybb->input['order'] = "ascending";
|
$sort_order = "ASC"; $sortordernow = "ascending"; $oppsort = $lang->desc; $oppsortnext = "descending"; $mybb->input['order'] = "ascending";
|
} else {
| } else {
|
$sort_order = "DESC"; $sortordernow = "descending"; $oppsort = $lang->asc;
| $sort_order = "DESC"; $sortordernow = "descending"; $oppsort = $lang->asc;
|
Zeile 138 | Zeile 157 |
---|
$search_query = '1=1'; $search_url = "";
|
$search_query = '1=1'; $search_url = "";
|
| switch($db->type) { // PostgreSQL's LIKE is case sensitive case "pgsql": $like = "ILIKE"; break; default: $like = "LIKE"; }
|
// Limiting results to a certain letter if(isset($mybb->input['letter']))
| // Limiting results to a certain letter if(isset($mybb->input['letter']))
|
Zeile 149 | Zeile 178 |
---|
} else if(strlen($letter) == 1) {
|
} else if(strlen($letter) == 1) {
|
$search_query .= " AND u.username LIKE '".$db->escape_string_like($letter)."%'";
| $search_query .= " AND u.username {$like} '".$db->escape_string_like($letter)."%'";
|
} $search_url .= "&letter={$letter}"; }
| } $search_url .= "&letter={$letter}"; }
|
Zeile 163 | Zeile 192 |
---|
// Name begins with if($mybb->input['username_match'] == "begins") {
|
// Name begins with if($mybb->input['username_match'] == "begins") {
|
$search_query .= " AND u.username LIKE '".$username_like_query."%'";
| $search_query .= " AND u.username {$like} '".$username_like_query."%'";
|
$search_url .= "&username_match=begins"; } // Just contains else {
|
$search_url .= "&username_match=begins"; } // Just contains else {
|
$search_query .= " AND u.username LIKE '%".$username_like_query."%'";
| $search_query .= " AND u.username {$like} '%".$username_like_query."%'";
|
}
$search_url .= "&username=".urlencode($search_username);
| }
$search_url .= "&username=".urlencode($search_username);
|
Zeile 180 | Zeile 209 |
---|
$search_website = htmlspecialchars_uni($mybb->input['website']); if(trim($mybb->input['website'])) {
|
$search_website = htmlspecialchars_uni($mybb->input['website']); if(trim($mybb->input['website'])) {
|
$search_query .= " AND u.website LIKE '%".$db->escape_string_like($mybb->input['website'])."%'";
| $search_query .= " AND u.website {$like} '%".$db->escape_string_like($mybb->input['website'])."%'";
|
$search_url .= "&website=".urlencode($mybb->input['website']); }
| $search_url .= "&website=".urlencode($mybb->input['website']); }
|
Zeile 221 | Zeile 250 |
---|
} else {
|
} else {
|
$search_query .= " AND u.{$cfield} LIKE '%".$db->escape_string_like($mybb->input[$cfield])."%'";
| $search_query .= " AND u.{$cfield} {$like} '%".$db->escape_string_like($mybb->input[$cfield])."%'";
|
} $search_url .= "&{$cfield}=".urlencode($mybb->input[$cfield]); }
| } $search_url .= "&{$cfield}=".urlencode($mybb->input[$cfield]); }
|
Zeile 312 | Zeile 341 |
---|
$alt_bg = alt_trow();
|
$alt_bg = alt_trow();
|
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
| $user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);
|
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
| $user['profilelink'] = build_profile_link($user['username'], $user['uid']);
|