Revision 2d4003aa
Added by Ermal LUÇI over 14 years ago
etc/inc/captiveportal.inc | ||
---|---|---|
1659 | 1659 |
*/ |
1660 | 1660 |
$peruserbw = isset($config['captiveportal']['peruserbw']); |
1661 | 1661 |
|
1662 |
$bw_up = isset($attributes['bw_up']) ? trim($attributes['bw_up']) : $config['captiveportal']['bwdefaultup'];
|
|
1663 |
$bw_down = isset($attributes['bw_down']) ? trim($attributes['bw_down']) : $config['captiveportal']['bwdefaultdn'];
|
|
1662 |
$bw_up = isset($attributes['bw_up']) ? round(intval($attributes['bw_up'])/1000, 2) : $config['captiveportal']['bwdefaultup'];
|
|
1663 |
$bw_down = isset($attributes['bw_down']) ? round(intval($attributes['bw_down'])/1000, 2) : $config['captiveportal']['bwdefaultdn'];
|
|
1664 | 1664 |
|
1665 | 1665 |
if ($passthrumac) { |
1666 | 1666 |
$mac = array(); |
Also available in: Unified diff
If the bandwidth value is coming from radius scale it up to the requested Kbit/s unit.