Vergleich usercp.php - 1.8.8 - 1.8.11

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 20Zeile 20
$templatelist .= ",usercp_editsig_suspended,usercp_editsig,usercp_avatar_current,usercp_options_timezone_option,usercp_drafts,usercp_options_language,usercp_options_date_format,usercp_profile_website,usercp_latest_subscribed,usercp_warnings";
$templatelist .= ",usercp_avatar,usercp_editlists_userusercp_editlists,usercp_drafts_draft,usercp_usergroups_joingroup,usercp_attachments_none,usercp_avatar_upload,usercp_options_timezone,usercp_usergroups_joinable_usergroup_join";
$templatelist .= ",usercp_warnings_warning,usercp_nav_messenger_tracking,multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start";

$templatelist .= ",usercp_editsig_suspended,usercp_editsig,usercp_avatar_current,usercp_options_timezone_option,usercp_drafts,usercp_options_language,usercp_options_date_format,usercp_profile_website,usercp_latest_subscribed,usercp_warnings";
$templatelist .= ",usercp_avatar,usercp_editlists_userusercp_editlists,usercp_drafts_draft,usercp_usergroups_joingroup,usercp_attachments_none,usercp_avatar_upload,usercp_options_timezone,usercp_usergroups_joinable_usergroup_join";
$templatelist .= ",usercp_warnings_warning,usercp_nav_messenger_tracking,multipage,multipage_end,multipage_jump_page,multipage_nextpage,multipage_page,multipage_page_current,multipage_page_link_current,multipage_prevpage,multipage_start";

$templatelist .= ",codebuttons,usercp_nav_messenger_compose,usercp_options_language_option,usercp_editlists,usercp_profile_contact_fields_field,usercp_latest_subscribed_threads,usercp_profile_contact_fields,usercp_profile_day";

$templatelist .= ",codebuttons,usercp_nav_messenger_compose,usercp_options_language_option,usercp_editlists,usercp_profile_contact_fields_field,usercp_latest_subscribed_threads,usercp_profile_contact_fields,usercp_profile_day,usercp_nav_home";

$templatelist .= ",usercp_profile_profilefields_select_option,usercp_profile_profilefields_multiselect,usercp_profile_profilefields_select,usercp_profile_profilefields_textarea,usercp_profile_profilefields_radio,usercp_profile_profilefields_checkbox";
$templatelist .= ",usercp_options_tppselect_option,usercp_options_pppselect_option,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden,usercp_avatar_auto_resize_auto,usercp_avatar_auto_resize_user,usercp_options";

$templatelist .= ",usercp_profile_profilefields_select_option,usercp_profile_profilefields_multiselect,usercp_profile_profilefields_select,usercp_profile_profilefields_textarea,usercp_profile_profilefields_radio,usercp_profile_profilefields_checkbox";
$templatelist .= ",usercp_options_tppselect_option,usercp_options_pppselect_option,forumbit_depth2_forum_lastpost_never,forumbit_depth2_forum_lastpost_hidden,usercp_avatar_auto_resize_auto,usercp_avatar_auto_resize_user,usercp_options";

$templatelist .= ",usercp_editlists_no_buddies,usercp_editlists_no_ignored,usercp_editlists_no_requests,usercp_editlists_received_requests,usercp_editlists_sent_requests,usercp_drafts_draft_thread,usercp_drafts_draft_forum";
$templatelist .= ",usercp_usergroups_leader_usergroup_memberlist,usercp_usergroups_leader_usergroup_moderaterequests,usercp_usergroups_memberof_usergroup_leaveprimary,usercp_usergroups_memberof_usergroup_display,usercp_email";

$templatelist .= ",usercp_editlists_no_buddies,usercp_editlists_no_ignored,usercp_editlists_no_requests,usercp_editlists_received_requests,usercp_editlists_sent_requests,usercp_drafts_draft_thread,usercp_drafts_draft_forum,usercp_editlists_user";
$templatelist .= ",usercp_usergroups_leader_usergroup_memberlist,usercp_usergroups_leader_usergroup_moderaterequests,usercp_usergroups_memberof_usergroup_leaveprimary,usercp_usergroups_memberof_usergroup_display,usercp_email,usercp_options_pms";

$templatelist .= ",usercp_usergroups_memberof_usergroup_leaveleader,usercp_usergroups_memberof_usergroup_leaveother,usercp_usergroups_memberof_usergroup_leave,usercp_usergroups_joinable_usergroup_description,usercp_options_time_format";

$templatelist .= ",usercp_usergroups_memberof_usergroup_leaveleader,usercp_usergroups_memberof_usergroup_leaveother,usercp_usergroups_memberof_usergroup_leave,usercp_usergroups_joinable_usergroup_description,usercp_options_time_format";

$templatelist .= ",usercp_editlists_sent_request,usercp_editlists_received_request,usercp_drafts_none,usercp_usergroups_memberof_usergroup_setdisplay,usercp_usergroups_memberof_usergroup_description,usercp_editlists_user";

$templatelist .= ",usercp_editlists_sent_request,usercp_editlists_received_request,usercp_drafts_none,usercp_usergroups_memberof_usergroup_setdisplay,usercp_usergroups_memberof_usergroup_description,usercp_options_quick_reply";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";


require_once "./global.php";
require_once MYBB_ROOT."inc/functions_post.php";

Zeile 70Zeile 70
	if(!$userhandler->verify_signature())
{
$error = inline_error($userhandler->get_friendly_errors());

	if(!$userhandler->verify_signature())
{
$error = inline_error($userhandler->get_friendly_errors());

 
	}

if(isset($error) || !empty($mybb->input['preview']))
{

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

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

Zeile 167Zeile 171
			}

$returndate = "{$return_day}-{$return_month}-{$return_year}";

			}

$returndate = "{$return_day}-{$return_month}-{$return_year}";

		}
else

		}
else

		{
$returndate = "";
}

		{
$returndate = "";
}

Zeile 300Zeile 304

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


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

	{

	{

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

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

Zeile 311Zeile 315
		}

eval("\$bdaydaysel .= \"".$templates->get("usercp_profile_day")."\";");

		}

eval("\$bdaydaysel .= \"".$templates->get("usercp_profile_day")."\";");

	}

	}


$bdaymonthsel = array();
foreach(range(1, 12) as $month)


$bdaymonthsel = array();
foreach(range(1, 12) as $month)

	{

	{

		$bdaymonthsel[$month] = '';
}
$bdaymonthsel[$bday[1]] = 'selected="selected"';

		$bdaymonthsel[$month] = '';
}
$bdaymonthsel[$bday[1]] = 'selected="selected"';





	$allselected = $noneselected = $ageselected = '';
if($user['birthdayprivacy'] == 'all' || !$user['birthdayprivacy'])
{

	$allselected = $noneselected = $ageselected = '';
if($user['birthdayprivacy'] == 'all' || !$user['birthdayprivacy'])
{

Zeile 332Zeile 336
	else if($user['birthdayprivacy'] == 'age')
{
$ageselected = " selected=\"selected\"";

	else if($user['birthdayprivacy'] == 'age')
{
$ageselected = " selected=\"selected\"";

	}


	}


	if(!my_validate_url($user['website']))
{
$user['website'] = '';

	if(!my_validate_url($user['website']))
{
$user['website'] = '';

	}

	}

	else
{
$user['website'] = htmlspecialchars_uni($user['website']);

	else
{
$user['website'] = htmlspecialchars_uni($user['website']);

	}

	}


if($user['icq'] != "0")
{


if($user['icq'] != "0")
{

Zeile 351Zeile 355
	if($user['icq'] == 0)
{
$user['icq'] = '';

	if($user['icq'] == 0)
{
$user['icq'] = '';

	}


	}


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

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

Zeile 360Zeile 364
		$user['aim'] = htmlspecialchars_uni($user['aim']);
$user['yahoo'] = htmlspecialchars_uni($user['yahoo']);
}

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





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

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





	foreach(array('icq', 'aim', 'yahoo', 'skype', 'google') as $cfield)
{
$contact_fields[$cfield] = '';
$csetting = 'allow'.$cfield.'field';
if($mybb->settings[$csetting] == '')

	foreach(array('icq', 'aim', 'yahoo', 'skype', 'google') as $cfield)
{
$contact_fields[$cfield] = '';
$csetting = 'allow'.$cfield.'field';
if($mybb->settings[$csetting] == '')

		{
continue;
}

		{
continue;
}


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


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

Zeile 380Zeile 384
		}

$cfieldsshow = true;

		}

$cfieldsshow = true;





		$lang_string = 'contact_field_'.$cfield;
$lang_string = $lang->{$lang_string};
$cfvalue = htmlspecialchars_uni($user[$cfield]);

		$lang_string = 'contact_field_'.$cfield;
$lang_string = $lang->{$lang_string};
$cfvalue = htmlspecialchars_uni($user[$cfield]);





		eval('$contact_fields[$cfield] = "'.$templates->get('usercp_profile_contact_fields_field').'";');
}


		eval('$contact_fields[$cfield] = "'.$templates->get('usercp_profile_contact_fields_field').'";');
}


Zeile 397Zeile 401
	{
$awaycheck = array('', '');
if($errors)

	{
$awaycheck = array('', '');
if($errors)

		{

		{

			if($user['away'] == 1)

			if($user['away'] == 1)

			{
$awaycheck[1] = "checked=\"checked\"";
}
else
{
$awaycheck[0] = "checked=\"checked\"";
}

			{
$awaycheck[1] = "checked=\"checked\"";
}
else
{
$awaycheck[0] = "checked=\"checked\"";
}

			$returndate = array();
$returndate[0] = $mybb->get_input('awayday', MyBB::INPUT_INT);
$returndate[1] = $mybb->get_input('awaymonth', MyBB::INPUT_INT);

			$returndate = array();
$returndate[0] = $mybb->get_input('awayday', MyBB::INPUT_INT);
$returndate[1] = $mybb->get_input('awaymonth', MyBB::INPUT_INT);

Zeile 425Zeile 429
			{
$awaynotice = $lang->away_notice;
$awaycheck[0] = "checked=\"checked\"";

			{
$awaynotice = $lang->away_notice;
$awaycheck[0] = "checked=\"checked\"";

			}

			}

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

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

			}

			}

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

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

Zeile 521Zeile 525
					{
$val = htmlspecialchars_uni($val);
$seloptions[$val] = $val;

					{
$val = htmlspecialchars_uni($val);
$seloptions[$val] = $val;

					}
}
$expoptions = explode("\n", $options);
if(is_array($expoptions))
{
foreach($expoptions as $key => $val)
{
$val = trim($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])

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

$sel = "";
if(isset($seloptions[$val]) && $val == $seloptions[$val])

						{

						{

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


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


Zeile 560Zeile 564
						if($val == htmlspecialchars_uni($userfield))
{
$sel = " selected=\"selected\"";

						if($val == htmlspecialchars_uni($userfield))
{
$sel = " selected=\"selected\"";

						}


						}


						eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";");
}
if(!$profilefield['length'])

						eval("\$select .= \"".$templates->get("usercp_profile_profilefields_select_option")."\";");
}
if(!$profilefield['length'])

					{

					{

						$profilefield['length'] = 1;
}


						$profilefield['length'] = 1;
}


Zeile 573Zeile 577
				}
}
elseif($type == "radio")

				}
}
elseif($type == "radio")

			{

			{

				$expoptions = explode("\n", $options);
if(is_array($expoptions))
{

				$expoptions = explode("\n", $options);
if(is_array($expoptions))
{

Zeile 595Zeile 599
				{
$useropts = $userfield;
}

				{
$useropts = $userfield;
}

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

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

				if(is_array($useropts))
{
foreach($useropts as $key => $val)

				if(is_array($useropts))
{
foreach($useropts as $key => $val)

Zeile 622Zeile 626
				}
}
elseif($type == "textarea")

				}
}
elseif($type == "textarea")

			{
$value = htmlspecialchars_uni($userfield);

			{
$value = htmlspecialchars_uni($userfield);

				eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";");
}
else

				eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";");
}
else

Zeile 631Zeile 635
				$value = htmlspecialchars_uni($userfield);
$maxlength = "";
if($profilefield['maxlength'] > 0)

				$value = htmlspecialchars_uni($userfield);
$maxlength = "";
if($profilefield['maxlength'] > 0)

				{

				{

					$maxlength = " maxlength=\"{$profilefield['maxlength']}\"";
}


					$maxlength = " maxlength=\"{$profilefield['maxlength']}\"";
}


Zeile 653Zeile 657
			$options = "";
$expoptions = "";
$useropts = "";

			$options = "";
$expoptions = "";
$useropts = "";

			$seloptions = "";

			$seloptions = array();

		}
}
if($customfields)

		}
}
if($customfields)

Zeile 731Zeile 735
{
// 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'));





	$plugins->run_hooks("usercp_do_options_start");

// Set up user handler.

	$plugins->run_hooks("usercp_do_options_start");

// Set up user handler.

Zeile 797Zeile 801
		$userhandler->update_user();

$plugins->run_hooks("usercp_do_options_end");

		$userhandler->update_user();

$plugins->run_hooks("usercp_do_options_end");





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

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

Zeile 861Zeile 865
	else
{
$hideemailcheck = "";

	else
{
$hideemailcheck = "";

	}


	}


	$no_auto_subscribe_selected = $instant_email_subscribe_selected = $instant_pm_subscribe_selected = $no_subscribe_selected = '';
if(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 1)
{

	$no_auto_subscribe_selected = $instant_email_subscribe_selected = $instant_pm_subscribe_selected = $no_subscribe_selected = '';
if(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 1)
{

Zeile 875Zeile 879
	else if(isset($user['subscriptionmethod']) && $user['subscriptionmethod'] == 3)
{
$instant_pm_subscribe_selected = "selected=\"selected\"";

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

	}
else

	}
else

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

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

	}


	}


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

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

	}

	}

	else
{
$showimagescheck = "";

	else
{
$showimagescheck = "";

	}

	}


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


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

	{

	{

		$showvideoscheck = "checked=\"checked\"";

		$showvideoscheck = "checked=\"checked\"";

	}
else
{

	}
else
{

		$showvideoscheck = "";
}


		$showvideoscheck = "";
}


Zeile 961Zeile 965
	else if(isset($user['dstcorrection']) && $user['dstcorrection'] == 1)
{
$dst_enabled_selected = "selected=\"selected\"";

	else if(isset($user['dstcorrection']) && $user['dstcorrection'] == 1)
{
$dst_enabled_selected = "selected=\"selected\"";

	}

	}

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

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

Zeile 1027Zeile 1031
	}

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

	}

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

	{

	{

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

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

	}


	}


	$date_format_options = $dateformat = '';
foreach($date_formats as $key => $format)

	$date_format_options = $dateformat = '';
foreach($date_formats as $key => $format)

	{
$selected = '';

	{
$selected = '';

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

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

	}

	}


$time_format_options = $timeformat = '';
foreach($time_formats as $key => $format)


$time_format_options = $timeformat = '';
foreach($time_formats as $key => $format)

Zeile 1059Zeile 1063

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

	{

	{

		eval("\$pms_from_buddys = \"".$templates->get("usercp_options_pms_from_buddys")."\";");

		eval("\$pms_from_buddys = \"".$templates->get("usercp_options_pms_from_buddys")."\";");

 
	}

$pms = '';
if($mybb->settings['enablepms'] != 0 && $mybb->usergroup['canusepms'] == 1)
{
eval("\$pms = \"".$templates->get("usercp_options_pms")."\";");
}

$quick_reply = '';
if($mybb->settings['quickreply'] == 1)
{
eval("\$quick_reply = \"".$templates->get("usercp_options_quick_reply")."\";");

	}

$threadview = array('linear' => '', 'threaded' => '');

	}

$threadview = array('linear' => '', 'threaded' => '');

Zeile 1126Zeile 1142
				$val = trim($val);
$selected = "";
if(isset($user['ppp']) && $user['ppp'] == $val)

				$val = trim($val);
$selected = "";
if(isset($user['ppp']) && $user['ppp'] == $val)

				{

				{

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


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


Zeile 1272Zeile 1288
		else
{
$userhandler->update_user();

		else
{
$userhandler->update_user();

			my_setcookie("mybbuser", $mybb->user['uid']."_".$userhandler->data['loginkey']);

			my_setcookie("mybbuser", $mybb->user['uid']."_".$userhandler->data['loginkey'], null, true);


// Notify the user by email that their password has been changed
$mail_message = $lang->sprintf($lang->email_changepassword, $mybb->user['username'], $mybb->user['email'], $mybb->settings['bbname'], $mybb->settings['bburl']);


// Notify the user by email that their password has been changed
$mail_message = $lang->sprintf($lang->email_changepassword, $mybb->user['username'], $mybb->user['email'], $mybb->settings['bbname'], $mybb->settings['bburl']);

Zeile 1655Zeile 1671
			}

if($thread['replies'] >= $mybb->settings['hottopic'] || $thread['views'] >= $mybb->settings['hottopicviews'])

			}

if($thread['replies'] >= $mybb->settings['hottopic'] || $thread['views'] >= $mybb->settings['hottopicviews'])

			{

			{

				$folder .= "hot";
$folder_label .= $lang->icon_hot;

				$folder .= "hot";
$folder_label .= $lang->icon_hot;

			}


			}


			if($thread['closed'] == 1)
{
$folder .= "lock";
$folder_label .= $lang->icon_lock;

			if($thread['closed'] == 1)
{
$folder .= "lock";
$folder_label .= $lang->icon_lock;

			}

$folder .= "folder";


			}

$folder .= "folder";


			if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";

			if($thread['visible'] == 0)
{
$bgcolor = "trow_shaded";

Zeile 1682Zeile 1698
			if($lastposteruid == 0)
{
$lastposterlink = $lastposter;

			if($lastposteruid == 0)
{
$lastposterlink = $lastposter;

			}

			}

			else
{
$lastposterlink = build_profile_link($lastposter, $lastposteruid);

			else
{
$lastposterlink = build_profile_link($lastposter, $lastposteruid);

			}


			}


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


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


Zeile 1696Zeile 1712
			{
case "2": // PM
$notification_type = $lang->pm_notification;

			{
case "2": // PM
$notification_type = $lang->pm_notification;

					break;

					break;

				case "1": // Email
$notification_type = $lang->email_notification;
break;

				case "1": // Email
$notification_type = $lang->email_notification;
break;

Zeile 1720Zeile 1736

eval("\$subscriptions = \"".$templates->get("usercp_subscriptions")."\";");
output_page($subscriptions);


eval("\$subscriptions = \"".$templates->get("usercp_subscriptions")."\";");
output_page($subscriptions);

}

}


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


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

Zeile 1786Zeile 1802
		elseif(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $forum['lastposteruid'] != $mybb->user['uid'])
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_hidden")."\";");

		elseif(isset($forumpermissions['canonlyviewownthreads']) && $forumpermissions['canonlyviewownthreads'] != 0 && $forum['lastposteruid'] != $mybb->user['uid'])
{
eval("\$lastpost = \"".$templates->get("forumbit_depth2_forum_lastpost_hidden")."\";");

		}

		}

		else
{
$forum['lastpostsubject'] = $parser->parse_badwords($forum['lastpostsubject']);

		else
{
$forum['lastpostsubject'] = $parser->parse_badwords($forum['lastpostsubject']);

Zeile 1918Zeile 1934

$sigpreview = $parser->parse_message($sig, $sig_parser);
eval("\$signature = \"".$templates->get($template)."\";");


$sigpreview = $parser->parse_message($sig, $sig_parser);
eval("\$signature = \"".$templates->get($template)."\";");

	}


	}


	// User has a current signature, so let's display it (but show an error message)
if($mybb->user['suspendsignature'] && $mybb->user['suspendsigtime'] > TIME_NOW)
{

	// User has a current signature, so let's display it (but show an error message)
if($mybb->user['suspendsignature'] && $mybb->user['suspendsigtime'] > TIME_NOW)
{

Zeile 1932Zeile 1948
	{
// User is allowed to edit their signature
if($mybb->settings['sigsmilies'] == 1)

	{
// User is allowed to edit their signature
if($mybb->settings['sigsmilies'] == 1)

		{

		{

			$sigsmilies = $lang->on;
$smilieinserter = build_clickable_smilies();

			$sigsmilies = $lang->on;
$smilieinserter = build_clickable_smilies();

		}
else

		}
else

		{
$sigsmilies = $lang->off;
}

		{
$sigsmilies = $lang->off;
}

Zeile 1951Zeile 1967
		if($mybb->settings['sightml'] == 1)
{
$sightml = $lang->on;

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

		}
else

		}
else

		{
$sightml = $lang->off;
}

		{
$sightml = $lang->off;
}

Zeile 2025Zeile 2041
			$db->update_query("users", $updated_avatar, "uid='".$mybb->user['uid']."'");
}
}

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

	else // remote avatar

	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 2085Zeile 2101
					$avatar_error = $lang->error_invalidavatarurl;
}
else

					$avatar_error = $lang->error_invalidavatarurl;
}
else

				{

				{

					fwrite($fp, $file);
fclose($fp);
list($width, $height, $type) = @getimagesize($tmp_name);

					fwrite($fp, $file);
fclose($fp);
list($width, $height, $type) = @getimagesize($tmp_name);

Zeile 2125Zeile 2141
				remove_avatars($mybb->user['uid']);
}
}

				remove_avatars($mybb->user['uid']);
}
}

 
	}
else // remote avatar, but remote avatars are not allowed
{
$avatar_error = $lang->error_remote_avatar_not_allowed;

	}

if(empty($avatar_error))

	}

if(empty($avatar_error))

Zeile 2169Zeile 2189
		$maxsize = get_friendly_size($mybb->settings['avatarsize']*1024);
$lang->avatar_note .= "<br />".$lang->sprintf($lang->avatar_note_size, $maxsize);
}

		$maxsize = get_friendly_size($mybb->settings['avatarsize']*1024);
$lang->avatar_note .= "<br />".$lang->sprintf($lang->avatar_note_size, $maxsize);
}

 

$plugins->run_hooks("usercp_avatar_intermediate");


$auto_resize = '';
if($mybb->settings['avatarresizing'] == "auto")


$auto_resize = '';
if($mybb->settings['avatarresizing'] == "auto")

Zeile 2176Zeile 2198
		eval("\$auto_resize = \"".$templates->get("usercp_avatar_auto_resize_auto")."\";");
}
else if($mybb->settings['avatarresizing'] == "user")

		eval("\$auto_resize = \"".$templates->get("usercp_avatar_auto_resize_auto")."\";");
}
else if($mybb->settings['avatarresizing'] == "user")

	{

	{

		eval("\$auto_resize = \"".$templates->get("usercp_avatar_auto_resize_user")."\";");

		eval("\$auto_resize = \"".$templates->get("usercp_avatar_auto_resize_user")."\";");

	}

	}


$avatarupload = '';
if($mybb->usergroup['canuploadavatars'] == 1)


$avatarupload = '';
if($mybb->usergroup['canuploadavatars'] == 1)

	{

	{

		eval("\$avatarupload = \"".$templates->get("usercp_avatar_upload")."\";");

		eval("\$avatarupload = \"".$templates->get("usercp_avatar_upload")."\";");

 
	}

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

	}

$removeavatar = '';

	}

$removeavatar = '';