mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-04 02:04:53 +02:00
Disconnect radius user
This commit is contained in:
parent
113d4ce6b1
commit
0b7408f5b9
5 changed files with 28 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue