Revision adcf909a
Added by Ermal LUÇI about 14 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
809 | 809 |
captiveportal_free_ipfw_ruleno($dbent[1]); |
810 | 810 |
|
811 | 811 |
// XMLRPC Call over to the master Voucher node |
812 |
$a_voucher = &$config['voucher']; |
|
813 |
if(!empty($a_voucher['vouchersyncdbip'])) { |
|
814 |
$syncip = $a_voucher['vouchersyncdbip']; |
|
815 |
$syncport = $a_voucher['vouchersyncport']; |
|
816 |
$syncpass = $a_voucher['vouchersyncpass']; |
|
817 |
$vouchersyncusername = $a_voucher['vouchersyncusername']; |
|
812 |
if(!empty($config['voucher']['vouchersyncdbip'])) { |
|
813 |
$syncip = $config['voucher']['vouchersyncdbip']; |
|
814 |
$syncport = $config['voucher']['vouchersyncport']; |
|
815 |
$syncpass = $config['voucher']['vouchersyncpass']; |
|
816 |
$vouchersyncusername = $config['voucher']['vouchersyncusername']; |
|
818 | 817 |
$remote_status = xmlrpc_sync_voucher_disconnect($dben, $syncip, $syncport, $syncpass, $vouchersyncusername, $term_cause, $stop_time); |
819 | 818 |
} |
820 | 819 |
|
Also available in: Unified diff
Just use the long reference here instead of creating potential dangerous reference.