Vergleich inc/class_error.php - 1.8.6 - 1.8.20

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

// Do not log something that might be executable
$message = str_replace('<?', '< ?', $message);


// Do not log something that might be executable
$message = str_replace('<?', '< ?', $message);

 

if(function_exists('debug_backtrace'))
{
ob_start();
debug_print_backtrace();
$trace = ob_get_contents();
ob_end_clean();

$back_trace = "\t<back_trace>{$trace}</back_trace>\n";
}
else
{
$back_trace = '';
}


$error_data = "<error>\n";
$error_data .= "\t<dateline>".TIME_NOW."</dateline>\n";


$error_data = "<error>\n";
$error_data .= "\t<dateline>".TIME_NOW."</dateline>\n";

Zeile 338Zeile 352
		$error_data .= "\t<type>".$type."</type>\n";
$error_data .= "\t<friendly_type>".$this->error_types[$type]."</friendly_type>\n";
$error_data .= "\t<message>".$message."</message>\n";

		$error_data .= "\t<type>".$type."</type>\n";
$error_data .= "\t<friendly_type>".$this->error_types[$type]."</friendly_type>\n";
$error_data .= "\t<message>".$message."</message>\n";

 
		$error_data .= $back_trace;

		$error_data .= "</error>\n\n";

if(trim($mybb->settings['errorloglocation']) != "")
{
@error_log($error_data, 3, $mybb->settings['errorloglocation']);

		$error_data .= "</error>\n\n";

if(trim($mybb->settings['errorloglocation']) != "")
{
@error_log($error_data, 3, $mybb->settings['errorloglocation']);

		}
else
{

		}
else
{

			@error_log($error_data, 0);
}
}

			@error_log($error_data, 0);
}
}

Zeile 373Zeile 388
			$message = "SQL Error: {$message['error_no']} - {$message['error']}\nQuery: {$message['query']}";
}


			$message = "SQL Error: {$message['error_no']} - {$message['error']}\nQuery: {$message['query']}";
}


		$message = "Your copy of MyBB running on {$mybb->settings['bbname']} ({$mybb->settings['bburl']}) has experienced an error. Details of the error include:\n---\nType: $type\nFile: $file (Line no. $line)\nMessage\n$message";















		if(function_exists('debug_backtrace'))
{
ob_start();
debug_print_backtrace();
$trace = ob_get_contents();
ob_end_clean();

$back_trace = "\nBack Trace: {$trace}";
}
else
{
$back_trace = '';
}

$message = "Your copy of MyBB running on {$mybb->settings['bbname']} ({$mybb->settings['bburl']}) has experienced an error. Details of the error include:\n---\nType: $type\nFile: $file (Line no. $line)\nMessage\n$message{$back_trace}";


@my_mail($mybb->settings['adminemail'], "MyBB error on {$mybb->settings['bbname']}", $message, $mybb->settings['adminemail']);



@my_mail($mybb->settings['adminemail'], "MyBB error on {$mybb->settings['bbname']}", $message, $mybb->settings['adminemail']);


Zeile 516Zeile 545
			@header('Status: 503 Service Temporarily Unavailable');
@header('Retry-After: 1800');
@header("Content-type: text/html; charset={$charset}");

			@header('Status: 503 Service Temporarily Unavailable');
@header('Retry-After: 1800');
@header("Content-type: text/html; charset={$charset}");

			$file_name = basename(__FILE__);

			$file_name = htmlspecialchars_uni(basename($_SERVER['SCRIPT_FILENAME']));


echo <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">


echo <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

Zeile 542Zeile 571
<body>
<div id="container">
<div id="logo">

<body>
<div id="container">
<div id="logo">

			<h1><a href="http://www.mybb.com/" title="MyBB"><span class="invisible">MyBB</span></a></h1>

			<h1><a href="https://mybb.com/" title="MyBB"><span class="invisible">MyBB</span></a></h1>

		</div>

<div id="content">

		</div>

<div id="content">

Zeile 550Zeile 579

<div id="error">
{$error_message}


<div id="error">
{$error_message}

				<p id="footer">Please contact the <a href="http://www.mybb.com">MyBB Group</a> for technical support.</p>

				<p id="footer">Please contact the <a href="https://mybb.com">MyBB Group</a> for technical support.</p>

			</div>
</div>
</div>

			</div>
</div>
</div>

Zeile 575Zeile 604
		<h2>{$title}</h2>
<div id="mybb_error_error">
{$error_message}

		<h2>{$title}</h2>
<div id="mybb_error_error">
{$error_message}

			<p id="mybb_error_footer">Please contact the <a href="http://www.mybb.com">MyBB Group</a> for technical support.</p>

			<p id="mybb_error_footer">Please contact the <a href="https://mybb.com">MyBB Group</a> for technical support.</p>

		</div>
</div>
EOF;

		</div>
</div>
EOF;