summaryrefslogtreecommitdiffstats
path: root/etc/inc/voucher.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2010-12-22 11:41:07 -0500
committerScott Ullrich <sullrich@pfsense.org>2010-12-22 11:41:07 -0500
commit34507786be2695aa7942a95bba8869abf23420a8 (patch)
treea675c31a97543e064f46c3772d14c926abb71ec3 /etc/inc/voucher.inc
parentba482f415164fdc989de9a79380f53648fdaa5ae (diff)
downloadpfsense-34507786be2695aa7942a95bba8869abf23420a8.zip
pfsense-34507786be2695aa7942a95bba8869abf23420a8.tar.gz
Use captiveportal_syslog()
Diffstat (limited to 'etc/inc/voucher.inc')
-rw-r--r--etc/inc/voucher.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/inc/voucher.inc b/etc/inc/voucher.inc
index 5e8884e..f17fe28 100644
--- a/etc/inc/voucher.inc
+++ b/etc/inc/voucher.inc
@@ -168,7 +168,7 @@ function voucher_auth($voucher_received, $test = 0) {
$mask = 1 << ($nr % 8);
if (ord($bitstring[$roll][$pos]) & $mask) {
$test_result[] = "$voucher ($roll/$nr) already used and expired";
- log_error("$voucher ($roll/$nr) already used and expired");
+ captiveportal_syslog("$voucher ($roll/$nr) already used and expired");
$total_minutes = -1; // voucher expired
$error++;
} else {
@@ -180,12 +180,12 @@ function voucher_auth($voucher_received, $test = 0) {
}
} else {
$test_result[] = "$voucher ($roll/$nr): not found on any registererd Roll";
- log_error("$voucher ($roll/$nr): not found on any registererd Roll");
+ captiveportal_syslog("$voucher ($roll/$nr): not found on any registererd Roll");
}
} else {
// hmm, thats weird ... not what I expected
$test_result[] = "$voucher invalid: $result !!";
- log_error("$voucher invalid: $result !!");
+ captiveportal_syslog("$voucher invalid: $result !!");
$error++;
}
}
@@ -278,7 +278,7 @@ function voucher_configure() {
$pubkey = base64_decode($config['voucher']['publickey']);
$fd = fopen("{$g['varetc_path']}/voucher.public", "w");
if (!$fd) {
- log_error("Voucher error: cannot write voucher.public\n");
+ captiveportal_syslog("Voucher error: cannot write voucher.public\n");
unlock($voucherlck);
return 1;
}
OpenPOWER on IntegriCloud