forked from kevinowino869/mitrobill
comment deleted variable
This commit is contained in:
parent
ec7dee5c8a
commit
c2f220f770
@ -189,6 +189,7 @@ class Radius
|
|||||||
else
|
else
|
||||||
$timelimit = $plan['time_limit'] * 60;
|
$timelimit = $plan['time_limit'] * 60;
|
||||||
Radius::upsertCustomer($customer['username'], 'Max-All-Session', $timelimit);
|
Radius::upsertCustomer($customer['username'], 'Max-All-Session', $timelimit);
|
||||||
|
//Radius::upsertCustomer($customer['username'], 'Expire-After', $timelimit);
|
||||||
} else if ($plan['limit_type'] == "Data_Limit") {
|
} else if ($plan['limit_type'] == "Data_Limit") {
|
||||||
if ($plan['data_unit'] == 'GB')
|
if ($plan['data_unit'] == 'GB')
|
||||||
$datalimit = $plan['data_limit'] . "000000000";
|
$datalimit = $plan['data_limit'] . "000000000";
|
||||||
@ -197,6 +198,7 @@ class Radius
|
|||||||
Radius::upsertCustomer($customer['username'], 'Max-Volume', $datalimit);
|
Radius::upsertCustomer($customer['username'], 'Max-Volume', $datalimit);
|
||||||
// Mikrotik Spesific
|
// Mikrotik Spesific
|
||||||
//Radius::upsertCustomer($customer['username'], 'Max-Data', $datalimit);
|
//Radius::upsertCustomer($customer['username'], 'Max-Data', $datalimit);
|
||||||
|
//Radius::upsertCustomer($customer['username'], 'Mikrotik-Total-Limit', $datalimit);
|
||||||
} else if ($plan['limit_type'] == "Both_Limit") {
|
} else if ($plan['limit_type'] == "Both_Limit") {
|
||||||
if ($plan['time_unit'] == 'Hrs')
|
if ($plan['time_unit'] == 'Hrs')
|
||||||
$timelimit = $plan['time_limit'] * 60 * 60;
|
$timelimit = $plan['time_limit'] * 60 * 60;
|
||||||
@ -210,6 +212,7 @@ class Radius
|
|||||||
Radius::upsertCustomer($customer['username'], 'Max-All-Session', $timelimit);
|
Radius::upsertCustomer($customer['username'], 'Max-All-Session', $timelimit);
|
||||||
// Mikrotik Spesific
|
// Mikrotik Spesific
|
||||||
//Radius::upsertCustomer($customer['username'], 'Max-Data', $datalimit);
|
//Radius::upsertCustomer($customer['username'], 'Max-Data', $datalimit);
|
||||||
|
//Radius::upsertCustomer($customer['username'], 'Mikrotik-Total-Limit', $datalimit);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -227,6 +230,7 @@ class Radius
|
|||||||
|
|
||||||
// expired user
|
// expired user
|
||||||
if ($expired != null) {
|
if ($expired != null) {
|
||||||
|
//Radius::upsertCustomer($customer['username'], 'access-period', strtotime($expired) - time());
|
||||||
Radius::upsertCustomer($customer['username'], 'Max-All-Session', strtotime($expired) - time());
|
Radius::upsertCustomer($customer['username'], 'Max-All-Session', strtotime($expired) - time());
|
||||||
//Radius::upsertCustomer($customer['username'], 'expiration', date('d M Y H:i:s', strtotime($expired)));
|
//Radius::upsertCustomer($customer['username'], 'expiration', date('d M Y H:i:s', strtotime($expired)));
|
||||||
// Mikrotik Spesific
|
// Mikrotik Spesific
|
||||||
@ -237,6 +241,7 @@ class Radius
|
|||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
Radius::delAtribute(Radius::getTableCustomer(), 'Max-All-Session', 'username', $customer['username']);
|
Radius::delAtribute(Radius::getTableCustomer(), 'Max-All-Session', 'username', $customer['username']);
|
||||||
|
//Radius::delAtribute(Radius::getTableCustomer(), 'access-period', 'username', $customer['username']);
|
||||||
//Radius::delAtribute(Radius::getTableCustomer(), 'expiration', 'username', $customer['username']);
|
//Radius::delAtribute(Radius::getTableCustomer(), 'expiration', 'username', $customer['username']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user