add to Address List

This commit is contained in:
Ibnu Maksum
2024-02-20 10:07:07 +07:00
parent cfb81596ae
commit 349a1d3250
10 changed files with 41 additions and 42 deletions

View File

@ -46,6 +46,8 @@ foreach ($d as $ds) {
$client = Mikrotik::getClient($m['ip_address'], $m['username'], $m['password']);
if (!empty($p['pool_expired'])) {
Mikrotik::setHotspotUserPackage($client, $c['username'], 'EXPIRED NUXBILL ' . $p['pool_expired']);
}if (!empty($p['list_expired'])) {
Mikrotik::addIpToAddressList($client, $ip, $p['list_expired'], $c['username']);
} else {
Mikrotik::removeHotspotUser($client, $c['username']);
}