mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-03 17:54:41 +02:00
add remove Active user when extends
This commit is contained in:
parent
a40b2cbea3
commit
651969924c
1 changed files with 5 additions and 1 deletions
|
@ -579,7 +579,7 @@ switch ($action) {
|
|||
$code = Lang::randomUpLowCase($code);
|
||||
}
|
||||
$vouchers[] = $code;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -785,8 +785,12 @@ switch ($action) {
|
|||
Radius::customerAddPlan($c, $p, $tur['expiration'] . ' ' . $tur['time']);
|
||||
} else {
|
||||
if ($tur['type'] == 'Hotspot') {
|
||||
Mikrotik::removeHotspotUser($client, $c['username']);
|
||||
Mikrotik::removeHotspotActiveUser($client, $c['username']);
|
||||
Mikrotik::addHotspotUser($client, $p, $c);
|
||||
} else if ($tur['type'] == 'PPPOE') {
|
||||
Mikrotik::removePpoeUser($client, $c['username']);
|
||||
Mikrotik::removePpoeActive($client, $c['username']);
|
||||
Mikrotik::addPpoeUser($client, $p, $c);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue