diff options
author | Renato Botelho <garga@FreeBSD.org> | 2014-11-26 08:59:01 -0200 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2014-11-26 08:59:01 -0200 |
commit | a8e2d240322fc3e4cebf9a864399d2187da52053 (patch) | |
tree | 4a89a10b8f09ef51ecde2899cf2fea8980c94ea2 /config | |
parent | a2103cc238bc568016d4ed931bd5ec52ca103fc8 (diff) | |
parent | 44a9bb92c8ac077a986f5958d5703d33c7a5288c (diff) | |
download | pfsense-packages-a8e2d240322fc3e4cebf9a864399d2187da52053.tar.gz pfsense-packages-a8e2d240322fc3e4cebf9a864399d2187da52053.tar.bz2 pfsense-packages-a8e2d240322fc3e4cebf9a864399d2187da52053.zip |
Merge pull request #735 from phil-davis/patch-2
Diffstat (limited to 'config')
-rw-r--r-- | config/autoconfigbackup/autoconfigbackup.php | 13 | ||||
-rw-r--r-- | config/autoconfigbackup/autoconfigbackup.xml | 2 |
2 files changed, 11 insertions, 4 deletions
diff --git a/config/autoconfigbackup/autoconfigbackup.php b/config/autoconfigbackup/autoconfigbackup.php index 755c47aa..52b3eca9 100644 --- a/config/autoconfigbackup/autoconfigbackup.php +++ b/config/autoconfigbackup/autoconfigbackup.php @@ -357,10 +357,17 @@ EOF; <center> <b>Hostname:</b> <select id="hostname" name="hostname" onChange="document.location='autoconfigbackup.php?hostname=' + this.value;"> - <?foreach($hostnames as $hn):?> - <option value='<?=$hn?>'><?=$hn?></option> + <? + $host_not_found = true; + foreach($hostnames as $hn): + ?> + <option value='<?=$hn?>' <? if ($hn == $hostname) {echo " selected=\"selected\""; $host_not_found = false;}?>> + <?=$hn?> + </option> <?endforeach?> - <option value='<?=$hostname?>' SELECTED><?=$hostname?></option> + <? if ($host_not_found) { ?> + <option value='<?=$hostname?>' SELECTED><?=$hostname?></option> + <? } ?> </select> </td> </tr> diff --git a/config/autoconfigbackup/autoconfigbackup.xml b/config/autoconfigbackup/autoconfigbackup.xml index d6a59720..eb3f7545 100644 --- a/config/autoconfigbackup/autoconfigbackup.xml +++ b/config/autoconfigbackup/autoconfigbackup.xml @@ -37,7 +37,7 @@ <description>Automatically backs up your pfSense configuration. All contents are encrypted before being sent to the server. Requires Gold Subscription from https://portal.pfsense.org</description> <requirements>pfSense Portal subscription</requirements> <name>AutoConfigBackup</name> - <version>1.25</version> + <version>1.28</version> <title>Diagnostics: Auto Configuration Backup</title> <savetext>Change</savetext> <include_file>/usr/local/pkg/autoconfigbackup.inc</include_file> |