summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_nanobsd.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2010-12-14 17:22:17 -0500
committerjim-p <jimp@pfsense.org>2010-12-14 17:22:17 -0500
commitd12003c99517c25105673c557aebec7e3fa55dcb (patch)
treeda0d98cba0375c010cac021961f8845ae31a00bf /usr/local/www/diag_nanobsd.php
parentdeeaf52c65fb63292c1b10373e9fe146666a00d8 (diff)
downloadpfsense-d12003c99517c25105673c557aebec7e3fa55dcb.zip
pfsense-d12003c99517c25105673c557aebec7e3fa55dcb.tar.gz
Revert "Add voucher backup, configurable from Diagnostics > NanoBSD. Fixes #1087" - voucher db backup already existed under a different name. Ticket is still fixed, just by different code that was already there.
This reverts commit 0d89a2fcac3deea06bdc4a481bbdfae4f18b1ff8.
Diffstat (limited to 'usr/local/www/diag_nanobsd.php')
-rwxr-xr-xusr/local/www/diag_nanobsd.php21
1 files changed, 0 insertions, 21 deletions
diff --git a/usr/local/www/diag_nanobsd.php b/usr/local/www/diag_nanobsd.php
index 56fab04..af4efd6 100755
--- a/usr/local/www/diag_nanobsd.php
+++ b/usr/local/www/diag_nanobsd.php
@@ -108,10 +108,6 @@ if (isset($_POST['dhcpbackup'])) {
$config['system']['dhcpbackup'] = $_POST['dhcpbackup'];
install_cron_job("/etc/rc.backup_dhcpleases.sh", ($config['system']['dhcpbackup'] > 0), $minute="0", "*/{$config['system']['dhcpbackup']}");
}
-if (isset($_POST['voucherbackup'])) {
- $config['system']['voucherbackup'] = $_POST['voucherbackup'];
- install_cron_job("/etc/rc.backup_voucherleases.sh", ($config['system']['voucherbackup'] > 0), $minute="0", "*/{$config['system']['voucherbackup']}");
-}
if ($savemsg)
@@ -220,23 +216,6 @@ if ($savemsg)
</td>
</tr>
<tr>
- <td width="22%" valign="top" class="vncell"><?=gettext("Voucher Backup");?></td>
- <td width="78%" class="vtable">
- <form action="diag_nanobsd.php" method="post" name="iform">
- <?=gettext("Frequency:");?>
- <select name='voucherbackup'>
- <option value='0' <? if (!isset($config['system']['voucherbackup']) || ($config['system']['voucherbackup'] == 0)) echo "selected"; ?>><?=gettext("Disable"); ?></option>
- <? for ($x=1; $x<=24; $x++) { ?>
- <option value='<?= $x ?>' <? if ($config['system']['voucherbackup'] == $x) echo "selected"; ?>><?= $x ?> <?=gettext("hour"); ?><? if ($x>1) echo "s"; ?></option>
- <? } ?>
- </select>
- <br/>
- <?=gettext("This will peridoically backup the Captive Portal Voucher Database so it can be restored automatically on the next boot. Keep in mind that the more frequent the backup, the more writes will happen to your media.");?>
- <br/>
- <br/>
- </td>
- </tr>
- <tr>
<td valign="top" class="">&nbsp;</td><td><br/><input type='submit' value='<?=gettext("Save"); ?>'></form></td>
</tr>
<?php if(file_exists("/conf/upgrade_log.txt")): ?>
OpenPOWER on IntegriCloud