diff options
author | Chris Buechler <cmb@pfsense.org> | 2009-12-17 18:28:20 -0500 |
---|---|---|
committer | Chris Buechler <cmb@pfsense.org> | 2009-12-17 18:28:20 -0500 |
commit | 3b29612ff795b500fe861c17da690b4bebc94708 (patch) | |
tree | be4998e3b1f07a757c2f7793839db896353c4319 | |
parent | 755aecb77689375018c1a504bae0e1a40cbe89e0 (diff) | |
download | pfsense-3b29612ff795b500fe861c17da690b4bebc94708.zip pfsense-3b29612ff795b500fe861c17da690b4bebc94708.tar.gz |
add ability to hide help menu
-rw-r--r-- | etc/inc/globals.inc | 1 | ||||
-rwxr-xr-x | usr/local/www/fbegin.inc | 24 |
2 files changed, 15 insertions, 10 deletions
diff --git a/etc/inc/globals.inc b/etc/inc/globals.inc index abf7f3c..4fa60d9 100644 --- a/etc/inc/globals.inc +++ b/etc/inc/globals.inc @@ -85,6 +85,7 @@ $g = array( "product_email" => "coreteam@pfsense.org", "hideplatform" => false, "disablethemeselection" => false, + "disablehelpmenu" => false, "debug" => false, "latest_config" => "6.0", "nopkg_platforms" => array("cdrom"), diff --git a/usr/local/www/fbegin.inc b/usr/local/www/fbegin.inc index ed0cf57..5b6dd15 100755 --- a/usr/local/www/fbegin.inc +++ b/usr/local/www/fbegin.inc @@ -205,15 +205,17 @@ if (isset($config['system']['developer'])) { } $diagnostics_menu = msort(array_merge($diagnostics_menu, return_ext_menu("Diagnostics")),0); -$help_menu = array(); -$help_menu[] = array("About this Page", $helpurl); -$help_menu[] = array("User Forum", "http://www.pfsense.org/j.php?jumpto=forum"); -$help_menu[] = array("Documentation", "http://www.pfsense.org/j.php?jumpto=doc"); -$help_menu[] = array("Developers Wiki", "http://www.pfsense.org/j.php?jumpto=devwiki"); -$help_menu[] = array("Paid Support", "http://www.pfsense.org/j.php?jumpto=portal"); -$help_menu[] = array("pfSense Book", "http://www.pfsense.org/j.php?jumpto=book"); -$help_menu[] = array("Search portal", "http://www.pfsense.org/j.php?jumpto=searchportal"); -$help_menu = msort(array_merge($help_menu, return_ext_menu("Help")),0); +if(! $g['disablehelpmenu']) { + $help_menu = array(); + $help_menu[] = array("About this Page", $helpurl); + $help_menu[] = array("User Forum", "http://www.pfsense.org/j.php?jumpto=forum"); + $help_menu[] = array("Documentation", "http://www.pfsense.org/j.php?jumpto=doc"); + $help_menu[] = array("Developers Wiki", "http://www.pfsense.org/j.php?jumpto=devwiki"); + $help_menu[] = array("Paid Support", "http://www.pfsense.org/j.php?jumpto=portal"); + $help_menu[] = array("pfSense Book", "http://www.pfsense.org/j.php?jumpto=book"); + $help_menu[] = array("Search portal", "http://www.pfsense.org/j.php?jumpto=searchportal"); + $help_menu = msort(array_merge($help_menu, return_ext_menu("Help")),0); +} /* NOTICE ACKNOWLEDGE CODE by Erik Kristensen */ if ($_REQUEST['noticeaction'] == 'acknowledge') { @@ -355,6 +357,7 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { ?> </ul> </li> + <?php if(! $g['disablehelpmenu']): ?> <li class="lastdrop"> <div>Help</div> <ul id="help" class="subdrop"> @@ -363,6 +366,7 @@ if ($_REQUEST['noticeaction'] == 'acknowledge') { ?> </ul> </li> + <?php endif; ?> </ul> </div> @@ -408,4 +412,4 @@ function add_to_menu($url, $name) { <?php $pgtitle_output = true; -?> +?>
\ No newline at end of file |