diff options
author | Colin Smith <colin@pfsense.org> | 2005-07-21 03:20:41 +0000 |
---|---|---|
committer | Colin Smith <colin@pfsense.org> | 2005-07-21 03:20:41 +0000 |
commit | 31977165f066e3919619f42cf9ef669ca677d5ec (patch) | |
tree | 4fe5d1651d77614fa11bc5e48ddfbab335de903d /usr/local/www | |
parent | 0913a099d3d3bd59b5100b99f13c8c8ef61ad89b (diff) | |
download | pfsense-31977165f066e3919619f42cf9ef669ca677d5ec.zip pfsense-31977165f066e3919619f42cf9ef669ca677d5ec.tar.gz |
Move theme selection to guiconfig.inc.
Diffstat (limited to 'usr/local/www')
-rwxr-xr-x | usr/local/www/guiconfig.inc | 11 | ||||
-rwxr-xr-x | usr/local/www/head.inc | 9 |
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> |