44
44
1024 => 'User Notice'
47
if(($this->UserErrors & $Number))
47
if (($this->UserErrors & $Number))
49
49
// Error was suppressed with the @-operator
50
if(0 === error_reporting())
50
if (0 === error_reporting())
57
57
$Backtrace[0]['file'] = $FileName;
58
58
$Backtrace[0]['line'] = $LineNumber;
59
59
$this->Report($Backtrace);
60
//if((E_ERROR | E_PARSE) & $Number)
60
//if ((E_ERROR | E_PARSE) & $Number)
81
81
'<meta http-equiv="Content-Type" content="text/html; charset='.$this->Encoding.'"></head><body>'."\n".
82
82
'An internal error occurred!<br/>'.
83
83
'Administrator will be notified and the problem will be investigated and fixed soon.'.'<br/><br/>';
84
if($this->ShowError == true)
84
if ($this->ShowError == true)
85
85
$Output .= '<pre>'.$Message.'</pre><br/>';
86
86
$Output .= '</body></html>';
92
92
$Date = date('Y-m-d H:i:s');
93
93
$Error = '# '.$Date."\n";
94
foreach($Backtrace as $Item)
94
foreach ($Backtrace as $Item)
96
if(!array_key_exists('line', $Item)) $Item['line'] = '';
97
if(!array_key_exists('file', $Item)) $Item['file'] = '';
96
if (!array_key_exists('line', $Item)) $Item['line'] = '';
97
if (!array_key_exists('file', $Item)) $Item['file'] = '';
99
99
$Error .= ' '.$Item['file'].'('.$Item['line'].")\t".$Item['function'];
101
if(array_key_exists('args', $Item) and is_array($Item['args']))
102
foreach($Item['args'] as $Item)
101
if (array_key_exists('args', $Item) and is_array($Item['args']))
102
foreach ($Item['args'] as $Item)
104
if(is_object($Item)) ;
105
else if(is_array($Item)) $Arguments .= "'".serialize($Item)."',";
104
if (is_object($Item)) ;
105
else if (is_array($Item)) $Arguments .= "'".serialize($Item)."',";
106
106
else $Arguments .= "'".$Item."',";
108
if(strlen($Arguments) > 0) $Error .= '('.substr($Arguments, 0, -1).')';
108
if (strlen($Arguments) > 0) $Error .= '('.substr($Arguments, 0, -1).')';
113
foreach($this->OnError as $OnError)
113
foreach ($this->OnError as $OnError)
114
114
call_user_func($OnError, $Error);