Vergleich usercp.php - 1.8.28 - 1.8.38

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 427Zeile 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 512Zeile 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 520Zeile 523
			if(isset($thing[1]))
{
$options = $thing[1];

			if(isset($thing[1]))
{
$options = $thing[1];

			}
else
{

			}
else
{

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

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

			$select = '';

 
			if($errors)

			if($errors)

			{

			{

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

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

Zeile 548Zeile 550
				else
{
$useropts = explode("\n", $userfield);

				else
{
$useropts = explode("\n", $userfield);

				}

				}

				if(is_array($useropts))

				if(is_array($useropts))

				{

				{

					foreach($useropts as $key => $val)

					foreach($useropts as $key => $val)

					{

					{

						$val = htmlspecialchars_uni($val);

						$val = htmlspecialchars_uni($val);

						$seloptions[$val] = $val;
}
}
$expoptions = explode("\n", $options);
if(is_array($expoptions))
{
foreach($expoptions as $key => $val)
{
$val = trim($val);
$val = str_replace("\n", "\\n", $val);

$sel = "";
if(isset($seloptions[$val]) && $val == $seloptions[$val])
{
$sel = " selected=\"selected\"";
}

						$seloptions[$val] = $val;
}
}
$expoptions = explode("\n", $options);
if(is_array($expoptions))
{
foreach($expoptions as $key => $val)
{
$val = trim($val);
$val = str_replace("\n", "\\n", $val);

$sel = "";
if(isset($seloptions[$val]) && $val == $seloptions[$val])
{
$sel = " selected=\"selected\"";
}


eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";");
}


eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";");
}

Zeile 683Zeile 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)
{
eval("\$customfields = \"".$templates->get("usercp_profile_profilefields")."\";");

	if($customfields)
{
eval("\$customfields = \"".$templates->get("usercp_profile_profilefields")."\";");

	}


	}


	if($mybb->usergroup['cancustomtitle'] == 1)
{
if($mybb->usergroup['usertitle'] == "")
{
$defaulttitle = '';
$usertitles = $cache->read('usertitles');

	if($mybb->usergroup['cancustomtitle'] == 1)
{
if($mybb->usergroup['usertitle'] == "")
{
$defaulttitle = '';
$usertitles = $cache->read('usertitles');





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

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

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

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

		}


		}


		$newtitle = '';
if(trim($user['usertitle']) == '')
{
$lang->current_custom_usertitle = '';
}
else

		$newtitle = '';
if(trim($user['usertitle']) == '')
{
$lang->current_custom_usertitle = '';
}
else

		{

		{

			if($errors)
{
$newtitle = htmlspecialchars_uni($user['usertitle']);
$user['usertitle'] = $mybb->user['usertitle'];

			if($errors)
{
$newtitle = htmlspecialchars_uni($user['usertitle']);
$user['usertitle'] = $mybb->user['usertitle'];

			}
}


			}
}


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

$currentcustom = $reverttitle = '';
if(!empty($mybb->user['usertitle']))
{
eval("\$currentcustom = \"".$templates->get("usercp_profile_customtitle_currentcustom")."\";");

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

$currentcustom = $reverttitle = '';
if(!empty($mybb->user['usertitle']))
{
eval("\$currentcustom = \"".$templates->get("usercp_profile_customtitle_currentcustom")."\";");





			if($mybb->user['usertitle'] != $mybb->usergroup['usertitle'])
{
eval("\$reverttitle = \"".$templates->get("usercp_profile_customtitle_reverttitle")."\";");

			if($mybb->user['usertitle'] != $mybb->usergroup['usertitle'])
{
eval("\$reverttitle = \"".$templates->get("usercp_profile_customtitle_reverttitle")."\";");

Zeile 746Zeile 741
		}

eval("\$customtitle = \"".$templates->get("usercp_profile_customtitle")."\";");

		}

eval("\$customtitle = \"".$templates->get("usercp_profile_customtitle")."\";");

	}
else
{

	}
else
{

		$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 920Zeile 916
	elseif(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 3)
{
$instant_pm_subscribe_selected = "selected=\"selected\"";

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

	}

	}

	else
{
$no_auto_subscribe_selected = "selected=\"selected\"";

	else
{
$no_auto_subscribe_selected = "selected=\"selected\"";

Zeile 942Zeile 938
	else
{
$showvideoscheck = "";

	else
{
$showvideoscheck = "";

	}

	}


if(isset($user['showsigs']) && $user['showsigs'] == 1)


if(isset($user['showsigs']) && $user['showsigs'] == 1)

	{

	{

		$showsigscheck = "checked=\"checked\"";

		$showsigscheck = "checked=\"checked\"";

	}
else
{

	}
else
{

		$showsigscheck = "";
}

if(isset($user['showavatars']) && $user['showavatars'] == 1)
{
$showavatarscheck = "checked=\"checked\"";

		$showsigscheck = "";
}

if(isset($user['showavatars']) && $user['showavatars'] == 1)
{
$showavatarscheck = "checked=\"checked\"";

	}

	}

	else

	else

	{

	{

		$showavatarscheck = "";
}

if(isset($user['showquickreply']) && $user['showquickreply'] == 1)

		$showavatarscheck = "";
}

if(isset($user['showquickreply']) && $user['showquickreply'] == 1)

	{

	{

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

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

Zeile 978Zeile 974
	else
{
$receivepmscheck = "";

	else
{
$receivepmscheck = "";

	}

	}


if(isset($user['receivefrombuddy']) && $user['receivefrombuddy'] == 1)
{


if(isset($user['receivefrombuddy']) && $user['receivefrombuddy'] == 1)
{

Zeile 1897Zeile 1893
		if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0)
{
continue;

		if($forumpermissions['canview'] == 0 || $forumpermissions['canviewthreads'] == 0)
{
continue;

		}


		}


		$lightbulb = get_forum_lightbulb(array('open' => $forum['open'], 'lastread' => $forum['lastread']), array('lastpost' => $forum['lastpost']));
$folder = $lightbulb['folder'];


		$lightbulb = get_forum_lightbulb(array('open' => $forum['open'], 'lastread' => $forum['lastread']), array('lastpost' => $forum['lastpost']));
$folder = $lightbulb['folder'];


Zeile 1906Zeile 1902
		{
$posts = '-';
$threads = '-';

		{
$posts = '-';
$threads = '-';

		}

		}

		else
{
$posts = my_number_format($forum['posts']);

		else
{
$posts = my_number_format($forum['posts']);

Zeile 1942Zeile 1938
			else
{
$lastpost_profilelink = build_profile_link($lastposter, $forum['lastposteruid']);

			else
{
$lastpost_profilelink = build_profile_link($lastposter, $forum['lastposteruid']);

			}

			}

			$full_lastpost_subject = $lastpost_subject = htmlspecialchars_uni($forum['lastpostsubject']);
if(my_strlen($lastpost_subject) > 25)
{

			$full_lastpost_subject = $lastpost_subject = htmlspecialchars_uni($forum['lastpostsubject']);
if(my_strlen($lastpost_subject) > 25)
{

Zeile 1955Zeile 1951
		if($mybb->settings['showdescriptions'] == 0)
{
$forum['description'] = "";

		if($mybb->settings['showdescriptions'] == 0)
{
$forum['description'] = "";

		}


		}


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


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


Zeile 2062Zeile 2058
			$url = "index.php";
}
redirect($url, $lang->redirect_forumsubscriptionadded);

			$url = "index.php";
}
redirect($url, $lang->redirect_forumsubscriptionadded);

	}
else
{
$thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT));
if(!$thread || $thread['visible'] == -1)
{
error($lang->error_invalidthread);
}

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

	}
else
{
$thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT));
if(!$thread || $thread['visible'] == -1)
{
error($lang->error_invalidthread);
}

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

		$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);

		$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);

		}


		}


		add_breadcrumb($lang->nav_subthreads, "usercp.php?action=subscriptions");
add_breadcrumb($lang->nav_addsubscription);


		add_breadcrumb($lang->nav_subthreads, "usercp.php?action=subscriptions");
add_breadcrumb($lang->nav_addsubscription);


Zeile 2128Zeile 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'));


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


Zeile 2147Zeile 2143
		$plugins->run_hooks("usercp2_removesubscription_forum");

remove_subscribed_forum($forum['fid']);

		$plugins->run_hooks("usercp2_removesubscription_forum");

remove_subscribed_forum($forum['fid']);

		if($server_http_referer && $mybb->request_method != 'post')
{
$url = $server_http_referer;
}
else
{
$url = "usercp.php?action=forumsubscriptions";
}

		if($server_http_referer && $mybb->request_method != 'post')
{
$url = $server_http_referer;
}
else
{
$url = "usercp.php?action=forumsubscriptions";
}

		redirect($url, $lang->redirect_forumsubscriptionremoved);
}
else
{
$thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT));
if(!$thread)

		redirect($url, $lang->redirect_forumsubscriptionremoved);
}
else
{
$thread = get_thread($mybb->get_input('tid', MyBB::INPUT_INT));
if(!$thread)

		{

		{

			error($lang->error_invalidthread);
}

			error($lang->error_invalidthread);
}





		// Is the currently logged in user a moderator of this forum?
$ismod = is_moderator($thread['fid']);

		// Is the currently logged in user a moderator of this forum?
$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))
{

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

Zeile 2181Zeile 2177
		$plugins->run_hooks("usercp2_removesubscription_thread");

remove_subscribed_thread($thread['tid']);

		$plugins->run_hooks("usercp2_removesubscription_thread");

remove_subscribed_thread($thread['tid']);

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

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

			$url = "usercp.php?action=subscriptions";
}
redirect($url, $lang->redirect_subscriptionremoved);

			$url = "usercp.php?action=subscriptions";
}
redirect($url, $lang->redirect_subscriptionremoved);

Zeile 2357Zeile 2353
	{
$sig = $mybb->user['signature'];
$template = "usercp_editsig_current";

	{
$sig = $mybb->user['signature'];
$template = "usercp_editsig_current";

	}
else

	}
else

	{
$sig = $mybb->get_input('signature');
$template = false;

	{
$sig = $mybb->get_input('signature');
$template = false;

Zeile 2418Zeile 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 2467Zeile 2464
		if($mybb->settings['sigmycode'] != 0 && $mybb->settings['bbcodeinserter'] != 0 && $mybb->user['showcodebuttons'] != 0)
{
$codebuttons = build_mycode_inserter("signature");

		if($mybb->settings['sigmycode'] != 0 && $mybb->settings['bbcodeinserter'] != 0 && $mybb->user['showcodebuttons'] != 0)
{
$codebuttons = build_mycode_inserter("signature");

		}

$plugins->run_hooks("usercp_editsig_end");


		}

$plugins->run_hooks("usercp_editsig_end");


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


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


Zeile 2527Zeile 2524
		$avatar_error = $lang->error_avatarimagemissing;
}
elseif($mybb->settings['allowremoteavatars']) // remote avatar

		$avatar_error = $lang->error_avatarimagemissing;
}
elseif($mybb->settings['allowremoteavatars']) // remote avatar

	{

	{

		$mybb->input['avatarurl'] = trim($mybb->get_input('avatarurl'));
if(validate_email_format($mybb->input['avatarurl']) != false)
{

		$mybb->input['avatarurl'] = trim($mybb->get_input('avatarurl'));
if(validate_email_format($mybb->input['avatarurl']) != false)
{

Zeile 2697Zeile 2694
	if($mybb->usergroup['canuploadavatars'] == 1)
{
eval("\$avatarupload = \"".$templates->get("usercp_avatar_upload")."\";");

	if($mybb->usergroup['canuploadavatars'] == 1)
{
eval("\$avatarupload = \"".$templates->get("usercp_avatar_upload")."\";");

	}


	}


	$avatar_remote = '';
if($mybb->settings['allowremoteavatars'] == 1)
{
eval("\$avatar_remote = \"".$templates->get("usercp_avatar_remote")."\";");

	$avatar_remote = '';
if($mybb->settings['allowremoteavatars'] == 1)
{
eval("\$avatar_remote = \"".$templates->get("usercp_avatar_remote")."\";");

	}


	}


	$removeavatar = '';
if(!empty($mybb->user['avatar']))
{
eval("\$removeavatar = \"".$templates->get("usercp_avatar_remove")."\";");

	$removeavatar = '';
if(!empty($mybb->user['avatar']))
{
eval("\$removeavatar = \"".$templates->get("usercp_avatar_remove")."\";");

	}

$plugins->run_hooks("usercp_avatar_end");

	}

$plugins->run_hooks("usercp_avatar_end");


if(!isset($avatar_error))
{


if(!isset($avatar_error))
{

Zeile 2754Zeile 2751

// 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);
}
if(my_substr($new_list, -1) == ",")
{
$new_list = my_substr($new_list, 0, my_strlen($new_list)-2);
}

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


// 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);
}

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


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


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






// We want to add the user to our buddy list


// We want to add the user to our buddy list

		if($mybb->user['buddylist'] != '')
{

		if($mybb->user['buddylist'] != '')
{

			$mybb->user['buddylist'] = explode(',', $mybb->user['buddylist']);

			$mybb->user['buddylist'] = explode(',', $mybb->user['buddylist']);

		}

		}

		else
{
$mybb->user['buddylist'] = array();

		else
{
$mybb->user['buddylist'] = array();

		}


		}


		$mybb->user['buddylist'][] = (int)$request['uid'];

// Now we have the new list, so throw it all back together

		$mybb->user['buddylist'][] = (int)$request['uid'];

// Now we have the new list, so throw it all back together

Zeile 2811Zeile 2808
			'touid' => $user['uid'],
'language' => $user['language'],
'language_file' => 'usercp'

			'touid' => $user['uid'],
'language' => $user['language'],
'language_file' => 'usercp'

		);

send_pm($pm, $mybb->user['uid'], true);

$db->delete_query('buddyrequests', 'id='.(int)$request['id']);
}
else
{

		);

send_pm($pm, $mybb->user['uid'], true);

$db->delete_query('buddyrequests', 'id='.(int)$request['id']);
}
else
{

		error($lang->user_doesnt_exist);
}


		error($lang->user_doesnt_exist);
}


Zeile 3646Zeile 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 3722Zeile 3719

$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);


$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 3740Zeile 3737
	$groupsledlist = '';

switch($db->type)

	$groupsledlist = '';

switch($db->type)

	{

	{

		case "pgsql":
case "sqlite":
$query = $db->query("

		case "pgsql":
case "sqlite":
$query = $db->query("

Zeile 3911Zeile 3908
		elseif($usergroup['type'] == 5)
{
$conditions = $lang->usergroup_joins_invite;

		elseif($usergroup['type'] == 5)
{
$conditions = $lang->usergroup_joins_invite;

		}
else
{

		}
else
{

			$conditions = $lang->usergroup_joins_anyone;
}


			$conditions = $lang->usergroup_joins_anyone;
}


Zeile 4143Zeile 4140
	while($attachment = $db->fetch_array($query))
{
remove_attachment($attachment['pid'], '', $attachment['aid']);

	while($attachment = $db->fetch_array($query))
{
remove_attachment($attachment['pid'], '', $attachment['aid']);

	}

	}

	$plugins->run_hooks("usercp_do_attachments_end");
redirect("usercp.php?action=attachments", $lang->attachments_deleted);
}

	$plugins->run_hooks("usercp_do_attachments_end");
redirect("usercp.php?action=attachments", $lang->attachments_deleted);
}

Zeile 4157Zeile 4154
	if(my_strlen($mybb->get_input('notepad')) > 60000)
{
$mybb->input['notepad'] = my_substr($mybb->get_input('notepad'), 0, 60000);

	if(my_strlen($mybb->get_input('notepad')) > 60000)
{
$mybb->input['notepad'] = my_substr($mybb->get_input('notepad'), 0, 60000);

	}


	}


	$plugins->run_hooks("usercp_do_notepad_start");
$db->update_query("users", array('notepad' => $db->escape_string($mybb->get_input('notepad'))), "uid='".$mybb->user['uid']."'");
$plugins->run_hooks("usercp_do_notepad_end");

	$plugins->run_hooks("usercp_do_notepad_start");
$db->update_query("users", array('notepad' => $db->escape_string($mybb->get_input('notepad'))), "uid='".$mybb->user['uid']."'");
$plugins->run_hooks("usercp_do_notepad_end");

Zeile 4193Zeile 4190
		$percent = $mybb->user['postnum']*100/$posts;
$percent = round($percent, 2);
}

		$percent = $mybb->user['postnum']*100/$posts;
$percent = round($percent, 2);
}





	$colspan = 2;
$lang->posts_day = $lang->sprintf($lang->posts_day, my_number_format($perday), $percent);
$regdate = my_date('relative', $mybb->user['regdate']);

	$colspan = 2;
$lang->posts_day = $lang->sprintf($lang->posts_day, my_number_format($perday), $percent);
$regdate = my_date('relative', $mybb->user['regdate']);





	$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 4208Zeile 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 4378Zeile 4377
		{
$forumpermissions = $fpermissions[$subscription['fid']];


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

Zeile 4427Zeile 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 4603Zeile 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 4684Zeile 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;