summaryrefslogtreecommitdiffstats
path: root/usr/local/www/index.php
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2011-02-07 21:37:03 -0500
committerScott Ullrich <sullrich@pfsense.org>2011-02-07 21:37:17 -0500
commit36365f49aa0fcaf5877257bbe4d81c727dbd9575 (patch)
treecc89e364b9bce8edea493fcdc20af1e6b914d487 /usr/local/www/index.php
parentd440e668edbd94db07b4b422e09ec2ea2ea2b15a (diff)
downloadpfsense-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-xusr/local/www/index.php22
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
OpenPOWER on IntegriCloud