Vergleich usercp.php - 1.8.27 - 1.8.38

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

usercp_menu();



usercp_menu();


$server_http_referer = htmlentities($_SERVER['HTTP_REFERER']);

if(my_strpos($server_http_referer, $mybb->settings['bburl'].'/') !== 0)

$server_http_referer = '';
if(isset($_SERVER['HTTP_REFERER']))


{

{

	if(my_strpos($server_http_referer, '/') === 0)



	$server_http_referer = htmlentities($_SERVER['HTTP_REFERER']);

if(my_strpos($server_http_referer, $mybb->settings['bburl'].'/') !== 0)

	{

	{

		$server_http_referer = my_substr($server_http_referer, 1);






		if(my_strpos($server_http_referer, '/') === 0)
{
$server_http_referer = my_substr($server_http_referer, 1);
}
$url_segments = explode('/', $server_http_referer);
$server_http_referer = $mybb->settings['bburl'].'/'.end($url_segments);

	}

	}

	$url_segments = explode('/', $server_http_referer);
$server_http_referer = $mybb->settings['bburl'].'/'.end($url_segments);

 
}

$plugins->run_hooks("usercp_start");

}

$plugins->run_hooks("usercp_start");

Zeile 224Zeile 228
		"away" => $away,
"profile_fields" => $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY)
));

		"away" => $away,
"profile_fields" => $mybb->get_input('profile_fields', MyBB::INPUT_ARRAY)
));

	foreach(array('icq', 'skype', 'google') as $cfield)
{
$csetting = 'allow'.$cfield.'field';

	foreach(array('icq', 'skype', 'google') as $cfield)
{
$csetting = 'allow'.$cfield.'field';

		if($mybb->settings[$csetting] == '')
{
continue;
}

if(!is_member($mybb->settings[$csetting]))

		if($mybb->settings[$csetting] == '')
{
continue;
}

if(!is_member($mybb->settings[$csetting]))

		{

		{

			continue;
}

if($cfield == 'icq')
{
$user[$cfield] = $mybb->get_input($cfield, 1);

			continue;
}

if($cfield == 'icq')
{
$user[$cfield] = $mybb->get_input($cfield, 1);





			if(my_strlen($user[$cfield]) > 10)
{
error($lang->contact_field_icqerror);
}
}
else

			if(my_strlen($user[$cfield]) > 10)
{
error($lang->contact_field_icqerror);
}
}
else

		{

		{

			$user[$cfield] = $mybb->get_input($cfield);

if(my_strlen($user[$cfield]) > 75)
{
error($lang->contact_field_error);
}

			$user[$cfield] = $mybb->get_input($cfield);

if(my_strlen($user[$cfield]) > 75)
{
error($lang->contact_field_error);
}

		}
}


		}
}


	if($mybb->usergroup['canchangewebsite'] == 1)
{
$user['website'] = $mybb->get_input('website');

	if($mybb->usergroup['canchangewebsite'] == 1)
{
$user['website'] = $mybb->get_input('website');

	}


	}


	if($mybb->usergroup['cancustomtitle'] == 1)
{
if($mybb->get_input('usertitle') != '')

	if($mybb->usergroup['cancustomtitle'] == 1)
{
if($mybb->get_input('usertitle') != '')

Zeile 282Zeile 286

// Set to stored value if invalid
if(array_key_exists("invalid_birthday_privacy", $raw_errors) || array_key_exists("conflicted_birthday_privacy", $raw_errors))


// Set to stored value if invalid
if(array_key_exists("invalid_birthday_privacy", $raw_errors) || array_key_exists("conflicted_birthday_privacy", $raw_errors))

		{

		{

			$mybb->input['birthdayprivacy'] = $mybb->user['birthdayprivacy'];
$bday = explode("-", $mybb->user['birthday']);


			$mybb->input['birthdayprivacy'] = $mybb->user['birthdayprivacy'];
$bday = explode("-", $mybb->user['birthday']);


Zeile 294Zeile 298

$errors = inline_error($errors);
$mybb->input['action'] = "profile";


$errors = inline_error($errors);
$mybb->input['action'] = "profile";

	}
else

	}
else

	{
$userhandler->update_user();


	{
$userhandler->update_user();


Zeile 315Zeile 319
		$bday[2] = $mybb->get_input('bday3', MyBB::INPUT_INT);
}
else

		$bday[2] = $mybb->get_input('bday3', MyBB::INPUT_INT);
}
else

	{

	{

		$user = $mybb->user;
$bday = explode("-", $user['birthday']);
if(!isset($bday[1]))
{
$bday[1] = 0;

		$user = $mybb->user;
$bday = explode("-", $user['birthday']);
if(!isset($bday[1]))
{
$bday[1] = 0;

		}
}

		}
}

	if(!isset($bday[2]) || $bday[2] == 0)
{
$bday[2] = '';

	if(!isset($bday[2]) || $bday[2] == 0)
{
$bday[2] = '';

Zeile 336Zeile 340
		if($bday[0] == $day)
{
$selected = "selected=\"selected\"";

		if($bday[0] == $day)
{
$selected = "selected=\"selected\"";

		}
else
{

		}
else
{

			$selected = '';
}


			$selected = '';
}


Zeile 423Zeile 427
		eval('$contactfields = "'.$templates->get('usercp_profile_contact_fields').'";');
}


		eval('$contactfields = "'.$templates->get('usercp_profile_contact_fields').'";');
}


 
	$awaysection = '';

	if($mybb->settings['allowaway'] != 0)
{
$awaycheck = array('', '');

	if($mybb->settings['allowaway'] != 0)
{
$awaycheck = array('', '');

Zeile 450Zeile 455
				$awaydate = my_date($mybb->settings['dateformat'], $mybb->user['awaydate']);
$awaycheck[1] = "checked=\"checked\"";
$awaynotice = $lang->sprintf($lang->away_notice_away, $awaydate);

				$awaydate = my_date($mybb->settings['dateformat'], $mybb->user['awaydate']);
$awaycheck[1] = "checked=\"checked\"";
$awaynotice = $lang->sprintf($lang->away_notice_away, $awaydate);

			}
else

			}
else

			{
$awaynotice = $lang->away_notice;
$awaycheck[0] = "checked=\"checked\"";
}
$returndate = explode("-", $mybb->user['returndate']);
if(!isset($returndate[1]))

			{
$awaynotice = $lang->away_notice;
$awaycheck[0] = "checked=\"checked\"";
}
$returndate = explode("-", $mybb->user['returndate']);
if(!isset($returndate[1]))

			{

			{

				$returndate[1] = 0;

				$returndate[1] = 0;

			}

			}

			if(!isset($returndate[2]))
{
$returndate[2] = '';

			if(!isset($returndate[2]))
{
$returndate[2] = '';

			}
}

			}
}


$returndatesel = '';
for($day = 1; $day <= 31; ++$day)


$returndatesel = '';
for($day = 1; $day <= 31; ++$day)

Zeile 508Zeile 513
				continue;
}


				continue;
}


 
			$userfield = $code = $select = $val = $options = $expoptions = $useropts = '';
$seloptions = array();

			$profilefield['type'] = htmlspecialchars_uni($profilefield['type']);
$profilefield['name'] = htmlspecialchars_uni($profilefield['name']);
$profilefield['description'] = htmlspecialchars_uni($profilefield['description']);

			$profilefield['type'] = htmlspecialchars_uni($profilefield['type']);
$profilefield['name'] = htmlspecialchars_uni($profilefield['name']);
$profilefield['description'] = htmlspecialchars_uni($profilefield['description']);

Zeile 522Zeile 529
				$options = array();
}
$field = "fid{$profilefield['fid']}";

				$options = array();
}
$field = "fid{$profilefield['fid']}";

			$select = '';

 
			if($errors)
{
if(!isset($mybb->input['profile_fields'][$field]))

			if($errors)
{
if(!isset($mybb->input['profile_fields'][$field]))

Zeile 679Zeile 685
				eval("\$customfields .= \"".$templates->get("usercp_profile_customfield")."\";");
}
$altbg = alt_trow();

				eval("\$customfields .= \"".$templates->get("usercp_profile_customfield")."\";");
}
$altbg = alt_trow();

			$code = "";
$select = "";
$val = "";
$options = "";
$expoptions = "";
$useropts = "";
$seloptions = array();

 
		}
}
if($customfields)

		}
}
if($customfields)

Zeile 748Zeile 747
		$customtitle = "";
}


		$customtitle = "";
}


 
	$website = '';

	if($mybb->usergroup['canchangewebsite'] == 1)
{
eval("\$website = \"".$templates->get("usercp_profile_website")."\";");

	if($mybb->usergroup['canchangewebsite'] == 1)
{
eval("\$website = \"".$templates->get("usercp_profile_website")."\";");

Zeile 839Zeile 839
if($mybb->input['action'] == "options")
{
if($errors != '')

if($mybb->input['action'] == "options")
{
if($errors != '')

	{

	{

		$user = $mybb->input;
}
else

		$user = $mybb->input;
}
else

Zeile 992Zeile 992
	else
{
$pmnoticecheck = "";

	else
{
$pmnoticecheck = "";

	}


	}


	$dst_auto_selected = $dst_enabled_selected = $dst_disabled_selected = '';
if(isset($user['dstcorrection']) && $user['dstcorrection'] == 2)
{

	$dst_auto_selected = $dst_enabled_selected = $dst_disabled_selected = '';
if(isset($user['dstcorrection']) && $user['dstcorrection'] == 2)
{

Zeile 1096Zeile 1096
		if(isset($user['timeformat']) && $user['timeformat'] == $key)
{
$selected = " selected=\"selected\"";

		if(isset($user['timeformat']) && $user['timeformat'] == $key)
{
$selected = " selected=\"selected\"";

		}

		}


$timeformat = my_date($format, TIME_NOW, "", 0);
eval("\$time_format_options .= \"".$templates->get("usercp_options_time_format")."\";");


$timeformat = my_date($format, TIME_NOW, "", 0);
eval("\$time_format_options .= \"".$templates->get("usercp_options_time_format")."\";");

Zeile 2124Zeile 2124
}

if($mybb->input['action'] == "removesubscription" && ($mybb->request_method == "post" || verify_post_check($mybb->get_input('my_post_key'), true)))

}

if($mybb->input['action'] == "removesubscription" && ($mybb->request_method == "post" || verify_post_check($mybb->get_input('my_post_key'), true)))

{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

if($mybb->get_input('type') == "forum")

{
// Verify incoming POST request
verify_post_check($mybb->get_input('my_post_key'));

if($mybb->get_input('type') == "forum")

	{
$forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT));
if(!$forum)
{
error($lang->error_invalidforum);

	{
$forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT));
if(!$forum)
{
error($lang->error_invalidforum);

		}

// check if the forum requires a password to view. If so, we need to show a form to the user
check_forum_password($forum['fid']);


		}

// check if the forum requires a password to view. If so, we need to show a form to the user
check_forum_password($forum['fid']);


		// Naming of the hook retained for backward compatibility while dropping usercp2.php
$plugins->run_hooks("usercp2_removesubscription_forum");

remove_subscribed_forum($forum['fid']);

		// Naming of the hook retained for backward compatibility while dropping usercp2.php
$plugins->run_hooks("usercp2_removesubscription_forum");

remove_subscribed_forum($forum['fid']);

		if($server_http_referer && $mybb->request_method != 'post')
{
$url = $server_http_referer;

		if($server_http_referer && $mybb->request_method != 'post')
{
$url = $server_http_referer;

		}
else
{

		}
else
{

Zeile 2168Zeile 2168
		if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

		if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

		}


		}


		// check if the forum requires a password to view. If so, we need to show a form to the user
check_forum_password($thread['fid']);


		// check if the forum requires a password to view. If so, we need to show a form to the user
check_forum_password($thread['fid']);


Zeile 2193Zeile 2193
if($mybb->input['action'] == "removesubscription")
{
$referrer = '';

if($mybb->input['action'] == "removesubscription")
{
$referrer = '';

	if($mybb->get_input('type') == "forum")

	if($mybb->get_input('type') == "forum")

	{
$forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT));
if(!$forum)

	{
$forum = get_forum($mybb->get_input('fid', MyBB::INPUT_INT));
if(!$forum)

Zeile 2322Zeile 2322
	{
$update_signature = array(
"includesig" => 1

	{
$update_signature = array(
"includesig" => 1

		);

		);

		$db->update_query("posts", $update_signature, "uid='".$mybb->user['uid']."'");
}
elseif($mybb->get_input('updateposts') == "disable")

		$db->update_query("posts", $update_signature, "uid='".$mybb->user['uid']."'");
}
elseif($mybb->get_input('updateposts') == "disable")

Zeile 2414Zeile 2414
	else
{
// User is allowed to edit their signature

	else
{
// User is allowed to edit their signature

 
		$smilieinserter = '';

		if($mybb->settings['sigsmilies'] == 1)
{
$sigsmilies = $lang->on;

		if($mybb->settings['sigsmilies'] == 1)
{
$sigsmilies = $lang->on;

Zeile 2451Zeile 2452
		if($mybb->settings['siglength'] == 0)
{
$siglength = $lang->unlimited;

		if($mybb->settings['siglength'] == 0)
{
$siglength = $lang->unlimited;

		}
else

		}
else

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

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

Zeile 2468Zeile 2469
		$plugins->run_hooks("usercp_editsig_end");

eval("\$editsig = \"".$templates->get("usercp_editsig")."\";");

		$plugins->run_hooks("usercp_editsig_end");

eval("\$editsig = \"".$templates->get("usercp_editsig")."\";");

	}

	}


output_page($editsig);
}


output_page($editsig);
}

Zeile 2484Zeile 2485
	$avatar_error = "";

if(!empty($mybb->input['remove'])) // remove avatar

	$avatar_error = "";

if(!empty($mybb->input['remove'])) // remove avatar

	{

	{

		$updated_avatar = array(
"avatar" => "",
"avatardimensions" => "",

		$updated_avatar = array(
"avatar" => "",
"avatardimensions" => "",

Zeile 2516Zeile 2517
				"avatartype" => "upload"
);
$db->update_query("users", $updated_avatar, "uid='".$mybb->user['uid']."'");

				"avatartype" => "upload"
);
$db->update_query("users", $updated_avatar, "uid='".$mybb->user['uid']."'");

		}

		}

	}
elseif(!$mybb->settings['allowremoteavatars'] && !$_FILES['avatarupload']['name']) // missing avatar image
{

	}
elseif(!$mybb->settings['allowremoteavatars'] && !$_FILES['avatarupload']['name']) // missing avatar image
{

Zeile 2643Zeile 2644
	{
$mybb->input['action'] = "avatar";
$avatar_error = inline_error($avatar_error);

	{
$mybb->input['action'] = "avatar";
$avatar_error = inline_error($avatar_error);

	}
}


	}
}


if($mybb->input['action'] == "avatar")
{
$plugins->run_hooks("usercp_avatar_start");

if($mybb->input['action'] == "avatar")
{
$plugins->run_hooks("usercp_avatar_start");

Zeile 3580Zeile 3581
	if($mybb->get_input('leavegroup', MyBB::INPUT_INT))
{
// Verify incoming POST request

	if($mybb->get_input('leavegroup', MyBB::INPUT_INT))
{
// Verify incoming POST request

		verify_post_check($mybb->input['my_post_key']);

		verify_post_check($mybb->get_input('my_post_key'));


if(my_strpos($ingroups, ",".$mybb->get_input('leavegroup', MyBB::INPUT_INT).",") === false)
{


if(my_strpos($ingroups, ",".$mybb->get_input('leavegroup', MyBB::INPUT_INT).",") === false)
{

Zeile 3627Zeile 3628
		if($usergroup['type'] == 5)
{
error($lang->cannot_join_invite_group);

		if($usergroup['type'] == 5)
{
error($lang->cannot_join_invite_group);

		}


		}


		if(($usergroup['type'] != 4 && $usergroup['type'] != 3) || !$usergroup['gid'])
{
error($lang->cannot_join_group);

		if(($usergroup['type'] != 4 && $usergroup['type'] != 3) || !$usergroup['gid'])
{
error($lang->cannot_join_group);

Zeile 3642Zeile 3643
		$query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."' AND gid='".$mybb->get_input('joingroup', MyBB::INPUT_INT)."'");
$joinrequest = $db->fetch_array($query);


		$query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."' AND gid='".$mybb->get_input('joingroup', MyBB::INPUT_INT)."'");
$joinrequest = $db->fetch_array($query);


		if($joinrequest['rid'])

		if($joinrequest)

		{
error($lang->already_sent_join_request);
}

		{
error($lang->already_sent_join_request);
}

Zeile 3665Zeile 3666
			);

$db->insert_query("joinrequests", $joinrequest);

			);

$db->insert_query("joinrequests", $joinrequest);





			if(array_key_exists($usergroup['gid'], $groupleaders))
{
foreach($groupleaders[$usergroup['gid']] as $leader)

			if(array_key_exists($usergroup['gid'], $groupleaders))
{
foreach($groupleaders[$usergroup['gid']] as $leader)

Zeile 3673Zeile 3674
					// Load language
$lang->set_language($leader['language']);
$lang->load("messages");

					// Load language
$lang->set_language($leader['language']);
$lang->load("messages");





					$subject = $lang->sprintf($lang->emailsubject_newjoinrequest, $mybb->settings['bbname']);
$message = $lang->sprintf($lang->email_groupleader_joinrequest, $leader['username'], $mybb->user['username'], $usergroup['title'], $mybb->settings['bbname'], $mybb->get_input('reason'), $mybb->settings['bburl'], $leader['gid']);
my_mail($leader['email'], $subject, $message);
}

					$subject = $lang->sprintf($lang->emailsubject_newjoinrequest, $mybb->settings['bbname']);
$message = $lang->sprintf($lang->email_groupleader_joinrequest, $leader['username'], $mybb->user['username'], $usergroup['title'], $mybb->settings['bbname'], $mybb->get_input('reason'), $mybb->settings['bburl'], $leader['gid']);
my_mail($leader['email'], $subject, $message);
}

			}


			}


			// Load language
$lang->set_language($mybb->user['language']);
$lang->load("messages");

			// Load language
$lang->set_language($mybb->user['language']);
$lang->load("messages");

Zeile 3694Zeile 3695
			eval("\$joinpage = \"".$templates->get("usercp_usergroups_joingroup")."\";");
output_page($joinpage);
exit;

			eval("\$joinpage = \"".$templates->get("usercp_usergroups_joingroup")."\";");
output_page($joinpage);
exit;

		}
else
{

		}
else
{

			join_usergroup($mybb->user['uid'], $mybb->get_input('joingroup', MyBB::INPUT_INT));
$plugins->run_hooks("usercp_usergroups_join_group");
redirect("usercp.php?action=usergroups", $lang->joined_group);

			join_usergroup($mybb->user['uid'], $mybb->get_input('joingroup', MyBB::INPUT_INT));
$plugins->run_hooks("usercp_usergroups_join_group");
redirect("usercp.php?action=usergroups", $lang->joined_group);

Zeile 3712Zeile 3713
		$usergroup = $usergroups[$mybb->get_input('acceptinvite', MyBB::INPUT_INT)];

if(my_strpos($ingroups, ",".$mybb->get_input('acceptinvite', MyBB::INPUT_INT).",") !== false)

		$usergroup = $usergroups[$mybb->get_input('acceptinvite', MyBB::INPUT_INT)];

if(my_strpos($ingroups, ",".$mybb->get_input('acceptinvite', MyBB::INPUT_INT).",") !== false)

		{

		{

			error($lang->already_accepted_invite);
}

$query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."' AND gid='".$mybb->get_input('acceptinvite', MyBB::INPUT_INT)."' AND invite='1'");
$joinrequest = $db->fetch_array($query);

			error($lang->already_accepted_invite);
}

$query = $db->simple_select("joinrequests", "*", "uid='".$mybb->user['uid']."' AND gid='".$mybb->get_input('acceptinvite', MyBB::INPUT_INT)."' AND invite='1'");
$joinrequest = $db->fetch_array($query);

		if($joinrequest['rid'])

		if($joinrequest)

		{
join_usergroup($mybb->user['uid'], $mybb->get_input('acceptinvite', MyBB::INPUT_INT));
$db->delete_query("joinrequests", "uid='{$mybb->user['uid']}' AND gid='".$mybb->get_input('acceptinvite', MyBB::INPUT_INT)."'");

		{
join_usergroup($mybb->user['uid'], $mybb->get_input('acceptinvite', MyBB::INPUT_INT));
$db->delete_query("joinrequests", "uid='{$mybb->user['uid']}' AND gid='".$mybb->get_input('acceptinvite', MyBB::INPUT_INT)."'");

Zeile 3744Zeile 3745
				FROM ".TABLE_PREFIX."groupleaders l
LEFT JOIN ".TABLE_PREFIX."usergroups g ON(g.gid=l.gid)
LEFT JOIN ".TABLE_PREFIX."users u ON(((','|| u.additionalgroups|| ',' LIKE '%,'|| g.gid|| ',%') OR u.usergroup = g.gid))

				FROM ".TABLE_PREFIX."groupleaders l
LEFT JOIN ".TABLE_PREFIX."usergroups g ON(g.gid=l.gid)
LEFT JOIN ".TABLE_PREFIX."users u ON(((','|| u.additionalgroups|| ',' LIKE '%,'|| g.gid|| ',%') OR u.usergroup = g.gid))

				LEFT JOIN ".TABLE_PREFIX."joinrequests j ON(j.gid=g.gid AND j.uid != 0)
WHERE l.uid='".$mybb->user['uid']."'

				LEFT JOIN ".TABLE_PREFIX."joinrequests j ON(j.gid=g.gid AND j.uid != 0)
WHERE l.uid='".$mybb->user['uid']."'

				GROUP BY g.gid, g.title, g.type, l.canmanagerequests, l.canmanagemembers, l.caninvitemembers
");
break;

				GROUP BY g.gid, g.title, g.type, l.canmanagerequests, l.canmanagemembers, l.caninvitemembers
");
break;

Zeile 3874Zeile 3875
	// Fetch list of groups the member can join
$existinggroups = $mybb->user['usergroup'];
if($mybb->user['additionalgroups'])

	// Fetch list of groups the member can join
$existinggroups = $mybb->user['usergroup'];
if($mybb->user['additionalgroups'])

	{

	{

		$additionalgroups = implode(
',',
array_map(

		$additionalgroups = implode(
',',
array_map(

Zeile 4197Zeile 4198
	$useravatar = format_avatar($mybb->user['avatar'], $mybb->user['avatardimensions'], '100x100');
$avatar_username = htmlspecialchars_uni($mybb->user['username']);
eval("\$avatar = \"".$templates->get("usercp_currentavatar")."\";");

	$useravatar = format_avatar($mybb->user['avatar'], $mybb->user['avatardimensions'], '100x100');
$avatar_username = htmlspecialchars_uni($mybb->user['username']);
eval("\$avatar = \"".$templates->get("usercp_currentavatar")."\";");

 

$mybb->user['email'] = htmlspecialchars_uni($mybb->user['email']);


$usergroup = htmlspecialchars_uni($groupscache[$mybb->user['usergroup']]['title']);
if($mybb->user['usergroup'] == 5 && $mybb->settings['regtype'] != "admin")


$usergroup = htmlspecialchars_uni($groupscache[$mybb->user['usergroup']]['title']);
if($mybb->user['usergroup'] == 5 && $mybb->settings['regtype'] != "admin")

Zeile 4204Zeile 4207
		eval("\$usergroup .= \"".$templates->get("usercp_resendactivation")."\";");
}
// Make reputations row

		eval("\$usergroup .= \"".$templates->get("usercp_resendactivation")."\";");
}
// Make reputations row

	$reputations = '';

	$reputation = '';

	if($mybb->usergroup['usereputationsystem'] == 1 && $mybb->settings['enablereputation'] == 1)
{
$reputation_link = get_reputation($mybb->user['reputation']);

	if($mybb->usergroup['usereputationsystem'] == 1 && $mybb->settings['enablereputation'] == 1)
{
$reputation_link = get_reputation($mybb->user['reputation']);

Zeile 4367Zeile 4370
			LIMIT 0, 10
");


			LIMIT 0, 10
");


 
		$subscriptions = array();

		$fpermissions = forum_permissions();

while($subscription = $db->fetch_array($query))
{
$forumpermissions = $fpermissions[$subscription['fid']];


		$fpermissions = forum_permissions();

while($subscription = $db->fetch_array($query))
{
$forumpermissions = $fpermissions[$subscription['fid']];


			if($forumpermissions['canonlyviewownthreads'] == 0 || $subscription['uid'] == $mybb->user['uid'])

			if(!isset($forumpermissions['canonlyviewownthreads']) || $forumpermissions['canonlyviewownthreads'] == 0 || $subscription['uid'] == $mybb->user['uid'])

			{
$subscriptions[$subscription['tid']] = $subscription;
}
}


			{
$subscriptions[$subscription['tid']] = $subscription;
}
}


		if(is_array($subscriptions))

		if($subscriptions)

		{
$tids = implode(",", array_keys($subscriptions));


		{
$tids = implode(",", array_keys($subscriptions));


Zeile 4422Zeile 4426
					$folder_label = '';
$gotounread = '';


					$folder_label = '';
$gotounread = '';


					if($thread['tid'])

					if(!empty($thread['tid']))

					{
$bgcolor = alt_trow();
$thread['subject'] = $parser->parse_badwords($thread['subject']);

					{
$bgcolor = alt_trow();
$thread['subject'] = $parser->parse_badwords($thread['subject']);

Zeile 4598Zeile 4602
		foreach($threadcache as $thread)
{
$plugins->run_hooks("usercp_latest_threads_thread");

		foreach($threadcache as $thread)
{
$plugins->run_hooks("usercp_latest_threads_thread");

			if($thread['tid'])

			if(!empty($thread['tid']))

			{
$bgcolor = alt_trow();
$folder = '';

			{
$bgcolor = alt_trow();
$folder = '';

Zeile 4679Zeile 4683
				}

// Folder Icons

				}

// Folder Icons

				if($thread['doticon'])

				if(!empty($thread['doticon']))

				{
$folder = "dot_";
$folder_label .= $lang->icon_dot;

				{
$folder = "dot_";
$folder_label .= $lang->icon_dot;