Revision 6c07db48
Added by Phil Davis about 10 years ago
usr/local/captiveportal/radius_accounting.inc | ||
---|---|---|
61 | 61 |
$nas_port = intval($ruleno); |
62 | 62 |
$radiusvendor = $config['captiveportal'][$cpzone]['radiusvendor'] ? $config['captiveportal'][$cpzone]['radiusvendor'] : null; |
63 | 63 |
|
64 |
switch($radiusvendor) { |
|
64 |
switch ($radiusvendor) {
|
|
65 | 65 |
|
66 | 66 |
case 'cisco': |
67 |
$calledstationid = $clientmac;
|
|
68 |
$callingstationid = $clientip;
|
|
69 |
break;
|
|
67 |
$calledstationid = $clientmac;
|
|
68 |
$callingstationid = $clientip;
|
|
69 |
break;
|
|
70 | 70 |
|
71 | 71 |
default: |
72 | 72 |
if (!function_exists('getNasIP')) |
Also available in: Unified diff
Code spacing
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.