Vergleich memberlist.php - 1.8.21 - 1.8.26

  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);
if($mybb->input['perpage'] > 0 && $mybb->input['perpage'] <= 500)
{
$per_page = $mybb->input['perpage'];


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

	}

	}

	else if($mybb->settings['membersperpage'])
{
$per_page = $mybb->input['perpage'] = (int)$mybb->settings['membersperpage'];

	else if($mybb->settings['membersperpage'])
{
$per_page = $mybb->input['perpage'] = (int)$mybb->settings['membersperpage'];

Zeile 193Zeile 198
			$search_query .= " AND u.username {$like} '".$db->escape_string_like($letter)."%'";
}
$search_url .= "&letter={$letter}";

			$search_query .= " AND u.username {$like} '".$db->escape_string_like($letter)."%'";
}
$search_url .= "&letter={$letter}";

	}


	}


	// Searching for a matching username
$search_username = htmlspecialchars_uni(trim($mybb->get_input('username')));
if($search_username != '')
{
$username_like_query = $db->escape_string_like($search_username);

	// Searching for a matching username
$search_username = htmlspecialchars_uni(trim($mybb->get_input('username')));
if($search_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 220Zeile 225
		}

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

		}

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

	}


	}


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

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

	{

	{

		$search_query .= " AND u.website {$like} '%".$db->escape_string_like($mybb->input['website'])."%'";
$search_url .= "&website=".urlencode($mybb->input['website']);
}

// Search by contact field input

		$search_query .= " AND u.website {$like} '%".$db->escape_string_like($mybb->input['website'])."%'";
$search_url .= "&website=".urlencode($mybb->input['website']);
}

// 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));
if($mybb->input[$cfield] && $mybb->settings[$csetting] != '')

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

		{

		{

			if($mybb->settings[$csetting] != -1)
{
$gids = explode(',', (string)$mybb->settings[$csetting]);

			if($mybb->settings[$csetting] != -1)
{
$gids = explode(',', (string)$mybb->settings[$csetting]);

Zeile 280Zeile 285
	foreach($usergroups_cache as $gid => $groupcache)
{
if($groupcache['showmemberlist'] == 0)

	foreach($usergroups_cache as $gid => $groupcache)
{
if($groupcache['showmemberlist'] == 0)

		{

		{

			$group[] = (int)$gid;
}
}

			$group[] = (int)$gid;
}
}

Zeile 364Zeile 369
		$user = $plugins->run_hooks("memberlist_user", $user);

$alt_bg = alt_trow();

		$user = $plugins->run_hooks("memberlist_user", $user);

$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']);

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

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

Zeile 483Zeile 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']);