diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-03-23 05:26:45 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-03-23 05:26:45 +0000 |
commit | df157bb73f6bd7213893e574bb23b81c63ce826b (patch) | |
tree | 2baeea48e7a15bfc5b9157fcda6ca26bc8018bc0 | |
parent | c3245cae0404c3f369286262a25d84eb3721926a (diff) | |
download | pfsense-df157bb73f6bd7213893e574bb23b81c63ce826b.zip pfsense-df157bb73f6bd7213893e574bb23b81c63ce826b.tar.gz |
Pass the correct post variable to spit_out_select_items
-rwxr-xr-x | usr/local/www/diag_backup.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 677660d..17c9374 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -34,9 +34,9 @@ $omit_nocacheheaders = true; require("guiconfig.inc"); require("xmlparse_pkg.inc"); -function spit_out_select_items() { +function spit_out_select_items($area) { $select = <<<EOD - <select name="backuparea"> + <select name="{$area}"> <option VALUE="">ALL</option> <option VALUE="shaper">Traffic Shaper</option> <option VALUE="filter">Firewall Rules</option> @@ -217,7 +217,7 @@ if (isset($config['system']['version_control'])) { <p> Click this button to download the system configuration in XML format.<br> <br> - Backup area: <?php spit_out_select_items(); ?> + Backup area: <?php spit_out_select_items("backuparea"); ?> <p> <input name="nopackages" type="checkbox" class="formcheckbox" id="nopackages">Do not backup package information.<p> <input name="Submit" type="submit" class="formbtn" id="download" value="Download configuration"></td> @@ -234,7 +234,7 @@ if (isset($config['system']['version_control'])) { Open a pfSense configuration XML file and click the button below to restore the configuration.<br> <br> - Restore area: <?php spit_out_select_items(); ?> + Restore area: <?php spit_out_select_items("restorearea"); ?> <p> <input name="conffile" type="file" class="formfld" id="conffile" size="40"> <p> |