summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2011-05-25 11:02:53 +0000
committerErmal <eri@pfsense.org>2011-05-25 11:02:53 +0000
commitf6f1c8474875e91cf297abf28e2fad65ea6152f7 (patch)
tree28556120521e5299a9ae79a5cafb5e913e11f195 /usr/local
parentb7475a811cf4620112673dc78c5d0afacb4a38c1 (diff)
downloadpfsense-f6f1c8474875e91cf297abf28e2fad65ea6152f7.zip
pfsense-f6f1c8474875e91cf297abf28e2fad65ea6152f7.tar.gz
Update some code to be more readble and more compliant to php5
Diffstat (limited to 'usr/local')
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index 203906a..19171f4 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -116,9 +116,8 @@ if ($_GET['act'] == "del") {
exit;
}
}
-
/* print all vouchers of the selected roll */
-if ($_GET['act'] == "csv") {
+else if ($_GET['act'] == "csv") {
$privkey = base64_decode($config['voucher']['privatekey']);
if (strstr($privkey,"BEGIN RSA PRIVATE KEY")) {
$fd = fopen("{$g['varetc_path']}/voucher.private","w");
OpenPOWER on IntegriCloud