Zeile 208 | Zeile 208 |
---|
$search_url .= "&username_match=begins"; } // Just contains
|
$search_url .= "&username_match=begins"; } // Just contains
|
| else if($mybb->input['username_match'] == "contains") { $search_query .= " AND u.username {$like} '%".$username_like_query."%'"; $search_url .= "&username_match=contains"; } // Exact
|
else {
|
else {
|
$search_query .= " AND u.username {$like} '%".$username_like_query."%'";
| $search_query .= " AND u.username='{$username_like_query}'";
|
}
$search_url .= "&username=".urlencode($search_username);
| }
$search_url .= "&username=".urlencode($search_username);
|
Zeile 292 | Zeile 298 |
---|
case "pgsql": case "sqlite": $search_query .= " AND ','||u.additionalgroups||',' NOT LIKE '%,{$hidegid},%'";
|
case "pgsql": case "sqlite": $search_query .= " AND ','||u.additionalgroups||',' NOT LIKE '%,{$hidegid},%'";
|
break;
| break;
|
default: $search_query .= " AND CONCAT(',',u.additionalgroups,',') NOT LIKE '%,{$hidegid},%'"; break; }
|
default: $search_query .= " AND CONCAT(',',u.additionalgroups,',') NOT LIKE '%,{$hidegid},%'"; break; }
|
}
| }
|
} $sorturl = htmlspecialchars_uni("memberlist.php?perpage={$mybb->input['perpage']}{$search_url}"); $search_url = htmlspecialchars_uni("memberlist.php?sort={$mybb->input['sort']}&order={$mybb->input['order']}&perpage={$mybb->input['perpage']}{$search_url}");
|
} $sorturl = htmlspecialchars_uni("memberlist.php?perpage={$mybb->input['perpage']}{$search_url}"); $search_url = htmlspecialchars_uni("memberlist.php?sort={$mybb->input['sort']}&order={$mybb->input['order']}&perpage={$mybb->input['perpage']}{$search_url}");
|
$plugins->run_hooks('memberlist_intermediate');
| $plugins->run_hooks('memberlist_intermediate');
|
$query = $db->simple_select("users u", "COUNT(*) AS users", "{$search_query}"); $num_users = $db->fetch_field($query, "users");
| $query = $db->simple_select("users u", "COUNT(*) AS users", "{$search_query}"); $num_users = $db->fetch_field($query, "users");
|
Zeile 312 | Zeile 318 |
---|
if($page && $page > 0) { $start = ($page - 1) * $per_page;
|
if($page && $page > 0) { $start = ($page - 1) * $per_page;
|
| $pages = ceil($num_users / $per_page); if($page > $pages) { $start = 0; $page = 1; }
|
} else {
| } else {
|
Zeile 368 | Zeile 380 |
---|
}
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
|
}
$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");
|
| if(!$user['displaygroup']) { $user['displaygroup'] = $user['usergroup']; }
|
$display_group = usergroup_displaygroup($user['displaygroup']); if(is_array($display_group))
|
$display_group = usergroup_displaygroup($user['displaygroup']); if(is_array($display_group))
|
{
| {
|
$usergroup = array_merge($usergroup, $display_group); }
|
$usergroup = array_merge($usergroup, $display_group); }
|
|
|
// Build referral? if($mybb->settings['usereferrals'] == 1) {
|
// Build referral? if($mybb->settings['usereferrals'] == 1) {
|
| $referral_count = (int) $user['referrals']; if($referral_count > 0) { $uid = (int) $user['uid']; eval("\$user['referrals'] = \"".$templates->get('member_referrals_link')."\";"); }
|
eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";"); eval("\$referrals_option = \"".$templates->get("memberlist_referrals_option")."\";"); }
| eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";"); eval("\$referrals_option = \"".$templates->get("memberlist_referrals_option")."\";"); }
|