Zeile 330 | Zeile 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 338 | Zeile 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 373 | Zeile 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 542 | Zeile 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 550 | Zeile 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 575 | Zeile 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;
|