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 5380 2011-02-21 12:04:43Z Tomm $
| * $Id: memberlist.php 5406 2011-03-20 01:01:18Z jammerx2 $
|
*/
define("IN_MYBB", 1);
| */
define("IN_MYBB", 1);
|
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_url = "memberlist.php?sort={$mybb->input['sort']}&order={$mybb->input['order']}&perpage={$mybb->input['perpage']}";
| $search_query = '1=1'; $search_url = "memberlist.php?sort={$mybb->input['sort']}&order={$mybb->input['order']}&perpage={$mybb->input['perpage']}";
|
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]')"; } else if(strlen($letter) == 1)
|
$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}"; }
|
$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
|