mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-19 09:08:56 +02:00
fix radius
This commit is contained in:
parent
06643055ae
commit
49ea4966f8
2 changed files with 11 additions and 7 deletions
|
@ -28,9 +28,16 @@ class Radius
|
||||||
|
|
||||||
function add_customer($customer, $plan)
|
function add_customer($customer, $plan)
|
||||||
{
|
{
|
||||||
global $b;
|
$b = ORM::for_table('tbl_user_recharges')
|
||||||
|
->where('customer_id', $customer['id'])
|
||||||
|
->where('plan_id', $plan['id'])
|
||||||
|
->where('status', 'on')
|
||||||
|
->findMany();
|
||||||
|
|
||||||
|
if($b){
|
||||||
$this->customerAddPlan($customer, $plan, $b['expiration'] . ' ' . $b['time']);
|
$this->customerAddPlan($customer, $plan, $b['expiration'] . ' ' . $b['time']);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function remove_customer($customer, $plan)
|
function remove_customer($customer, $plan)
|
||||||
{
|
{
|
||||||
|
@ -262,10 +269,6 @@ class Radius
|
||||||
// Mikrotik Spesific
|
// Mikrotik Spesific
|
||||||
$this->upsertCustomer($customer['username'], 'Max-Data', $datalimit);
|
$this->upsertCustomer($customer['username'], 'Max-Data', $datalimit);
|
||||||
//$this->upsertCustomer($customer['username'], 'Mikrotik-Total-Limit', $datalimit);
|
//$this->upsertCustomer($customer['username'], 'Mikrotik-Total-Limit', $datalimit);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
//$this->delAtribute($this->getTableCustomer(), 'Max-Volume', 'username', $customer['username']);
|
//$this->delAtribute($this->getTableCustomer(), 'Max-Volume', 'username', $customer['username']);
|
||||||
|
|
|
@ -652,5 +652,6 @@
|
||||||
"Api": "Api",
|
"Api": "Api",
|
||||||
"Http_Chap": "Http-Chap",
|
"Http_Chap": "Http-Chap",
|
||||||
"Hotspot_Authentication_Method__Make_sure_you_have_changed_your_hotspot_login_page_": "Hotspot Authentication Method. Make sure you have changed your hotspot login page.",
|
"Hotspot_Authentication_Method__Make_sure_you_have_changed_your_hotspot_login_page_": "Hotspot Authentication Method. Make sure you have changed your hotspot login page.",
|
||||||
"Business": "Business"
|
"Business": "Business",
|
||||||
|
"": ""
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue