Revision f416763b
Added by Phil Davis over 10 years ago
etc/inc/voucher.inc | ||
---|---|---|
284 | 284 |
$unsetindexes[] = $cpentry[5]; |
285 | 285 |
} |
286 | 286 |
} else |
287 |
captiveportal_syslog("$voucher ($roll/$nr): not found on any registererd Roll");
|
|
287 |
captiveportal_syslog("$voucher ($roll/$nr): not found on any registered Roll"); |
|
288 | 288 |
} else |
289 | 289 |
// hmm, thats weird ... not what I expected |
290 | 290 |
captiveportal_syslog("$voucher invalid: {$output[0]}!!"); |
... | ... | |
296 | 296 |
voucher_write_active_db($roll, $active); |
297 | 297 |
unset($active_vouchers); |
298 | 298 |
|
299 |
/* Triger a sync of the vouchers on config */ |
|
299 |
/* Trigger a sync of the vouchers on config */
|
|
300 | 300 |
send_event("service sync vouchers"); |
301 | 301 |
} |
302 | 302 |
|
... | ... | |
412 | 412 |
} |
413 | 413 |
} |
414 | 414 |
} else { |
415 |
$test_result[] = "$voucher ($roll/$nr): not found on any registererd Roll";
|
|
416 |
captiveportal_syslog("$voucher ($roll/$nr): not found on any registererd Roll");
|
|
415 |
$test_result[] = "$voucher ($roll/$nr): not found on any registered Roll"; |
|
416 |
captiveportal_syslog("$voucher ($roll/$nr): not found on any registered Roll"); |
|
417 | 417 |
} |
418 | 418 |
} else { |
419 | 419 |
// hmm, thats weird ... not what I expected |
... | ... | |
480 | 480 |
$active_vouchers[$first_voucher_roll][$first_voucher] = "$timestamp,$minutes"; |
481 | 481 |
voucher_write_active_db($first_voucher_roll, $active_vouchers[$first_voucher_roll]); |
482 | 482 |
|
483 |
/* Triger a sync of the vouchers on config */ |
|
483 |
/* Trigger a sync of the vouchers on config */
|
|
484 | 484 |
send_event("service sync vouchers"); |
485 | 485 |
|
486 | 486 |
unlock($voucherlck); |
... | ... | |
560 | 560 |
$timestamp = $activent['timestamp']; |
561 | 561 |
$minutes = $activent['minutes']; |
562 | 562 |
// its tempting to check for expired timestamps, but during |
563 |
// bootup, we most likely don't have the correct time time.
|
|
563 |
// bootup, we most likely don't have the correct time. |
|
564 | 564 |
$active_vouchers[$voucher] = "$timestamp,$minutes"; |
565 | 565 |
} |
566 | 566 |
} |
... | ... | |
613 | 613 |
if ($dirty) { // if we found expired entries, lets save our snapshot |
614 | 614 |
voucher_write_active_db($roll, $active); |
615 | 615 |
|
616 |
/* Triger a sync of the vouchers on config */ |
|
616 |
/* Trigger a sync of the vouchers on config */
|
|
617 | 617 |
send_event("service sync vouchers"); |
618 | 618 |
} |
619 | 619 |
} |
... | ... | |
735 | 735 |
|
736 | 736 |
unlock($voucherlck); |
737 | 737 |
|
738 |
write_config("Synching vouchers");
|
|
738 |
write_config("Syncing vouchers"); |
|
739 | 739 |
return; |
740 | 740 |
} |
741 | 741 |
|
Also available in: Unified diff
Random text typos
that I noticed.