Vergleich memberlist.php - 1.8.19 - 1.8.22

  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('skype', 'google', 'yahoo', 'icq') as $field)

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

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

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

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

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

 

if($sort_field == 'u.lastactive' && $mybb->usergroup['canviewwolinvis'] == 0)
{
$sort_field = "u.invisible ASC, CASE WHEN u.invisible = 1 THEN u.regdate ELSE u.lastactive END";
}


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


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

Zeile 208Zeile 213
			$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 226Zeile 237
	}

// Search by contact field input

	}

// Search by contact field input

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

	foreach(array('icq', 'google', 'skype') 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 356Zeile 367
	while($user = $db->fetch_array($query))
{
$user = $plugins->run_hooks("memberlist_user", $user);

	while($user = $db->fetch_array($query))
{
$user = $plugins->run_hooks("memberlist_user", $user);





		$alt_bg = alt_trow();

$user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);

		$alt_bg = alt_trow();

$user['username'] = format_name(htmlspecialchars_uni($user['username']), $user['usergroup'], $user['displaygroup']);





		$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

Zeile 371Zeile 382
		else
{
$usergroup = usergroup_permissions(1);

		else
{
$usergroup = usergroup_permissions(1);

		}


		}


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

if(!$user['displaygroup'])

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

if(!$user['displaygroup'])

		{

		{

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


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


Zeile 389Zeile 400
		// 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")."\";");
}

Zeile 438Zeile 456
		}

$user['usertitle'] = htmlspecialchars_uni($user['usertitle']);

		}

$user['usertitle'] = htmlspecialchars_uni($user['usertitle']);





		if(!empty($usergroup['stars']))
{
$user['stars'] = $usergroup['stars'];

		if(!empty($usergroup['stars']))
{
$user['stars'] = $usergroup['stars'];

		}


		}


		if(empty($user['starimage']))
{
$user['starimage'] = $usergroup['starimage'];

		if(empty($user['starimage']))
{
$user['starimage'] = $usergroup['starimage'];

		}


		}


		$user['userstars'] = '';
if(!empty($user['starimage']))
{

		$user['userstars'] = '';
if(!empty($user['starimage']))
{

Zeile 458Zeile 476
			for($i = 0; $i < $user['stars']; ++$i)
{
eval("\$user['userstars'] .= \"".$templates->get("memberlist_user_userstar", 1, 0)."\";");

			for($i = 0; $i < $user['stars']; ++$i)
{
eval("\$user['userstars'] .= \"".$templates->get("memberlist_user_userstar", 1, 0)."\";");

			}

			}

		}

if($user['userstars'] && $usergroup['groupimage'])

		}

if($user['userstars'] && $usergroup['groupimage'])

Zeile 470Zeile 488
		$useravatar = format_avatar($user['avatar'], $user['avatardimensions'], my_strtolower($mybb->settings['memberlistmaxavatarsize']));
eval("\$user['avatar'] = \"".$templates->get("memberlist_user_avatar")."\";");


		$useravatar = format_avatar($user['avatar'], $user['avatardimensions'], my_strtolower($mybb->settings['memberlistmaxavatarsize']));
eval("\$user['avatar'] = \"".$templates->get("memberlist_user_avatar")."\";");


		if($user['invisible'] == 1 && $mybb->usergroup['canviewwolinvis'] != 1 && $user['uid'] != $mybb->user['uid'])


		$last_seen = max(array($user['lastactive'], $user['lastvisit']));
if(empty($last_seen))

		{
$user['lastvisit'] = $lang->lastvisit_never;

		{
$user['lastvisit'] = $lang->lastvisit_never;


if($user['lastvisit'])
{
// We have had at least some active time, hide it instead
$user['lastvisit'] = $lang->lastvisit_hidden;
}

 
		}
else
{

		}
else
{

			$user['lastvisit'] = my_date('relative', $user['lastactive']);









			// We have some stamp here
if($user['invisible'] == 1 && $mybb->usergroup['canviewwolinvis'] != 1 && $user['uid'] != $mybb->user['uid'])
{
$user['lastvisit'] = $lang->lastvisit_hidden;
}
else
{
$user['lastvisit'] = my_date('relative', $last_seen);
}

		}

$user['regdate'] = my_date('relative', $user['regdate']);

		}

$user['regdate'] = my_date('relative', $user['regdate']);