mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-19 00:59:23 +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);
|
$code = Lang::randomUpLowCase($code);
|
||||||
}
|
}
|
||||||
$vouchers[] = $code;
|
$vouchers[] = $code;
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -785,8 +785,12 @@ switch ($action) {
|
||||||
Radius::customerAddPlan($c, $p, $tur['expiration'] . ' ' . $tur['time']);
|
Radius::customerAddPlan($c, $p, $tur['expiration'] . ' ' . $tur['time']);
|
||||||
} else {
|
} else {
|
||||||
if ($tur['type'] == 'Hotspot') {
|
if ($tur['type'] == 'Hotspot') {
|
||||||
|
Mikrotik::removeHotspotUser($client, $c['username']);
|
||||||
|
Mikrotik::removeHotspotActiveUser($client, $c['username']);
|
||||||
Mikrotik::addHotspotUser($client, $p, $c);
|
Mikrotik::addHotspotUser($client, $p, $c);
|
||||||
} else if ($tur['type'] == 'PPPOE') {
|
} else if ($tur['type'] == 'PPPOE') {
|
||||||
|
Mikrotik::removePpoeUser($client, $c['username']);
|
||||||
|
Mikrotik::removePpoeActive($client, $c['username']);
|
||||||
Mikrotik::addPpoeUser($client, $p, $c);
|
Mikrotik::addPpoeUser($client, $p, $c);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue