summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_vouchers.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
committerPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
commit6c07db487164262f9191ad02805523bd153e0ba6 (patch)
tree0c266356179ac730233a16c0e3767a0c22514c4d /usr/local/www/services_captiveportal_vouchers.php
parent67d9685607eef7c679fda929ad4855be1b2f9dec (diff)
downloadpfsense-6c07db487164262f9191ad02805523bd153e0ba6.zip
pfsense-6c07db487164262f9191ad02805523bd153e0ba6.tar.gz
Code spacing
and other random stuff I noticed. I think this finishes messing with code style. The codebase should match the developer style guide closely enough that 99.9% of changes will not feel the need to also massage the formatting.
Diffstat (limited to 'usr/local/www/services_captiveportal_vouchers.php')
-rw-r--r--usr/local/www/services_captiveportal_vouchers.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr/local/www/services_captiveportal_vouchers.php b/usr/local/www/services_captiveportal_vouchers.php
index 82477b5..decea80 100644
--- a/usr/local/www/services_captiveportal_vouchers.php
+++ b/usr/local/www/services_captiveportal_vouchers.php
@@ -241,10 +241,10 @@ if ($_POST) {
if ($_POST['charset'] && (strlen($_POST['charset'] < 2))) {
$input_errors[] = gettext("Need at least 2 characters to create vouchers.");
}
- if ($_POST['charset'] && (strpos($_POST['charset'], "\"")>0)) {
+ if ($_POST['charset'] && (strpos($_POST['charset'], "\"") > 0)) {
$input_errors[] = gettext("Double quotes aren't allowed.");
}
- if ($_POST['charset'] && (strpos($_POST['charset'], ",")>0)) {
+ if ($_POST['charset'] && (strpos($_POST['charset'], ",") > 0)) {
$input_errors[] = "',' " . gettext("aren't allowed.");
}
if ($_POST['rollbits'] && (!is_numeric($_POST['rollbits']) || ($_POST['rollbits'] < 1) || ($_POST['rollbits'] > 31))) {
@@ -317,7 +317,7 @@ if ($_POST) {
$url = "http://{$newvoucher['vouchersyncdbip']}";
}
- $execcmd = <<<EOF
+ $execcmd = <<<EOF
\$toreturn = array();
\$toreturn['voucher'] = \$config['voucher']['$cpzone'];
unset(\$toreturn['vouchersyncport'], \$toreturn['vouchersyncpass'], \$toreturn['vouchersyncusername'], \$toreturn['vouchersyncdbip']);
@@ -351,7 +351,7 @@ EOF;
log_error("The Captive Portal voucher database has been synchronized with {$url}:{$port} (pfsense.exec_php).");
}
if (!$input_errors) {
- $toreturn = XML_RPC_Decode($resp->value());
+ $toreturn = XML_RPC_Decode($resp->value());
if (!is_array($toreturn)) {
if ($toreturn == "Authentication failed") {
$input_errors[] = "Could not synchronize the voucher database: Authentication Failed.";
@@ -428,7 +428,7 @@ function before_save() {
document.iform.privatekey.disabled = false;
document.iform.msgnoaccess.disabled = false;
document.iform.msgexpired.disabled = false;
- for (var x=0; x < <?php echo count($a_roll); ?>; x++) {
+ for (var x = 0; x < <?php echo count($a_roll); ?>; x++) {
jQuery('#addeditdelete' + x).show();
}
jQuery('#addnewroll').show();
@@ -459,12 +459,12 @@ function enable_change(enable_change) {
document.iform.privatekey.disabled = true;
document.iform.msgnoaccess.disabled = true;
document.iform.msgexpired.disabled = true;
- for (var x=0; x < <?php echo count($a_roll); ?>; x++) {
+ for (var x = 0; x < <?php echo count($a_roll); ?>; x++) {
jQuery('#addeditdelete' + x).hide();
}
jQuery('#addnewroll').hide();
} else {
- for (var x=0; x < <?php echo count($a_roll); ?>; x++) {
+ for (var x = 0; x < <?php echo count($a_roll); ?>; x++) {
jQuery('#addeditdelete' + x).show();
}
jQuery('#addnewroll').show();
OpenPOWER on IntegriCloud