<?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, // Alle errors uit spider-markov.class.php eruit halen if (preg_match("/spider-markov.class.php/", p_sFile)) { return; } // Alle errors van ftp_chdir() eruit halen if (preg_match("/ftp_chdir\(\)/", sMessage = addslashes(// dit is nog voor ajax functies waarbij anders de error niet te zien is //echo '<br><br>'.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.