Vergleich usercp.php - 1.8.19 - 1.8.22

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 57Zeile 57
usercp_menu();

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

usercp_menu();

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

 

if(my_strpos($server_http_referer, $mybb->settings['bburl'].'/') !== 0)
{
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);
}


$plugins->run_hooks("usercp_start");
if($mybb->input['action'] == "do_editsig" && $mybb->request_method == "post")


$plugins->run_hooks("usercp_start");
if($mybb->input['action'] == "do_editsig" && $mybb->request_method == "post")

Zeile 217Zeile 227
		"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', 'yahoo', 'skype', 'google') as $cfield)

	foreach(array('icq', 'skype', 'google') as $cfield)

	{
$csetting = 'allow'.$cfield.'field';
if($mybb->settings[$csetting] == '')

	{
$csetting = 'allow'.$cfield.'field';
if($mybb->settings[$csetting] == '')

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

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

		{

		{

			$user['usertitle'] = $mybb->get_input('usertitle');
}
elseif(!empty($mybb->input['reverttitle']))

			$user['usertitle'] = $mybb->get_input('usertitle');
}
elseif(!empty($mybb->input['reverttitle']))

Zeile 271Zeile 281

$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 280Zeile 290
		redirect("usercp.php?action=profile", $lang->redirect_profileupdated);
}
}

		redirect("usercp.php?action=profile", $lang->redirect_profileupdated);
}
}





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

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

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

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

		{

		{

			$bday[1] = 0;

			$bday[1] = 0;

		}

		}

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

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





	$plugins->run_hooks("usercp_profile_start");

$bdaydaysel = '';
for($day = 1; $day <= 31; ++$day)
{
if($bday[0] == $day)

	$plugins->run_hooks("usercp_profile_start");

$bdaydaysel = '';
for($day = 1; $day <= 31; ++$day)
{
if($bday[0] == $day)

		{

		{

			$selected = "selected=\"selected\"";
}
else

			$selected = "selected=\"selected\"";
}
else

Zeile 366Zeile 376
	{
$user['skype'] = htmlspecialchars_uni($user['skype']);
$user['google'] = htmlspecialchars_uni($user['google']);

	{
$user['skype'] = htmlspecialchars_uni($user['skype']);
$user['google'] = htmlspecialchars_uni($user['google']);

		$user['yahoo'] = htmlspecialchars_uni($user['yahoo']);

 
	}

$contact_fields = array();
$contactfields = '';
$cfieldsshow = false;


	}

$contact_fields = array();
$contactfields = '';
$cfieldsshow = false;


	foreach(array('icq', 'yahoo', 'skype', 'google') as $cfield)

	foreach(array('icq', 'skype', 'google') as $cfield)

	{
$contact_fields[$cfield] = '';
$csetting = 'allow'.$cfield.'field';

	{
$contact_fields[$cfield] = '';
$csetting = 'allow'.$cfield.'field';

Zeile 440Zeile 449
				$returndate[1] = 0;
}
if(!isset($returndate[2]))

				$returndate[1] = 0;
}
if(!isset($returndate[2]))

			{

			{

				$returndate[2] = '';
}
}

				$returndate[2] = '';
}
}

Zeile 565Zeile 574
						$val = trim($val);
$val = str_replace("\n", "\\n", $val);
$sel = "";

						$val = trim($val);
$val = str_replace("\n", "\\n", $val);
$sel = "";

						if($val == htmlspecialchars_uni($userfield))
{

						if($val == htmlspecialchars_uni($userfield))
{

							$sel = " selected=\"selected\"";
}


							$sel = " selected=\"selected\"";
}


Zeile 690Zeile 699
		else
{
$defaulttitle = htmlspecialchars_uni($mybb->usergroup['usertitle']);

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

		}

		}


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


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

Zeile 879Zeile 888
		$no_subscribe_selected = "selected=\"selected\"";
}
elseif(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 2)

		$no_subscribe_selected = "selected=\"selected\"";
}
elseif(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 2)

	{

	{

		$instant_email_subscribe_selected = "selected=\"selected\"";
}
elseif(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 3)

		$instant_email_subscribe_selected = "selected=\"selected\"";
}
elseif(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 3)

Zeile 1005Zeile 1014
	}

if(isset($user['pmnotify']) && $user['pmnotify'] != 0)

	}

if(isset($user['pmnotify']) && $user['pmnotify'] != 0)

	{

	{

		$pmnotifycheck = "checked=\"checked\"";
}
else

		$pmnotifycheck = "checked=\"checked\"";
}
else

Zeile 1020Zeile 1029
	else
{
$buddyrequestspmcheck = '';

	else
{
$buddyrequestspmcheck = '';

	}


	}


	if(isset($user['buddyrequestsauto']) && $user['buddyrequestsauto'] != 0)

	if(isset($user['buddyrequestsauto']) && $user['buddyrequestsauto'] != 0)

	{

	{

		$buddyrequestsautocheck = "checked=\"checked\"";
}
else
{
$buddyrequestsautocheck = '';

		$buddyrequestsautocheck = "checked=\"checked\"";
}
else
{
$buddyrequestsautocheck = '';

	}


	}


	if(!isset($user['threadmode']) || ($user['threadmode'] != "threaded" && $user['threadmode'] != "linear"))

	if(!isset($user['threadmode']) || ($user['threadmode'] != "threaded" && $user['threadmode'] != "linear"))

	{

	{

		$user['threadmode'] = ''; // Leave blank to show default
}

if(isset($user['classicpostbit']) && $user['classicpostbit'] != 0)

		$user['threadmode'] = ''; // Leave blank to show default
}

if(isset($user['classicpostbit']) && $user['classicpostbit'] != 0)

	{

	{

		$classicpostbitcheck = "checked=\"checked\"";
}
else

		$classicpostbitcheck = "checked=\"checked\"";
}
else

Zeile 1050Zeile 1059
	{
$selected = '';
if(isset($user['dateformat']) && $user['dateformat'] == $key)

	{
$selected = '';
if(isset($user['dateformat']) && $user['dateformat'] == $key)

		{
$selected = " selected=\"selected\"";
}


		{
$selected = " selected=\"selected\"";
}


		$dateformat = my_date($format, TIME_NOW, "", 0);
eval("\$date_format_options .= \"".$templates->get("usercp_options_date_format")."\";");
}

		$dateformat = my_date($format, TIME_NOW, "", 0);
eval("\$date_format_options .= \"".$templates->get("usercp_options_date_format")."\";");
}

Zeile 1069Zeile 1078

$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")."\";");

	}

$tzselect = build_timezone_select("timezoneoffset", $mybb->user['timezone'], true);


	}

$tzselect = build_timezone_select("timezoneoffset", $mybb->user['timezone'], true);


	$pms_from_buddys = '';
if($mybb->settings['allowbuddyonly'] == 1)
{

	$pms_from_buddys = '';
if($mybb->settings['allowbuddyonly'] == 1)
{

Zeile 1104Zeile 1113
	if(!isset($user['style']))
{
$user['style'] = '';

	if(!isset($user['style']))
{
$user['style'] = '';

	}

	}


$board_style = $stylelist = '';
$stylelist = build_theme_select("style", $user['style']);


$board_style = $stylelist = '';
$stylelist = build_theme_select("style", $user['style']);

Zeile 1135Zeile 1144
			}
}
eval("\$tppselect = \"".$templates->get("usercp_options_tppselect")."\";");

			}
}
eval("\$tppselect = \"".$templates->get("usercp_options_tppselect")."\";");

	}


	}


	if($mybb->settings['userpppoptions'])
{
$explodedppp = explode(",", $mybb->settings['userpppoptions']);

	if($mybb->settings['userpppoptions'])
{
$explodedppp = explode(",", $mybb->settings['userpppoptions']);

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

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

 

$errors = array();


$plugins->run_hooks("usercp_do_changename_start");
if($mybb->usergroup['canchangename'] != 1)


$plugins->run_hooks("usercp_do_changename_start");
if($mybb->usergroup['canchangename'] != 1)

Zeile 1416Zeile 1427
	if($mybb->usergroup['canchangename'] != 1)
{
error_no_permission();

	if($mybb->usergroup['canchangename'] != 1)
{
error_no_permission();

 
	}

// Coming back to this page after one or more errors were experienced, show field the user previously entered (with the exception of the password)
if($errors)
{
$username = htmlspecialchars_uni($mybb->get_input('username'));
}
else
{
$username = '';

	}

$plugins->run_hooks("usercp_changename_end");

	}

$plugins->run_hooks("usercp_changename_end");

Zeile 1578Zeile 1599
			LEFT JOIN ".TABLE_PREFIX."forumsread fr ON (fr.fid=f.fid AND fr.uid='{$mybb->user['uid']}')
WHERE f.active != 0
ORDER BY pid, disporder

			LEFT JOIN ".TABLE_PREFIX."forumsread fr ON (fr.fid=f.fid AND fr.uid='{$mybb->user['uid']}')
WHERE f.active != 0
ORDER BY pid, disporder

		");

		");


while($forum = $db->fetch_array($query))
{
$readforums[$forum['fid']] = $forum['lastread'];


while($forum = $db->fetch_array($query))
{
$readforums[$forum['fid']] = $forum['lastread'];

		}

		}


// Check participation by the current user in any of these threads - for 'dot' folder icons
if($mybb->settings['dotfolders'] != 0)


// Check participation by the current user in any of these threads - for 'dot' folder icons
if($mybb->settings['dotfolders'] != 0)

Zeile 1592Zeile 1613
			while($post = $db->fetch_array($query))
{
$subscriptions[$post['tid']]['doticon'] = 1;

			while($post = $db->fetch_array($query))
{
$subscriptions[$post['tid']]['doticon'] = 1;

			}
}


			}
}


		// Read threads
if($mybb->settings['threadreadcut'] > 0)
{
$query = $db->simple_select("threadsread", "*", "uid='{$mybb->user['uid']}' AND tid IN ({$tids})");
while($readthread = $db->fetch_array($query))

		// Read threads
if($mybb->settings['threadreadcut'] > 0)
{
$query = $db->simple_select("threadsread", "*", "uid='{$mybb->user['uid']}' AND tid IN ({$tids})");
while($readthread = $db->fetch_array($query))

			{

			{

				$subscriptions[$readthread['tid']]['lastread'] = $readthread['dateline'];
}
}

				$subscriptions[$readthread['tid']]['lastread'] = $readthread['dateline'];
}
}

Zeile 1623Zeile 1644
			if($thread['prefix'] != 0 && !empty($threadprefixes[$thread['prefix']]))
{
$thread['threadprefix'] = $threadprefixes[$thread['prefix']]['displaystyle'].'&nbsp;';

			if($thread['prefix'] != 0 && !empty($threadprefixes[$thread['prefix']]))
{
$thread['threadprefix'] = $threadprefixes[$thread['prefix']]['displaystyle'].'&nbsp;';

			}


			}


			// Sanitize
$thread['subject'] = $parser->parse_badwords($thread['subject']);
$thread['subject'] = htmlspecialchars_uni($thread['subject']);

			// Sanitize
$thread['subject'] = $parser->parse_badwords($thread['subject']);
$thread['subject'] = htmlspecialchars_uni($thread['subject']);

Zeile 1670Zeile 1691
				if($forum_read == 0 || $forum_read < $read_cutoff)
{
$forum_read = $read_cutoff;

				if($forum_read == 0 || $forum_read < $read_cutoff)
{
$forum_read = $read_cutoff;

				}

				}

			}

$cutoff = 0;

			}

$cutoff = 0;

Zeile 1761Zeile 1782
			}

$thread['replies'] = my_number_format($thread['replies']);

			}

$thread['replies'] = my_number_format($thread['replies']);

			$thread['views'] = my_number_format($thread['views']);

			$thread['views'] = my_number_format($thread['views']);


// What kind of notification type do we have here?
switch($thread['notification'])


// What kind of notification type do we have here?
switch($thread['notification'])

Zeile 1807Zeile 1828
		ORDER BY pid, disporder
");
$readforums = array();

		ORDER BY pid, disporder
");
$readforums = array();

	while($forum = $db->fetch_array($query))

	while($forum = $db->fetch_array($query))

	{
$readforums[$forum['fid']] = $forum['lastread'];
}

	{
$readforums[$forum['fid']] = $forum['lastread'];
}

Zeile 1898Zeile 1919
	}

if(!$forums)

	}

if(!$forums)

	{

	{

		eval("\$forums = \"".$templates->get("usercp_forumsubscriptions_none")."\";");
}


		eval("\$forums = \"".$templates->get("usercp_forumsubscriptions_none")."\";");
}


Zeile 1915Zeile 1936

$thread = get_thread($mybb->get_input('tid'));
if(!$thread || $thread['visible'] == -1)


$thread = get_thread($mybb->get_input('tid'));
if(!$thread || $thread['visible'] == -1)

	{

	{

		error($lang->error_invalidthread);
}

		error($lang->error_invalidthread);
}





	// Is the currently logged in user a moderator of this forum?

	// Is the currently logged in user a moderator of this forum?

	$ismod = is_moderator($thread['fid']);


	$ismod = is_moderator($thread['fid']);


	// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

	// Make sure we are looking at a real thread here.
if(($thread['visible'] != 1 && $ismod == false) || ($thread['visible'] > 1 && $ismod == true))
{
error($lang->error_invalidthread);

	}


	}


	$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))
{

	$forumpermissions = forum_permissions($thread['fid']);
if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0 || (isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $thread['uid'] != $mybb->user['uid']))
{

Zeile 1944Zeile 1965

if($mybb->get_input('referrer'))
{


if($mybb->get_input('referrer'))
{

		$url = htmlspecialchars_uni($mybb->get_input('referrer'));













		$mybb->input['referrer'] = $mybb->get_input('referrer');

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

$url = htmlspecialchars_uni($mybb->input['referrer']);

	}
else
{

	}
else
{

Zeile 2582Zeile 2615

// Now we have the new list, so throw it all back together
$new_list = implode(",", $user['buddylist']);


// Now we have the new list, so throw it all back together
$new_list = implode(",", $user['buddylist']);


// And clean it up a little to ensure there is no possibility of bad values
$new_list = preg_replace("#,{2,}#", ",", $new_list);
$new_list = preg_replace("#[^0-9,]#", "", $new_list);

if(my_substr($new_list, 0, 1) == ",")
{
$new_list = my_substr($new_list, 1);
}


// And clean it up a little to ensure there is no possibility of bad values
$new_list = preg_replace("#,{2,}#", ",", $new_list);
$new_list = preg_replace("#[^0-9,]#", "", $new_list);

if(my_substr($new_list, 0, 1) == ",")
{
$new_list = my_substr($new_list, 1);
}

		if(my_substr($new_list, -1) == ",")
{
$new_list = my_substr($new_list, 0, my_strlen($new_list)-2);

		if(my_substr($new_list, -1) == ",")
{
$new_list = my_substr($new_list, 0, my_strlen($new_list)-2);

Zeile 2630Zeile 2663
		}

$mybb->user['buddylist'] = $db->escape_string($new_list);

		}

$mybb->user['buddylist'] = $db->escape_string($new_list);





		$db->update_query("users", array('buddylist' => $mybb->user['buddylist']), "uid='".(int)$mybb->user['uid']."'");

$pm = array(

		$db->update_query("users", array('buddylist' => $mybb->user['buddylist']), "uid='".(int)$mybb->user['uid']."'");

$pm = array(

Zeile 2653Zeile 2686
	$plugins->run_hooks("usercp_acceptrequest_end");

redirect("usercp.php?action=editlists", $lang->buddyrequest_accepted);

	$plugins->run_hooks("usercp_acceptrequest_end");

redirect("usercp.php?action=editlists", $lang->buddyrequest_accepted);

}


}


elseif($mybb->input['action'] == "declinerequest")
{
// Verify incoming POST request

elseif($mybb->input['action'] == "declinerequest")
{
// Verify incoming POST request

Zeile 2662Zeile 2695

// Validate request
$query = $db->simple_select('buddyrequests', '*', 'id='.$mybb->get_input('id', MyBB::INPUT_INT).' AND touid='.(int)$mybb->user['uid']);


// Validate request
$query = $db->simple_select('buddyrequests', '*', 'id='.$mybb->get_input('id', MyBB::INPUT_INT).' AND touid='.(int)$mybb->user['uid']);

	$request = $db->fetch_array($query);

	$request = $db->fetch_array($query);

	if(empty($request))
{
error($lang->invalid_request);

	if(empty($request))
{
error($lang->invalid_request);

Zeile 2678Zeile 2711
	else
{
error($lang->user_doesnt_exist);

	else
{
error($lang->user_doesnt_exist);

	}


	}


	$plugins->run_hooks("usercp_declinerequest_end");

	$plugins->run_hooks("usercp_declinerequest_end");





	redirect("usercp.php?action=editlists", $lang->buddyrequest_declined);
}

elseif($mybb->input['action'] == "cancelrequest")

	redirect("usercp.php?action=editlists", $lang->buddyrequest_declined);
}

elseif($mybb->input['action'] == "cancelrequest")

{

{

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


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


Zeile 2716Zeile 2749

$existing_users = array();
$selected_list = array();


$existing_users = array();
$selected_list = array();

	if($mybb->get_input('manage') == "ignored")
{

	if($mybb->get_input('manage') == "ignored")
{

		if($mybb->user['ignorelist'])
{
$existing_users = explode(",", $mybb->user['ignorelist']);

		if($mybb->user['ignorelist'])
{
$existing_users = explode(",", $mybb->user['ignorelist']);

Zeile 2841Zeile 2874
					elseif($mybb->get_input('manage') == "ignored")
{
$error_message = $lang->users_already_sent_request_alt;

					elseif($mybb->get_input('manage') == "ignored")
{
$error_message = $lang->users_already_sent_request_alt;

					}

array_pop($users); // To maintain a proper count when we call count($users)

					}

array_pop($users); // To maintain a proper count when we call count($users)

					continue;
}


					continue;
}


Zeile 3033Zeile 3066
	{
$user['buddylist'] = $db->escape_string($new_list);
$mybb->user['buddylist'] = $user['buddylist'];

	{
$user['buddylist'] = $db->escape_string($new_list);
$mybb->user['buddylist'] = $user['buddylist'];

	}

	}


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



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


Zeile 3055Zeile 3088
		if($message)
{
$message_js = "$.jGrowl('{$message}', {theme:'jgrowl_success'});";

		if($message)
{
$message_js = "$.jGrowl('{$message}', {theme:'jgrowl_success'});";

		}


		}


		if($error_message)

		if($error_message)

		{

		{

			$message_js .= " $.jGrowl('{$error_message}', {theme:'jgrowl_error'});";
}

if($mybb->get_input('delete', MyBB::INPUT_INT))

			$message_js .= " $.jGrowl('{$error_message}', {theme:'jgrowl_error'});";
}

if($mybb->get_input('delete', MyBB::INPUT_INT))

		{

		{

			header("Content-type: text/javascript");
echo "$(\"#".$mybb->get_input('manage')."_".$mybb->get_input('delete', MyBB::INPUT_INT)."\").remove();\n";
if($new_list == "")
{
echo "\$(\"#".$mybb->get_input('manage')."_count\").html(\"0\");\n";

			header("Content-type: text/javascript");
echo "$(\"#".$mybb->get_input('manage')."_".$mybb->get_input('delete', MyBB::INPUT_INT)."\").remove();\n";
if($new_list == "")
{
echo "\$(\"#".$mybb->get_input('manage')."_count\").html(\"0\");\n";

 
				echo "\$(\"#buddylink\").remove();\n";


				if($mybb->get_input('manage') == "ignored")
{
echo "\$(\"#ignore_list\").html(\"<li>{$lang->ignore_list_empty}</li>\");\n";

				if($mybb->get_input('manage') == "ignored")
{
echo "\$(\"#ignore_list\").html(\"<li>{$lang->ignore_list_empty}</li>\");\n";

Zeile 3086Zeile 3121
			exit;
}
$mybb->input['action'] = "editlists";

			exit;
}
$mybb->input['action'] = "editlists";

	}

	}

	else
{
if($error_message)

	else
{
if($error_message)

Zeile 3094Zeile 3129
			$message .= "<br />".$error_message;
}
redirect("usercp.php?action=editlists#".$mybb->get_input('manage'), $message);

			$message .= "<br />".$error_message;
}
redirect("usercp.php?action=editlists#".$mybb->get_input('manage'), $message);

	}
}


	}
}


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

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

Zeile 4108Zeile 4143
	if($mybb->settings['usereferrals'] == 1)
{
$referral_link = $lang->sprintf($lang->referral_link, $settings['bburl'], $mybb->user['uid']);

	if($mybb->settings['usereferrals'] == 1)
{
$referral_link = $lang->sprintf($lang->referral_link, $settings['bburl'], $mybb->user['uid']);

 

$referral_count = (int) $mybb->user['referrals'];
if($referral_count > 0)
{
$uid = (int) $mybb->user['uid'];
eval("\$mybb->user['referrals'] = \"".$templates->get('member_referrals_link')."\";");
}


		eval("\$referral_info = \"".$templates->get("usercp_referrals")."\";");
}


		eval("\$referral_info = \"".$templates->get("usercp_referrals")."\";");
}


Zeile 4185Zeile 4228

foreach($subscriptions as $thread)
{


foreach($subscriptions as $thread)
{

 
					$plugins->run_hooks("usercp_thread_subscriptions_thread");

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

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

Zeile 4377Zeile 4421
		$latest_threads_threads = '';
foreach($threadcache as $thread)
{

		$latest_threads_threads = '';
foreach($threadcache as $thread)
{

 
			$plugins->run_hooks("usercp_latest_threads_thread"); 

			if($thread['tid'])
{
$bgcolor = alt_trow();

			if($thread['tid'])
{
$bgcolor = alt_trow();

Zeile 4493Zeile 4538

if($thread['closed'] == 1)
{


if($thread['closed'] == 1)
{

					$folder .= "lock";
$folder_label .= $lang->icon_lock;

					$folder .= "close";
$folder_label .= $lang->icon_close;

				}

$folder .= "folder";

				}

$folder .= "folder";