Vergleich usercp.php - 1.6.12 - 1.6.18

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 254Zeile 254

$user = array(
"uid" => $mybb->user['uid'],


$user = array(
"uid" => $mybb->user['uid'],

 
		"postnum" => $mybb->user['postnum'],

		"website" => $mybb->input['website'],
"icq" => intval($mybb->input['icq']),
"aim" => $mybb->input['aim'],

		"website" => $mybb->input['website'],
"icq" => intval($mybb->input['icq']),
"aim" => $mybb->input['aim'],

Zeile 433Zeile 434
	while($profilefield = $db->fetch_array($query))
{
// Does this field have a minimum post count?

	while($profilefield = $db->fetch_array($query))
{
// Does this field have a minimum post count?

		if($profilefield['postnum'] && $profilefield['postnum'] > $user['postnum'])

		if($profilefield['postnum'] && $profilefield['postnum'] > $mybb->user['postnum'])

		{
continue;
}

		{
continue;
}

Zeile 612Zeile 613
			{
if($title['posts'] <= $mybb->user['postnum'])
{

			{
if($title['posts'] <= $mybb->user['postnum'])
{

					$defaulttitle = $title['title'];

					$defaulttitle = htmlspecialchars_uni($title['title']);

					break;
}
}
}
else
{

					break;
}
}
}
else
{

			$defaulttitle = $mybb->usergroup['usertitle'];

			$defaulttitle = htmlspecialchars_uni($mybb->usergroup['usertitle']);

		}

if(trim($user['usertitle']) == '')

		}

if(trim($user['usertitle']) == '')

Zeile 1239Zeile 1240
	");
$threadcount = $db->fetch_field($query, "threads");


	");
$threadcount = $db->fetch_field($query, "threads");


	if(!$mybb->settings['threadsperpage'])

	if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1)

	{
$mybb->settings['threadsperpage'] = 20;
}

	{
$mybb->settings['threadsperpage'] = 20;
}

Zeile 1403Zeile 1404
			if($thread['icon'] > 0 && $icon_cache[$thread['icon']])
{
$icon = $icon_cache[$thread['icon']];

			if($thread['icon'] > 0 && $icon_cache[$thread['icon']])
{
$icon = $icon_cache[$thread['icon']];

 
				$icon['path'] = htmlspecialchars_uni($icon['path']);
$icon['name'] = htmlspecialchars_uni($icon['name']);

				$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else

				$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else

Zeile 2717Zeile 2720
	{
$memberlistlink = $moderaterequestslink = '';
$memberlistlink = " [<a href=\"managegroup.php?gid=".$usergroup['gid']."\">".$lang->view_members."</a>]";

	{
$memberlistlink = $moderaterequestslink = '';
$memberlistlink = " [<a href=\"managegroup.php?gid=".$usergroup['gid']."\">".$lang->view_members."</a>]";

 
		$usergroup['title'] = htmlspecialchars_uni($usergroup['title']);

		if($usergroup['type'] != 4)
{
$usergroup['joinrequests'] = '--';

		if($usergroup['type'] != 4)
{
$usergroup['joinrequests'] = '--';

Zeile 2738Zeile 2742
	// Do the primary group first
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->user['usergroup']."'");
$usergroup = $db->fetch_array($query);

	// Do the primary group first
$query = $db->simple_select("usergroups", "*", "gid='".$mybb->user['usergroup']."'");
$usergroup = $db->fetch_array($query);

 
	$usergroup['title'] = htmlspecialchars_uni($usergroup['title']);
$usergroup['usertitle'] = htmlspecialchars_uni($usergroup['usertitle']);
$usergroup['description'] = htmlspecialchars_uni($usergroup['description']);

	$leavelink = "<div style=\"text-align:center;\"><span class=\"smalltext\">{$lang->usergroup_leave_primary}</span></div>";
$trow = alt_trow();
if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup'])

	$leavelink = "<div style=\"text-align:center;\"><span class=\"smalltext\">{$lang->usergroup_leave_primary}</span></div>";
$trow = alt_trow();
if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup'])

Zeile 2774Zeile 2781
			{
$leavelink = "<div style=\"text-align: center;\"><a href=\"usercp.php?action=usergroups&amp;leavegroup=".$usergroup['gid']."&amp;my_post_key={$mybb->post_code}\">".$lang->usergroup_leave."</a></div>";
}

			{
$leavelink = "<div style=\"text-align: center;\"><a href=\"usercp.php?action=usergroups&amp;leavegroup=".$usergroup['gid']."&amp;my_post_key={$mybb->post_code}\">".$lang->usergroup_leave."</a></div>";
}

 
			$usergroup['title'] = htmlspecialchars_uni($usergroup['title']);
$usergroup['usertitle'] = htmlspecialchars_uni($usergroup['usertitle']);

			if($usergroup['description'])
{

			if($usergroup['description'])
{

 
				$usergroup['description'] = htmlspecialchars_uni($usergroup['description']);

				$description = "<br /><span class=\"smalltext\">".$usergroup['description']."</span>";
}
else
{
$description = '';

				$description = "<br /><span class=\"smalltext\">".$usergroup['description']."</span>";
}
else
{
$description = '';

			}
if(!$usergroup['usertitle'])
{
// fetch title here

 
			}
$trow = alt_trow();
if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup'])

			}
$trow = alt_trow();
if($usergroup['candisplaygroup'] == 1 && $usergroup['gid'] == $mybb->user['displaygroup'])

Zeile 2823Zeile 2829
	while($usergroup = $db->fetch_array($query))
{
$trow = alt_trow();

	while($usergroup = $db->fetch_array($query))
{
$trow = alt_trow();

 
		$usergroup['title'] = htmlspecialchars_uni($usergroup['title']);

		if($usergroup['description'])
{

		if($usergroup['description'])
{

 
			$usergroup['description'] = htmlspecialchars_uni($usergroup['description']);

			$description = "<br /><span class=\"smallfont\">".$usergroup['description']."</span>";
}
else

			$description = "<br /><span class=\"smallfont\">".$usergroup['description']."</span>";
}
else

Zeile 2891Zeile 2899
	$attachments = '';

// Pagination

	$attachments = '';

// Pagination

	if(!$mybb->settings['threadsperpage'])

	if(!$mybb->settings['threadsperpage'] || (int)$mybb->settings['threadsperpage'] < 1)

	{
$mybb->settings['threadsperpage'] = 20;
}

	{
$mybb->settings['threadsperpage'] = 20;
}

Zeile 3054Zeile 3062
	}

$lang->posts_day = $lang->sprintf($lang->posts_day, my_number_format($perday), $percent);

	}

$lang->posts_day = $lang->sprintf($lang->posts_day, my_number_format($perday), $percent);

	$usergroup = $groupscache[$mybb->user['usergroup']]['title'];

	$usergroup = htmlspecialchars_uni($groupscache[$mybb->user['usergroup']]['title']);


$colspan = 1;
if($mybb->user['avatar'])


$colspan = 1;
if($mybb->user['avatar'])

Zeile 3286Zeile 3294
						if($thread['icon'] > 0 && $icon_cache[$thread['icon']])
{
$icon = $icon_cache[$thread['icon']];

						if($thread['icon'] > 0 && $icon_cache[$thread['icon']])
{
$icon = $icon_cache[$thread['icon']];

 
							$icon['path'] = htmlspecialchars_uni($icon['path']);
$icon['name'] = htmlspecialchars_uni($icon['name']);

							$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else

							$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else

Zeile 3465Zeile 3475
				if($thread['icon'] > 0 && $icon_cache[$thread['icon']])
{
$icon = $icon_cache[$thread['icon']];

				if($thread['icon'] > 0 && $icon_cache[$thread['icon']])
{
$icon = $icon_cache[$thread['icon']];

 
					$icon['path'] = htmlspecialchars_uni($icon['path']);
$icon['name'] = htmlspecialchars_uni($icon['name']);

					$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else

					$icon = "<img src=\"{$icon['path']}\" alt=\"{$icon['name']}\" />";
}
else