From 812ed2bb4cc294c4a99407abf4e23250f4e4586d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 6 Feb 2011 13:11:45 -0500 Subject: [PATCH] Redirect to crash reporter if a crash exists for processing. The crash reporter will either upload the data per the operators consent and or delete the data afterwards and redirect back. --- usr/local/www/index.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/usr/local/www/index.php b/usr/local/www/index.php index c1fdc26062..1ea8e5bd91 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -42,6 +42,14 @@ ##|*MATCH=index.php* ##|-PRIV +$crash = glob("/var/crash/*"); +if(is_array($crash)) { + if(count($crash) > 0) { + Header("Location: /crash_reporter.php"); + exit; + } +} + // Turn off csrf for the dashboard $nocsrf = true;