This PHP project is similar to Lagger.
It's based ("compilation") on Nette Debugger (debug bar, emailing) and PHP IDS.
Extended functionality:
- one PHP file include is required
- config file with many settings: developementDebug, privilegedIPs, emailPhpSnooze, PHPWarningEmail, idsReportedLevel, idsRedirectedLevel, idsExceptions, ...
- events (from error handler and also from PHP IDS) can be logged to database
Approx. performance degradation:
- error handling: +0,5MB memory, +2ms exec time
- ids catching: +0.8MB memory, +20ms exec time
- writing events to database (synchro): +1.5MB memory, +50ms exec time
Use case:
IT Operation Manager configures PHPWarningEmail to emails: yours, product manager, developer. If problem is catched, all responsible roles are notified by email. Following is standard fix process.
IT Operation Manager configures idsWarningEmail to your email. If any attack is detected (also false positive), he is notified in realtime.
Uncaught TypeError: Argument 1 passed to NDebug::_exceptionHandler() must be an instance of Exception, instance of Error given in /data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/Debug.php:612 Stack trace: #0 [internal function]: NDebug::_exceptionHandler(Object(Error)) #1 {main} thrown
File: /data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/Debug.php Line: 612
605:
606: /**
607: * Handler to catch uncaught exception.
608: * @param Exception
609: * @return void
610: * @internal
611: */
612: public static function _exceptionHandler(Exception $exception)
613: {
614: if (!headers_sent()) { // for PHP < 5.2.4
615: header('HTTP/1.1 500 Internal Server Error');
616: }
617:
618: $htmlMode = !self::$ajaxDetected && !preg_match('#^Content-Type: (?!text/html)#im', implode("\n", headers_list()));
619:
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/index.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck.conf.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/zcheck.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/exceptions.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/Debug.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/DebugPanel.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/Object.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/IDebugPanel.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/ZoznamPanel.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/DebugHelpers.php |
/data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/templates/bluescreen.phtml |
GEOIP_COUNTRY_CODE | Warning: require_once(): open_basedir restriction in effect. File(zcheck/dibi/dibi.min.min.php) is not within the allowed path(s): (/nfsmnt/:/data/:/usr/share/php:/usr/bin/:/apachetmp:/tmp/:/var/tmp/:/dev/urandom:/usr/lib/x86_64-linux-gnu/ImageMagick-6.9.11/bin-q16/:/usr/local/bin/:/etc/ssl/certs/ca-certificates.crt:/usr/lib/php:/usr/php73/bin/) in /data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/Debug.php on line 548 Warning: require_once(zcheck/dibi/dibi.min.min.php): failed to open stream: Operation not permitted in /data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/Debug.php on line 548 Fatal error: require_once(): Failed opening required 'zcheck/dibi/dibi.min.min.php' (include_path='.:/usr/share/php') in /data/8/9/89f20e22-67ad-4218-acff-ee497243fcc6/jangaraj.com/sub/zcheck/zcheck/Nette/Debug.php on line 548 |
---|