Vergleich memberlist.php - 1.6.3 - 1.6.10

  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 5380 2011-02-21 12:04:43Z Tomm $

 * $Id$

 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'memberlist.php');


 */

define("IN_MYBB", 1);
define('THIS_SCRIPT', 'memberlist.php');


$templatelist = "memberlist,memberlist_member,memberlist_search,memberlist_user,memberlist_user_groupimage,memberlist_user_avatar";
$templatelist .= ",postbit_www,postbit_email,multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage,memberlist_referrals,memberlist_referrals_bit";

$templatelist = "memberlist,memberlist_search,memberlist_user,memberlist_user_groupimage,memberlist_user_avatar,multipage_prevpage";
$templatelist .= ",multipage_nextpage,multipage_page_current,multipage_page,multipage_start,multipage_end,multipage,memberlist_referrals,memberlist_referrals_bit";

require_once "./global.php";

// Load global language phrases

require_once "./global.php";

// Load global language phrases

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