Zeile 6 | Zeile 6 |
---|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* Website: http://www.mybboard.net * License: http://www.mybboard.net/about/license *
|
* $Id: class_error.php 3790 2008-04-23 22:50:33Z Tikitiki $
| * $Id: class_error.php 4271 2008-11-16 06:20:15Z Tikitiki $
|
*/ // Set to 1 if recieving a blank page (template failure).
| */ // Set to 1 if recieving a blank page (template failure).
|
Zeile 125 | Zeile 125 |
---|
$this->has_errors = true;
|
$this->has_errors = true;
|
if(($mybb->settings['errortypemedium'] == "both" || !$mybb->settings['errortypemedium']) || my_strpos(my_strtolower($this->error_types[$type]), $mybb->settings['errortypemedium']))
| // For some reason in the installer this setting is set to "<" $accepted_error_types = array('both', 'error', 'warning'); if(!in_array($mybb->settings['errortypemedium'], $accepted_error_types)) { $mybb->settings['errortypemedium'] = "both"; } if(($mybb->settings['errortypemedium'] == "both" || !$mybb->settings['errortypemedium']) || my_strpos(my_strtolower($this->error_types[$type]), $mybb->settings['errortypemedium']) || defined("IN_INSTALL") || defined("IN_UPGRADE"))
|
{ if(defined("IN_TASK")) {
| { if(defined("IN_TASK")) {
|
Zeile 138 | Zeile 145 |
---|
$filestr = " - Line: $line - File: $file"; }
|
$filestr = " - Line: $line - File: $file"; }
|
add_task_log($task['id'], "{$this->error_types[$type]} - [$type] ".var_export($message, true)."{$filestr}");
| add_task_log($task, "{$this->error_types[$type]} - [$type] ".var_export($message, true)."{$filestr}");
|
} // Saving error to log file.
| } // Saving error to log file.
|
Zeile 449 | Zeile 456 |
---|
if(!headers_sent()) { @header("Content-type: text/html; charset={$charset}");
|
if(!headers_sent()) { @header("Content-type: text/html; charset={$charset}");
|
| $_SERVER['PHP_SELF'] = htmlspecialchars_uni($_SERVER['PHP_SELF']);
|
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">
|