diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 21:37:03 -0500 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2011-02-07 21:37:17 -0500 |
commit | 36365f49aa0fcaf5877257bbe4d81c727dbd9575 (patch) | |
tree | cc89e364b9bce8edea493fcdc20af1e6b914d487 /usr/local/www/index.php | |
parent | d440e668edbd94db07b4b422e09ec2ea2ea2b15a (diff) | |
download | pfsense-36365f49aa0fcaf5877257bbe4d81c727dbd9575.zip pfsense-36365f49aa0fcaf5877257bbe4d81c727dbd9575.tar.gz |
Add a global g option named disablecrashreporter which defaults to false for rebrands
Diffstat (limited to 'usr/local/www/index.php')
-rwxr-xr-x | usr/local/www/index.php | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/usr/local/www/index.php b/usr/local/www/index.php index 43520ba..92376e5 100755 --- a/usr/local/www/index.php +++ b/usr/local/www/index.php @@ -56,17 +56,19 @@ require_once('functions.inc'); require_once('guiconfig.inc'); require_once('notices.inc'); -// Check to see if we have a crash report -$crash = glob("/var/crash/*"); -$x = 0; -$skip_files = array(".", "..", "minfree", ""); -if(is_array($crash)) { - foreach($crash as $c) { - if (!in_array(basename($c), $skip_files)) - $x++; +if($g['disablecrashreporter'] != true) { + // Check to see if we have a crash report + $crash = glob("/var/crash/*"); + $x = 0; + $skip_files = array(".", "..", "minfree", ""); + if(is_array($crash)) { + foreach($crash as $c) { + if (!in_array(basename($c), $skip_files)) + $x++; + } + if($x > 0) + $savemsg = "{$g['product_name']} has detected a crash report. Click <a href='crash_reporter.php'>here</a> for more information."; } - if($x > 0) - $savemsg = "{$g['product_name']} has detected a crash report. Click <a href='crash_reporter.php'>here</a> for more information."; } ##build list of widgets |