forked from kevinowino869/mitrobill
Disconnect radius user
This commit is contained in:
@ -63,7 +63,6 @@ switch ($action) {
|
||||
$p = ORM::for_table('tbl_plans')->where('id', $b['plan_id'])->where('enabled', '1')->find_one();
|
||||
if ($p) {
|
||||
if ($p['is_radius']) {
|
||||
//TODO: disconnect using radius
|
||||
Radius::customerDeactivate($b['username']);
|
||||
} else {
|
||||
$mikrotik = Mikrotik::info($b['routers']);
|
||||
|
@ -166,7 +166,6 @@ switch ($action) {
|
||||
run_hook('delete_customer_active_plan'); #HOOK
|
||||
$p = ORM::for_table('tbl_plans')->find_one($d['plan_id']);
|
||||
if ($p['is_radius']) {
|
||||
//TODO: disconnect using radius
|
||||
Radius::customerDeactivate($d['username']);
|
||||
} else {
|
||||
$mikrotik = Mikrotik::info($d['routers']);
|
||||
|
@ -25,7 +25,7 @@ switch ($action) {
|
||||
$ui->assign('logo', $logo);
|
||||
if(empty($_c['radius_client'])){
|
||||
try{
|
||||
$_c['radius_client'] = shell_exec('which radclient');
|
||||
$_c['radius_client'] = Radius::getClient();
|
||||
$ui->assign('_c', $_c);
|
||||
}catch(Exception $e){
|
||||
//ignore
|
||||
|
Reference in New Issue
Block a user