Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: memberlist.php 5127 2010-07-27 19:49:14Z RyanGordon $
| * $Id$
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'memberlist.php');
|
*/
define("IN_MYBB", 1); define('THIS_SCRIPT', 'memberlist.php');
|
$templatelist = "memberlist,memberlist_member,memberlist_search,memberlist_user,memberlist_user_groupimage,memberlist_user_avatar"; $templatelist .= ",postbit_www,postbit_email,multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage,memberlist_referrals,memberlist_referrals_bit";
| $templatelist = "memberlist,memberlist_search,memberlist_user,memberlist_user_groupimage,memberlist_user_avatar,multipage_prevpage"; $templatelist .= ",multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage,memberlist_referrals,memberlist_referrals_bit";
|
require_once "./global.php";
// Load global language phrases
| require_once "./global.php";
// Load global language phrases
|
Zeile 114 | Zeile 114 |
---|
{ $per_page = $mybb->input['perpage']; }
|
{ $per_page = $mybb->input['perpage']; }
|
else {
| else if($mybb->settings['membersperpage']) {
|
$per_page = $mybb->input['perpage'] = intval($mybb->settings['membersperpage']);
|
$per_page = $mybb->input['perpage'] = intval($mybb->settings['membersperpage']);
|
| } else { $per_page = $mybb->input['perpage'] = 20;
|
} $search_query = '1=1';
| } $search_query = '1=1';
|
Zeile 127 | Zeile 131 |
---|
{ $letter = chr(ord($mybb->input['letter'])); if($mybb->input['letter'] == -1)
|
{ $letter = chr(ord($mybb->input['letter'])); if($mybb->input['letter'] == -1)
|
{
| {
|
$search_query .= " AND u.username NOT REGEXP('[a-zA-Z]')";
|
$search_query .= " AND u.username NOT REGEXP('[a-zA-Z]')";
|
}
| }
|
else if(strlen($letter) == 1) { $search_query .= " AND u.username LIKE '".$db->escape_string($letter)."%'"; } $search_url .= "&letter={$letter}"; }
|
else if(strlen($letter) == 1) { $search_query .= " AND u.username LIKE '".$db->escape_string($letter)."%'"; } $search_url .= "&letter={$letter}"; }
|
|
|
// Searching for a matching username
|
// Searching for a matching username
|
$search_username = htmlspecialchars_uni($mybb->input['username']); if(trim($mybb->input['username']))
| $search_username = htmlspecialchars_uni(trim($mybb->input['username'])); if($search_username != '')
|
{
|
{
|
$username_like_query = $db->escape_string_like($mybb->input['username']);
| $username_like_query = $db->escape_string_like($search_username);
|
// Name begins with if($mybb->input['username_match'] == "begins") {
| // Name begins with if($mybb->input['username_match'] == "begins") {
|
Zeile 153 | Zeile 158 |
---|
{ $search_query .= " AND u.username LIKE '%".$username_like_query."%'"; }
|
{ $search_query .= " AND u.username LIKE '%".$username_like_query."%'"; }
|
$search_url .= "&username=".urlencode($mybb->input['username']);
| $search_url .= "&username=".urlencode($search_username);
|
}
// Website contains
| }
// Website contains
|
Zeile 183 | Zeile 189 |
---|
{ $search_query .= " AND u.msn LIKE '%".$db->escape_string_like($mybb->input['msn'])."%'"; $search_url .= "&msn=".urlencode($mybb->input['msn']);
|
{ $search_query .= " AND u.msn LIKE '%".$db->escape_string_like($mybb->input['msn'])."%'"; $search_url .= "&msn=".urlencode($mybb->input['msn']);
|
}
| }
|
// Yahoo! Messenger address if(trim($mybb->input['yahoo'])) {
| // Yahoo! Messenger address if(trim($mybb->input['yahoo'])) {
|
Zeile 225 | Zeile 231 |
---|
"); while($user = $db->fetch_array($query)) {
|
"); while($user = $db->fetch_array($query)) {
|
$plugins->run_hooks("memberlist_user");
| $user = $plugins->run_hooks("memberlist_user", $user); if(!$user['username']) { continue; }
|
$alt_bg = alt_trow();
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
| $alt_bg = alt_trow();
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
|