From fca795f8329bb169e79a2e22063c1d4f1464b0f4 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 6 Feb 2011 16:34:04 -0500 Subject: Set a savemsg when a crash report exists and show across top instead of redirecting --- usr/local/www/index.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'usr/local/www') diff --git a/usr/local/www/index.php b/usr/local/www/index.php index e9c193f..a38a3c3 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -56,10 +56,8 @@ if(is_array($crash)) { continue; $x++; } - if($x > 0) { - Header("Location: /crash_reporter.php"); - exit; - } + if($x > 0) + $savemsg = "We have dedicated a crash report. Click here to submit and or delete."; } // Turn off csrf for the dashboard @@ -471,6 +469,10 @@ include("fbegin.inc"); echo $jscriptstr; if(!file_exists("/usr/local/www/themes/{$g['theme']}/no_big_logo")) echo "

"; + +if ($savemsg) + print_info_box($savemsg); + ?>