Revision 5918fbaf
Added by Scott Ullrich about 18 years ago
usr/local/captiveportal/radius_accounting.inc | ||
---|---|---|
86 | 86 |
if (PEAR::isError($racct->start())) { |
87 | 87 |
$retvalue['acct_val'] = 1; |
88 | 88 |
$retvalue['error'] = $racct->getMessage(); |
89 |
if ($debug) |
|
90 |
printf("Radius start: %s<br>\n", $retvalue['error']); |
|
89 |
|
|
91 | 90 |
// If we encounter an error immediately stop this function and go back |
92 | 91 |
$racct->close(); |
93 | 92 |
return $retvalue; |
... | ... | |
126 | 125 |
if (PEAR::isError($result)) { |
127 | 126 |
$retvalue['acct_val'] = 1; |
128 | 127 |
$retvalue['error'] = $result->getMessage(); |
129 |
if ($debug) |
|
130 |
printf("Radius send failed: %s<br>\n", $retvalue['error']); |
|
128 |
|
|
131 | 129 |
} else if ($result === true) { |
132 | 130 |
$retvalue['acct_val'] = 5 ; |
133 |
if ($debug) |
|
134 |
printf("Radius Accounting succeeded<br>\n"); |
|
131 |
|
|
135 | 132 |
} else { |
136 | 133 |
$retvalue['acct_val'] = 1 ; |
137 |
if ($debug) |
|
138 |
printf("Radius Accounting rejected<br>\n"); |
|
134 |
|
|
139 | 135 |
} |
140 | 136 |
|
141 | 137 |
// close OO RADIUS_ACCOUNTING |
... | ... | |
211 | 207 |
if (PEAR::isError($racct->start())) { |
212 | 208 |
$retvalue['acct_val'] = 1; |
213 | 209 |
$retvalue['error'] = $racct->getMessage(); |
214 |
if ($debug) |
|
215 |
printf("Radius start: %s<br>\n", $retvalue['error']); |
|
210 |
|
|
216 | 211 |
// If we encounter an error immediately stop this function and go back |
217 | 212 |
$racct->close(); |
218 | 213 |
return $retvalue; |
Also available in: Unified diff
Silence eclipse errors