summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorMichael Newton <miken32@gmail.com>2013-02-14 21:14:38 -0800
committerMichael Newton <miken32@gmail.com>2013-02-14 21:14:38 -0800
commit91ca7e9fa01bec4e6c9e83674cb109806a67df51 (patch)
tree42c12f1b96fef68dacd2561e13917140a1023376 /etc/inc/voucher.inc
parent2ccc41c1c537994e10c9deb4ac061ce55edb6537 (diff)
downloadpfsense-91ca7e9fa01bec4e6c9e83674cb109806a67df51.zip
pfsense-91ca7e9fa01bec4e6c9e83674cb109806a67df51.tar.gz
use associative array for captive portal to prevent confusion, messiness, and abuse
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 5b392bb..4232289 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -257,8 +257,8 @@ function voucher_expire($voucher_received) {
$cpentry = captiveportal_read_db("WHERE username = '{$voucher}'");
if (!empty($cpentry)) {
captiveportal_disconnect($cpentry,null,13);
- captiveportal_logportalauth($cpentry[4],$cpentry[3],$cpentry[2],"FORCLY TERMINATING VOUCHER {$voucher} SESSION");
- $unsetindexes[] = $cpentry[5];
+ captiveportal_logportalauth($cpentry['username'],$cpentry['mac'],$cpentry['ip'],"FORCLY TERMINATING VOUCHER {$voucher} SESSION");
+ $unsetindexes[] = $cpentry['sessionid'];
}
} else
captiveportal_syslog("$voucher ($roll/$nr): not found on any registererd Roll");
OpenPOWER on IntegriCloud