commit
357b7932e9
@ -296,7 +296,11 @@ try {
|
|||||||
$d->nasportid = _post('nasPortId');
|
$d->nasportid = _post('nasPortId');
|
||||||
$d->nasporttype = _post('nasPortType');
|
$d->nasporttype = _post('nasPortType');
|
||||||
$d->framedipaddress = _post('framedIPAddress');
|
$d->framedipaddress = _post('framedIPAddress');
|
||||||
|
if (_post('acctStatusType') == 'Start') {
|
||||||
|
$d->acctstatustype = 'Interim-Update';
|
||||||
|
} else {
|
||||||
$d->acctstatustype = _post('acctStatusType');
|
$d->acctstatustype = _post('acctStatusType');
|
||||||
|
}
|
||||||
$d->macaddr = _post('macAddr');
|
$d->macaddr = _post('macAddr');
|
||||||
$d->dateAdded = date('Y-m-d H:i:s');
|
$d->dateAdded = date('Y-m-d H:i:s');
|
||||||
$d->save();
|
$d->save();
|
||||||
@ -344,7 +348,7 @@ function process_radiust_rest($tur, $code)
|
|||||||
// Count User Onlines
|
// Count User Onlines
|
||||||
$USRon = ORM::for_table('rad_acct')
|
$USRon = ORM::for_table('rad_acct')
|
||||||
->whereRaw("BINARY username = '".$tur['username']."'")
|
->whereRaw("BINARY username = '".$tur['username']."'")
|
||||||
->where("acctStatusType", 'Start')
|
->where("acctStatusType", 'Interim-Update')
|
||||||
->count();
|
->count();
|
||||||
if ($USRon >= $plan['shared_users'] && $plan['type'] == 'Hotspot') {
|
if ($USRon >= $plan['shared_users'] && $plan['type'] == 'Hotspot') {
|
||||||
show_radius_result(["control:Auth-Type" => "Accept", 'Reply-Message' => 'You are already logged in - access denied ('.$USRon.')'], 401);
|
show_radius_result(["control:Auth-Type" => "Accept", 'Reply-Message' => 'You are already logged in - access denied ('.$USRon.')'], 401);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user