From 3b29612ff795b500fe861c17da690b4bebc94708 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Thu, 17 Dec 2009 18:28:20 -0500 Subject: add ability to hide help menu --- usr/local/www/fbegin.inc | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) (limited to 'usr/local/www/fbegin.inc') 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') { ?> +
  • Help
  • + @@ -408,4 +412,4 @@ function add_to_menu($url, $name) { +?> \ No newline at end of file -- cgit v1.1