summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-07-16 19:45:54 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-07-16 19:45:54 +0000
commit15a87e25f6bd01b8f4d0e797f40131d91bc72127 (patch)
tree07b1923dca882f50897e1ae8558dae6574595f01 /usr
parent4daa1eaf54cdad83d875c5dfc404918cef6aba89 (diff)
downloadpfsense-15a87e25f6bd01b8f4d0e797f40131d91bc72127.zip
pfsense-15a87e25f6bd01b8f4d0e797f40131d91bc72127.tar.gz
Allow user to pick their template.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/system_advanced.php32
1 files changed, 32 insertions, 0 deletions
diff --git a/usr/local/www/system_advanced.php b/usr/local/www/system_advanced.php
index a86c40e..a59d72e 100755
--- a/usr/local/www/system_advanced.php
+++ b/usr/local/www/system_advanced.php
@@ -48,6 +48,7 @@ $pconfig['noantilockout'] = isset($config['system']['webgui']['noantilockout']);
$pconfig['tcpidletimeout'] = $config['filter']['tcpidletimeout'];
$pconfig['schedulertype'] = $config['system']['schedulertype'];
$pconfig['maximumstates'] = $config['system']['maximumstates'];
+$pconfig['template'] = $config['system']['template'];
$pconfig['disablerendevouz'] = $config['system']['disablerendevouz'];
$pconfig['enableserial'] = $config['system']['enableserial'];
$pconfig['disablefirmwarecheck'] = isset($config['system']['disablefirmwarecheck']);
@@ -150,6 +151,9 @@ if ($_POST) {
$config['system']['maximumstates'] = $_POST['maximumstates'];
$config['ipsec']['preferoldsa'] = $_POST['preferoldsa_enable'] ? true : false;
+
+ /* pfSense templates */
+ $config['template'] = $_POST['template'];
write_config();
@@ -264,6 +268,34 @@ function openwindow(url) {
</tr>
<?php endif ?>
+
+
+ <tr>
+ <td colspan="2" valign="top" class="listtopic">Template</td>
+ </tr>
+ <tr>
+ <td width="22%" valign="top" class="vncell">&nbsp;</td>
+ <td width="78%" class="vtable">
+ <select name="template">
+<?php
+ $files = return_dir_as_array("/usr/local/www/templates/");
+ foreach($files as $f) {
+ if($f == "CVS") continue;
+ $selected = "";
+ if($f == $config['template'])
+ $selected = " SELECTED";
+ if($config['template'] == "" and $f == "pfsense")
+ $selceted = " SELECTED";
+ echo "<option{$selected}>{$f}</option>\n";
+ }
+?>
+ </select>
+ <strong>This will change the look and feel of pfSense</strong>
+ </td>
+ </tr>
+
+
+
<tr>
<td width="22%" valign="top">&nbsp;</td>
<td width="78%">
OpenPOWER on IntegriCloud