summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorColin Smith <colin@pfsense.org>2005-07-21 03:20:41 +0000
committerColin Smith <colin@pfsense.org>2005-07-21 03:20:41 +0000
commit31977165f066e3919619f42cf9ef669ca677d5ec (patch)
tree4fe5d1651d77614fa11bc5e48ddfbab335de903d /usr
parent0913a099d3d3bd59b5100b99f13c8c8ef61ad89b (diff)
downloadpfsense-31977165f066e3919619f42cf9ef669ca677d5ec.zip
pfsense-31977165f066e3919619f42cf9ef669ca677d5ec.tar.gz
Move theme selection to guiconfig.inc.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/guiconfig.inc11
-rwxr-xr-xusr/local/www/head.inc9
2 files changed, 10 insertions, 10 deletions
diff --git a/usr/local/www/guiconfig.inc b/usr/local/www/guiconfig.inc
index b333145..c3a914d 100755
--- a/usr/local/www/guiconfig.inc
+++ b/usr/local/www/guiconfig.inc
@@ -47,6 +47,15 @@ require_once("auth.inc");
require_once("config.inc");
require_once("functions.inc");
+/*
+ * if user has selected a custom template, use it.
+ * otherwise default to pfsense tempalte
+ */
+if($config['theme'] <> "")
+ $g['theme'] = $config['theme'];
+else
+ $g['theme'] = "pfsense";
+
$d_hostsdirty_path = $g['varrun_path'] . "/hosts.dirty";
$d_natconfdirty_path = $g['varrun_path'] . "/nat.conf.dirty";
$d_filterconfdirty_path = $g['varrun_path'] . "/filter.conf.dirty";
@@ -609,4 +618,4 @@ function ipsec_ca_sort() {
}
-?> \ No newline at end of file
+?>
diff --git a/usr/local/www/head.inc b/usr/local/www/head.inc
index adf8d2a..59ea217 100755
--- a/usr/local/www/head.inc
+++ b/usr/local/www/head.inc
@@ -1,13 +1,4 @@
<?php
-/*
- * if user has selected a custom template, use it.
- * otherwise default to pfsense tempalte
- */
-if($config['theme'] <> "")
- $g['theme'] = $config['theme'];
-else
- $g['theme'] = "pfsense";
-?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
OpenPOWER on IntegriCloud