mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-05 10:44:52 +02:00
Fix edit customer plan
This commit is contained in:
parent
b9ff4399a4
commit
29ad9dec73
8 changed files with 77 additions and 67 deletions
|
@ -35,16 +35,6 @@ class MikrotikPppoe
|
|||
$this->removePpoeActive($client, $customer['username']);
|
||||
}
|
||||
|
||||
function change_customer($customer, $plan)
|
||||
{
|
||||
$mikrotik = $this->info($plan['routers']);
|
||||
$client = $this->getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
|
||||
$this->removePpoeUser($client, $customer['username']);
|
||||
$this->removePpoeActive($client, $customer['username']);
|
||||
$this->addPpoeUser($client, $plan, $customer);
|
||||
}
|
||||
|
||||
|
||||
function add_plan($plan)
|
||||
{
|
||||
$mikrotik = $this->info($plan['routers']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue