summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-11-16 01:09:47 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-11-16 01:09:47 +0000
commit9d9adc7fc99baa44e7f730c44f2ae8298186c65d (patch)
tree09f8e2db575abaf7d1b9b9bb8a41f274ab922e5d /usr/local
parentd0e6f971d523221481d240fcfa565d6683383d54 (diff)
downloadpfsense-9d9adc7fc99baa44e7f730c44f2ae8298186c65d.zip
pfsense-9d9adc7fc99baa44e7f730c44f2ae8298186c65d.tar.gz
Move common functions to guiconfig.inc since head.inc requires them.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/guiconfig.inc16
1 files changed, 13 insertions, 3 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index 215abc5..7088662 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -87,6 +87,10 @@ $d_ovpnclidirty_path = "/tmp/ovpn-cli.dirty";
/* used by progress bar */
$lastseen = "-1";
+$navlevelsep = ": "; /* navigation level separator string */
+$mandfldhtml = ""; /* display this before mandatory input fields */
+$mandfldhtmlspc = ""; /* same as above, but with spacing */
+
if (file_exists($d_firmwarelock_path)) {
if (!$d_isfwfile) {
header("Location: system_firmware.php");
@@ -601,9 +605,15 @@ function sort_rule_by_queue_priority() {
usort($config['shaper']['rule'], "rqpcmp");
}
-function gentitle($pgname) {
- global $config;
- return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . $pgname;
+
+function gentitle($title) {
+ global $navlevelsep;
+ return join($navlevelsep, $title);
+}
+
+function genhtmltitle($title) {
+ global $config;
+ return $config['system']['hostname'] . "." . $config['system']['domain'] . " - " . gentitle($title);
}
/* update the changedesc and changecount(er) variables */
OpenPOWER on IntegriCloud