summaryrefslogtreecommitdiffstats
path: root/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-11-25 22:14:06 +0545
committerPhil Davis <phil.davis@inf.org>2014-11-25 22:14:06 +0545
commit0274d41abefe47fa3724571a950a7c2d4fac42e9 (patch)
tree1d95ea64d5509046e3be854ef03e632a5add11b3 /usr/local/www/system_advanced_admin.php
parent2b58f94e6005a4b1e8c3387341dc07f3c173269f (diff)
downloadpfsense-0274d41abefe47fa3724571a950a7c2d4fac42e9.zip
pfsense-0274d41abefe47fa3724571a950a7c2d4fac42e9.tar.gz
Option for browser tab text order
Easy thing to do - add an option for the user to select if they want the host name or page name text to display first in the browser tab. Forum: https://forum.pfsense.org/index.php?topic=84528.0
Diffstat (limited to 'usr/local/www/system_advanced_admin.php')
-rw-r--r--usr/local/www/system_advanced_admin.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced_admin.php b/usr/local/www/system_advanced_admin.php
index 1148876..4dc3ea7 100644
--- a/usr/local/www/system_advanced_admin.php
+++ b/usr/local/www/system_advanced_admin.php
@@ -59,6 +59,7 @@ $pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
$pconfig['nodnsrebindcheck'] = isset($config['system']['webgui']['nodnsrebindcheck']);
$pconfig['nohttpreferercheck'] = isset($config['system']['webgui']['nohttpreferercheck']);
$pconfig['beast_protection'] = isset($config['system']['webgui']['beast_protection']);
+$pconfig['pagenamefirst'] = isset($config['system']['webgui']['pagenamefirst']);
$pconfig['loginautocomplete'] = isset($config['system']['webgui']['loginautocomplete']);
$pconfig['althostnames'] = $config['system']['webgui']['althostnames'];
$pconfig['enableserial'] = $config['system']['enableserial'];
@@ -175,6 +176,11 @@ if ($_POST) {
else
unset($config['system']['webgui']['beast_protection']);
+ if ($_POST['pagenamefirst'] == "yes")
+ $config['system']['webgui']['pagenamefirst'] = true;
+ else
+ unset($config['system']['webgui']['pagenamefirst']);
+
if ($_POST['loginautocomplete'] == "yes")
$config['system']['webgui']['loginautocomplete'] = true;
else
@@ -498,6 +504,17 @@ function prot_change() {
</td>
</tr>
<tr>
+ <td width="22%" valign="top" class="vncell"><?=gettext("Browser tab text"); ?></td>
+ <td width="78%" class="vtable">
+ <input name="pagenamefirst" type="checkbox" id="pagenamefirst" value="yes" <?php if ($pconfig['pagenamefirst']) echo "checked=\"checked\""; ?> />
+ <strong><?=gettext("Display page name first in browser tab"); ?></strong>
+ <br />
+ <?php echo gettext("When this is unchecked, the browser tab shows the host name followed by the current page. "); ?>
+ <br />
+ <?php echo gettext("Check this box to display the current page followed by the host name."); ?>
+ </td>
+ </tr>
+ <tr>
<td colspan="2" class="list" height="12">&nbsp;</td>
</tr>
<tr>
OpenPOWER on IntegriCloud