Vergleich memberlist.php - 1.6.0 - 1.6.9

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 6Zeile 6
 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * Website: http://mybb.com
* License: http://mybb.com/about/license
*

 * $Id: memberlist.php 5127 2010-07-27 19:49:14Z RyanGordon $

 * $Id$

 */

define("IN_MYBB", 1);

 */

define("IN_MYBB", 1);

Zeile 114Zeile 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_query = '1=1';

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

			$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}";
}

		else if(strlen($letter) == 1)
{
$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 153Zeile 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

Zeile 183Zeile 189
	{
$search_query .= " AND u.msn LIKE '%".$db->escape_string_like($mybb->input['msn'])."%'";
$search_url .= "&msn=".urlencode($mybb->input['msn']);

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

	}


	}


	// Yahoo! Messenger address
if(trim($mybb->input['yahoo']))
{

	// Yahoo! Messenger address
if(trim($mybb->input['yahoo']))
{

Zeile 225Zeile 231
	");
while($user = $db->fetch_array($query))
{

	");
while($user = $db->fetch_array($query))
{

		$plugins->run_hooks("memberlist_user");






		$user = $plugins->run_hooks("memberlist_user", $user);
if(!$user['username'])
{
continue;
}


		$alt_bg = alt_trow();

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

		$alt_bg = alt_trow();

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