$_c ke $config

This commit is contained in:
Ibnu Maksum
2022-09-21 14:15:00 +07:00
parent e7e32475cc
commit d7d9d9efa1
12 changed files with 148 additions and 64 deletions

View File

@ -42,7 +42,7 @@ switch ($action) {
if ($c){
$mikrotik = Mikrotik::info($c['routers']);
if($c['type'] == 'Hotspot'){
if(!$_c['radius_mode']){
if(!$config['radius_mode']){
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
Mikrotik::setHotspotUser($client,$c['username'],$npass);
Mikrotik::removeHotspotActiveUser($client,$user['username']);
@ -56,7 +56,7 @@ switch ($action) {
r2(U.'login');
}else{
if(!$_c['radius_mode']){
if(!$config['radius_mode']){
$client = Mikrotik::getClient($mikrotik['ip_address'], $mikrotik['username'], $mikrotik['password']);
Mikrotik::setPpoeUser($client,$c['username'],$npass);
Mikrotik::removePpoeActive($client,$user['username']);