"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Upload/memberlist.php" between
mybb_1819.zip and mybb_1820.zip

About: MyBB is a multilingual, standards-compliant and free forum (discussion board) software.

memberlist.php  (mybb_1819):memberlist.php  (mybb_1820)
skipping to change at line 211 skipping to change at line 211
{ {
$username_like_query = $db->escape_string_like($search_username); $username_like_query = $db->escape_string_like($search_username);
// Name begins with // Name begins with
if($mybb->input['username_match'] == "begins") if($mybb->input['username_match'] == "begins")
{ {
$search_query .= " AND u.username {$like} '".$username_li ke_query."%'"; $search_query .= " AND u.username {$like} '".$username_li ke_query."%'";
$search_url .= "&username_match=begins"; $search_url .= "&username_match=begins";
} }
// Just contains // Just contains
else else if($mybb->input['username_match'] == "contains")
{ {
$search_query .= " AND u.username {$like} '%".$username_l ike_query."%'"; $search_query .= " AND u.username {$like} '%".$username_l ike_query."%'";
$search_url .= "&username_match=contains";
}
// Exact
else
{
$search_query .= " AND u.username='{$username_like_query}
'";
} }
$search_url .= "&username=".urlencode($search_username); $search_url .= "&username=".urlencode($search_username);
} }
// Website contains // Website contains
$mybb->input['website'] = trim($mybb->get_input('website')); $mybb->input['website'] = trim($mybb->get_input('website'));
$search_website = htmlspecialchars_uni($mybb->input['website']); $search_website = htmlspecialchars_uni($mybb->input['website']);
if(trim($mybb->input['website'])) if(trim($mybb->input['website']))
{ {
skipping to change at line 392 skipping to change at line 398
$display_group = usergroup_displaygroup($user['displaygroup']); $display_group = usergroup_displaygroup($user['displaygroup']);
if(is_array($display_group)) if(is_array($display_group))
{ {
$usergroup = array_merge($usergroup, $display_group); $usergroup = array_merge($usergroup, $display_group);
} }
// Build referral? // Build referral?
if($mybb->settings['usereferrals'] == 1) 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_re ferrals_bit")."\";"); eval("\$referral_bit = \"".$templates->get("memberlist_re ferrals_bit")."\";");
eval("\$referrals_option = \"".$templates->get("memberlis t_referrals_option")."\";"); eval("\$referrals_option = \"".$templates->get("memberlis t_referrals_option")."\";");
} }
$usergroup['groupimage'] = ''; $usergroup['groupimage'] = '';
// Work out the usergroup/title stuff // Work out the usergroup/title stuff
if(!empty($usergroup['image'])) if(!empty($usergroup['image']))
{ {
if(!empty($mybb->user['language'])) if(!empty($mybb->user['language']))
{ {
 End of changes. 3 change blocks. 
1 lines changed or deleted 16 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)