removePpoeActive based pppoe_username

This commit is contained in:
Ibnu Maksum 2024-08-08 14:44:42 +07:00
parent ce7d8859b0
commit d830ba4e06
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
3 changed files with 6 additions and 3 deletions

View File

@ -60,11 +60,13 @@ class MikrotikPppoe
//disconnect then //disconnect then
if(isset($isChangePlan) && $isChangePlan){ if(isset($isChangePlan) && $isChangePlan){
$this->removePpoeActive($client, $customer['username']); $this->removePpoeActive($client, $customer['username']);
if (!empty($customer['pppoe_username'])) {
$this->removePpoeActive($client, $customer['pppoe_username']);
}
} }
} }
} }
function remove_customer($customer, $plan) function remove_customer($customer, $plan)
{ {
$mikrotik = $this->info($plan['routers']); $mikrotik = $this->info($plan['routers']);

View File

@ -697,5 +697,6 @@
"PPPoE_Username_already_used_by_another_customer": "PPPoE Username already used by another customer", "PPPoE_Username_already_used_by_another_customer": "PPPoE Username already used by another customer",
"just_now": "just now", "just_now": "just now",
"Not_Working_for_freeradius": "Not Working for freeradius", "Not_Working_for_freeradius": "Not Working for freeradius",
"User_Cannot_change_this__only_admin__if_it_Empty_it_will_use_Customer_Credentials": "User Cannot change this, only admin. if it Empty it will use Customer Credentials" "User_Cannot_change_this__only_admin__if_it_Empty_it_will_use_Customer_Credentials": "User Cannot change this, only admin. if it Empty it will use Customer Credentials",
"Failed_to_buy_package": "Failed to buy package"
} }

View File

@ -1,7 +1,7 @@
{include file="sections/user-header.tpl"} {include file="sections/user-header.tpl"}
<div class="row"> <div class="row">
<div class="col-md-4 col-md-offset-2"> <div class="col-lg-12">
<div class="panel panel-hovered panel-primary panel-stacked mb30"> <div class="panel panel-hovered panel-primary panel-stacked mb30">
<div class="panel-heading">{$in['invoice']}</div> <div class="panel-heading">{$in['invoice']}</div>
<div class="panel-body"> <div class="panel-body">