diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-02-06 16:34:04 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-02-06 16:34:04 -0500 |
commit | fca795f8329bb169e79a2e22063c1d4f1464b0f4 (patch) | |
tree | cd9398b413103d881bc0d10ff5cc1e3a65cdd396 /usr/local/www/index.php | |
parent | f0e9bdfb512b3574ebd62f258807e742c5db8b42 (diff) | |
download | pfsense-fca795f8329bb169e79a2e22063c1d4f1464b0f4.zip pfsense-fca795f8329bb169e79a2e22063c1d4f1464b0f4.tar.gz |
Set a savemsg when a crash report exists and show across top instead of redirecting
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 10 |
1 files changed, 6 insertions, 4 deletions
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 <a href='crash_reporter.php'>here</a> 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 "<center><img src=\"./themes/".$g['theme']."/images/logobig.jpg\"></center><br>"; + +if ($savemsg) + print_info_box($savemsg); + ?> <div id="widgetcontainer" style="display:none"> <div id="content1"><h1><?=gettext("Available Widgets"); ?></h1><p><?php |