mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-18 00:29:15 +02:00
move I'd to first MikrotikPppoe.php
This commit is contained in:
parent
7d2f69f96f
commit
d138e1b36f
1 changed files with 1 additions and 1 deletions
|
@ -41,6 +41,7 @@ class MikrotikPppoe
|
||||||
$this->addPpoeUser($client, $plan, $customer);
|
$this->addPpoeUser($client, $plan, $customer);
|
||||||
}else{
|
}else{
|
||||||
$setRequest = new RouterOS\Request('/ppp/secret/set');
|
$setRequest = new RouterOS\Request('/ppp/secret/set');
|
||||||
|
$setRequest->setArgument('numbers', $cid);
|
||||||
if (!empty($customer['pppoe_password'])) {
|
if (!empty($customer['pppoe_password'])) {
|
||||||
$setRequest->setArgument('password', $customer['pppoe_password']);
|
$setRequest->setArgument('password', $customer['pppoe_password']);
|
||||||
} else {
|
} else {
|
||||||
|
@ -54,7 +55,6 @@ class MikrotikPppoe
|
||||||
if (!empty($customer['pppoe_ip'])) {
|
if (!empty($customer['pppoe_ip'])) {
|
||||||
$setRequest->setArgument('local-address', $customer['pppoe_ip']);
|
$setRequest->setArgument('local-address', $customer['pppoe_ip']);
|
||||||
}
|
}
|
||||||
$setRequest->setArgument('numbers', $cid);
|
|
||||||
$setRequest->setArgument('profile', $plan['name_plan']);
|
$setRequest->setArgument('profile', $plan['name_plan']);
|
||||||
$setRequest->setArgument('comment', $customer['fullname'] . ' | ' . $customer['email'] . ' | ' . implode(', ', User::getBillNames($customer['id'])));
|
$setRequest->setArgument('comment', $customer['fullname'] . ' | ' . $customer['email'] . ' | ' . implode(', ', User::getBillNames($customer['id'])));
|
||||||
$client->sendSync($setRequest);
|
$client->sendSync($setRequest);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue