Vergleich usercp.php - 1.8.32 - 1.8.33

  Keine Änderungen   Hinzugefügt   Modifiziert   Entfernt
Zeile 512Zeile 512
				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 522
			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(!isset($mybb->input['profile_fields'][$field]))

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

Zeile 534Zeile 535
					$mybb->input['profile_fields'][$field] = '';
}
$userfield = $mybb->input['profile_fields'][$field];

					$mybb->input['profile_fields'][$field] = '';
}
$userfield = $mybb->input['profile_fields'][$field];

			}

			}

			else

			else

			{

			{

				$userfield = $user[$field];
}
if($type == "multiselect")

				$userfield = $user[$field];
}
if($type == "multiselect")

Zeile 546Zeile 547
					$useropts = $userfield;
}
else

					$useropts = $userfield;
}
else

				{

				{

					$useropts = explode("\n", $userfield);
}
if(is_array($useropts))

					$useropts = explode("\n", $userfield);
}
if(is_array($useropts))

Zeile 554Zeile 555
					foreach($useropts as $key => $val)
{
$val = htmlspecialchars_uni($val);

					foreach($useropts as $key => $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\"";
}

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


						$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")."\";");
}
if(!$profilefield['length'])
{
$profilefield['length'] = 3;
}


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

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

Zeile 597Zeile 598
						}

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

						}

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

					}
if(!$profilefield['length'])
{

					}
if(!$profilefield['length'])
{

						$profilefield['length'] = 1;
}


						$profilefield['length'] = 1;
}


Zeile 616Zeile 617
					{
$checked = "";
if($val == $userfield)

					{
$checked = "";
if($val == $userfield)

						{
$checked = " checked=\"checked\"";
}


						{
$checked = " checked=\"checked\"";
}


						eval("\$code .= \"".$templates->get("usercp_profile_profilefields_radio")."\";");

						eval("\$code .= \"".$templates->get("usercp_profile_profilefields_radio")."\";");

					}
}

					}
}

			}
elseif($type == "checkbox")
{
$userfield = htmlspecialchars_uni($userfield);
if($errors)

			}
elseif($type == "checkbox")
{
$userfield = htmlspecialchars_uni($userfield);
if($errors)

				{

				{

					$useropts = $userfield;

					$useropts = $userfield;

				}

				}

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

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

Zeile 641Zeile 642
					{
$seloptions[$val] = $val;
}

					{
$seloptions[$val] = $val;
}

				}

				}

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

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

Zeile 661Zeile 662
			{
$value = htmlspecialchars_uni($userfield);
eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";");

			{
$value = htmlspecialchars_uni($userfield);
eval("\$code = \"".$templates->get("usercp_profile_profilefields_textarea")."\";");

			}
else

			}
else

			{
$value = htmlspecialchars_uni($userfield);
$maxlength = "";

			{
$value = htmlspecialchars_uni($userfield);
$maxlength = "";

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

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





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


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


Zeile 683Zeile 684
				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 4378Zeile 4372
		{
$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 4421
					$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 4684Zeile 4678
				}

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