check radius client if radius_enable
This commit is contained in:
@ -15,7 +15,15 @@ class Radius
|
||||
public static function getClient()
|
||||
{
|
||||
global $config;
|
||||
return (empty($config['radius_client'])) ? shell_exec('which radclient') : $config['radius_client'];
|
||||
if(empty($config['radius_client'])){
|
||||
if(function_exists("shell_exec")){
|
||||
shell_exec('which radclient');
|
||||
}else{
|
||||
return "";
|
||||
}
|
||||
}else{
|
||||
$config['radius_client'];
|
||||
}
|
||||
}
|
||||
|
||||
public static function getTableNas()
|
||||
|
Reference in New Issue
Block a user