summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system.php
diff options
context:
space:
mode:
authorChristopher Fazendin <cfazendin@gmail.com>2016-05-05 15:07:25 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-06-22 11:03:07 -0400
commitcb0222b03d13ff4563930e9d36a2af3f9e818eed (patch)
tree7f15f51be9601e13fdbbd1a7cf1cafe21236817e /src/usr/local/www/system.php
parentde1bacbcd1473f52994601fead5e6949860f1f0a (diff)
downloadpfsense-cb0222b03d13ff4563930e9d36a2af3f9e818eed.zip
pfsense-cb0222b03d13ff4563930e9d36a2af3f9e818eed.tar.gz
Added option to System > General Setup > webConfigurator to change the title of the Help menu in the navbar to either the system hostname or fqdn.
(cherry picked from commit 1d12996755ee6fb9b9e163d292bdba160a926e64)
Diffstat (limited to 'src/usr/local/www/system.php')
-rw-r--r--src/usr/local/www/system.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/usr/local/www/system.php b/src/usr/local/www/system.php
index 8105d07..0ed93bf 100644
--- a/src/usr/local/www/system.php
+++ b/src/usr/local/www/system.php
@@ -97,6 +97,7 @@ $pconfig['dashboardavailablewidgetspanel'] = isset($config['system']['webgui']['
$pconfig['systemlogsfilterpanel'] = isset($config['system']['webgui']['systemlogsfilterpanel']);
$pconfig['systemlogsmanagelogpanel'] = isset($config['system']['webgui']['systemlogsmanagelogpanel']);
$pconfig['statusmonitoringsettingspanel'] = isset($config['system']['webgui']['statusmonitoringsettingspanel']);
+$pconfig['webguihostnamemenu'] = isset($config['system']['webgui']['webguihostnamemenu']);
$pconfig['dnslocalhost'] = isset($config['system']['dnslocalhost']);
if (!$pconfig['timezone']) {
@@ -157,6 +158,12 @@ if ($_POST) {
unset($config['system']['webgui']['webguifixedmenu']);
}
+ if ($_POST['webguihostnamemenu']) {
+ $config['system']['webgui']['webguihostnamemenu'] = $_POST['webguihostnamemenu'];
+ } else {
+ unset($config['system']['webgui']['webguihostnamemenu']);
+ }
+
if ($_POST['dashboardcolumns']) {
$config['system']['webgui']['dashboardcolumns'] = $_POST['dashboardcolumns'];
} else {
@@ -536,6 +543,13 @@ $section->addInput(new Form_Select(
["" => gettext("Scrolls with page"), "fixed" => gettext("Fixed (Remains visible at top of page)")]
))->setHelp("The fixed option is intended for large screens only.");
+$section->addInput(new Form_Select(
+ 'webguihostnamemenu',
+ 'Hostname in Menu',
+ $pconfig['webguihostnamemenu'],
+ ["" => gettext("Default (No hostname)"), "hostonly" => gettext("Hostname only"), "fqdn" => gettext("Fully Qualified Domain Name")]
+))->setHelp("Replaces the Help menu title in the Navbar with the system hostname or FQDN.");
+
$section->addInput(new Form_Input(
'dashboardcolumns',
'Dashboard Columns',
OpenPOWER on IntegriCloud