info if pppoe IP has been used by another customer
This commit is contained in:
parent
34af35f0e1
commit
81e30f0c54
@ -537,19 +537,19 @@ switch ($action) {
|
|||||||
$msg .= Lang::T('Username already used by another customer') . '<br>';
|
$msg .= Lang::T('Username already used by another customer') . '<br>';
|
||||||
}
|
}
|
||||||
if(ORM::for_table('tbl_customers')->where('pppoe_username', $username)->find_one()){
|
if(ORM::for_table('tbl_customers')->where('pppoe_username', $username)->find_one()){
|
||||||
$msg.= Lang::T('Username already used by another customer') . '<br>';
|
$msg.= Lang::T('Username already used by another pppoe username customer') . '<br>';
|
||||||
}
|
}
|
||||||
$userDiff = true;
|
$userDiff = true;
|
||||||
}
|
}
|
||||||
if ($oldPppoeUsername != $pppoe_username) {
|
if ($oldPppoeUsername != $pppoe_username) {
|
||||||
if(!empty($pppoe_username)){
|
// if(!empty($pppoe_username)){
|
||||||
if(ORM::for_table('tbl_customers')->where('pppoe_username', $pppoe_username)->find_one()){
|
// if(ORM::for_table('tbl_customers')->where('pppoe_username', $pppoe_username)->find_one()){
|
||||||
$msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
// $msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
||||||
}
|
// }
|
||||||
if(ORM::for_table('tbl_customers')->where('username', $pppoe_username)->find_one()){
|
// if(ORM::for_table('tbl_customers')->where('username', $pppoe_username)->find_one()){
|
||||||
$msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
// $msg.= Lang::T('PPPoE Username already used by another customer') . '<br>';
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
$pppoeDiff = true;
|
$pppoeDiff = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ 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']);
|
||||||
}else{
|
}else{
|
||||||
$setRequest->setArgument('local-address', '');
|
$setRequest->setArgument('local-address', '0.0.0.0');
|
||||||
}
|
}
|
||||||
$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'])));
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
{
|
{
|
||||||
"version": "2024.8.21.1"
|
"version": "2024.8.22"
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user