diff options
-rw-r--r-- | apis/init.inc.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apis/init.inc.php b/apis/init.inc.php index 617114d7..e0dcf707 100644 --- a/apis/init.inc.php +++ b/apis/init.inc.php @@ -6,4 +6,10 @@ if (!isLocalExecution()) exit(0); +if (($report = Request::get('crashreport', false, 'string')) !== false) { + $details = file_get_contents($report); + EventLog::failure('Problems during bootup hook', $details); + exit(0); +} + Event::systemBooted(); |