topical media & game development
portal-classes-core.error.php
<?PHP
error_reporting(E_ALL);
class Error {
var arrErrors = array();
var core) {
this->core = &this->numberErrors = 0;
}
function setErrorHandler () {
set_error_handler(array(p_nType, p_sFile, p_sFile)) {
return;
}
// Alle errors van ftp_chdir() eruit halen
if (preg_match("/ftp_chdir\(\)/", sMessage = addslashes(sMessage.'<br><br>';
// numberErrors toch gebruiken omdat we de array met errors stoppen bij 100, en we toch wel willen weten
// hoeveel errors er nu echt zijn
sql = "INSERT INTO bsu_errors (type, message, file, line, submit_date)
VALUES ('".sMessage."', '".p_nLine."', NOW() ) ";
//sql);
//this->core->Db->getLastInsertedId();
this->getNumberErrors() < 100) {
p_nType,
"message" => p_sFile,
"line" => errorId);
}
res, 'message: '.p_sFile.' - line: '.res);
}
function getNumberErrors () {
return this->arrErrors;
}
}
?>
(C) A. Eliëns
2/9/2007
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.