Vergleich memberlist.php - 1.8.15 - 1.8.17

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 40Zeile 40
	add_breadcrumb($lang->nav_memberlist_search);

$contact_fields = array();

	add_breadcrumb($lang->nav_memberlist_search);

$contact_fields = array();

	foreach(array('aim', 'skype', 'google', 'yahoo', 'icq') as $field)

	foreach(array('skype', 'google', 'yahoo', 'icq') as $field)

	{
$contact_fields[$field] = '';
$settingkey = 'allow'.$field.'field';

	{
$contact_fields[$field] = '';
$settingkey = 'allow'.$field.'field';

Zeile 55Zeile 55
			$bgcolors[$field] = alt_trow();
eval('$contact_fields[\''.$field.'\'] = "'.$templates->get('memberlist_search_contact_field').'";');
}

			$bgcolors[$field] = alt_trow();
eval('$contact_fields[\''.$field.'\'] = "'.$templates->get('memberlist_search_contact_field').'";');
}

 
	}

if($mybb->settings['usereferrals'] == 1)
{
eval("\$referrals_option = \"".$templates->get("memberlist_referrals_option")."\";");

	}

eval("\$search_page = \"".$templates->get("memberlist_search")."\";");

	}

eval("\$search_page = \"".$templates->get("memberlist_search")."\";");

Zeile 102Zeile 107
			$sort_field = "u.threadnum";
break;
case "referrals":

			$sort_field = "u.threadnum";
break;
case "referrals":

			$sort_field = "u.referrals";








			if($mybb->settings['usereferrals'] == 1)
{
$sort_field = "u.referrals";
}
else
{
$sort_field = "u.username";
}

			break;
default:
$sort_field = "u.username";

			break;
default:
$sort_field = "u.username";

Zeile 113Zeile 125

// Incoming sort order?
if(isset($mybb->input['order']))


// Incoming sort order?
if(isset($mybb->input['order']))

	{

	{

		$mybb->input['order'] = strtolower($mybb->input['order']);
}
else

		$mybb->input['order'] = strtolower($mybb->input['order']);
}
else

Zeile 129Zeile 141
		$oppsort = $lang->desc;
$oppsortnext = "descending";
$mybb->input['order'] = "ascending";

		$oppsort = $lang->desc;
$oppsortnext = "descending";
$mybb->input['order'] = "ascending";

	}
else

	}
else

	{
$sort_order = "DESC";
$sortordernow = "descending";

	{
$sort_order = "DESC";
$sortordernow = "descending";

Zeile 139Zeile 151
		$mybb->input['order'] = "descending";
}
$order_check[$mybb->input['order']] = " checked=\"checked\"";

		$mybb->input['order'] = "descending";
}
$order_check[$mybb->input['order']] = " checked=\"checked\"";





	// Incoming results per page?
$mybb->input['perpage'] = $mybb->get_input('perpage', MyBB::INPUT_INT);
if($mybb->input['perpage'] > 0 && $mybb->input['perpage'] <= 500)

	// Incoming results per page?
$mybb->input['perpage'] = $mybb->get_input('perpage', MyBB::INPUT_INT);
if($mybb->input['perpage'] > 0 && $mybb->input['perpage'] <= 500)

Zeile 166Zeile 178
			break;
default:
$like = "LIKE";

			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 175Zeile 187
		if($mybb->input['letter'] == -1)
{
$search_query .= " AND u.username NOT REGEXP('[a-zA-Z]')";

		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 {$like} '".$db->escape_string_like($letter)."%'";

		else if(strlen($letter) == 1)
{
$search_query .= " AND u.username {$like} '".$db->escape_string_like($letter)."%'";

Zeile 202Zeile 214
		}

$search_url .= "&username=".urlencode($search_username);

		}

$search_url .= "&username=".urlencode($search_username);

	}

	}


// Website contains
$mybb->input['website'] = trim($mybb->get_input('website'));


// Website contains
$mybb->input['website'] = trim($mybb->get_input('website'));

Zeile 214Zeile 226
	}

// Search by contact field input

	}

// Search by contact field input

	foreach(array('aim', 'icq', 'google', 'skype', 'yahoo') as $cfield)

	foreach(array('icq', 'google', 'skype', 'yahoo') as $cfield)

	{
$csetting = 'allow'.$cfield.'field';
$mybb->input[$cfield] = trim($mybb->get_input($cfield));

	{
$csetting = 'allow'.$cfield.'field';
$mybb->input[$cfield] = trim($mybb->get_input($cfield));

Zeile 346Zeile 358
		$user['profilelink'] = build_profile_link($user['username'], $user['uid']);

// Get the display usergroup

		$user['profilelink'] = build_profile_link($user['username'], $user['uid']);

// Get the display usergroup

		if(empty($user['displaygroup']))












		if($user['usergroup'])
{
$usergroup = usergroup_permissions($user['usergroup']);
}
else
{
$usergroup = usergroup_permissions(1);
}

$displaygroupfields = array("title", "description", "namestyle", "usertitle", "stars", "starimage", "image");

if(!$user['displaygroup'])

		{
$user['displaygroup'] = $user['usergroup'];
}

		{
$user['displaygroup'] = $user['usergroup'];
}

		$usergroup = $usergroups_cache[$user['displaygroup']];







$display_group = usergroup_displaygroup($user['displaygroup']);
if(is_array($display_group))
{
$usergroup = array_merge($usergroup, $display_group);
}


// Build referral?
if($mybb->settings['usereferrals'] == 1)
{
eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";");


// Build referral?
if($mybb->settings['usereferrals'] == 1)
{
eval("\$referral_bit = \"".$templates->get("memberlist_referrals_bit")."\";");

 
			eval("\$referrals_option = \"".$templates->get("memberlist_referrals_option")."\";");

		}

$usergroup['groupimage'] = '';

		}

$usergroup['groupimage'] = '';