From 1583068f57bbb763be06085384d37169478d40d4 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 16 Oct 2023 16:53:56 +0700 Subject: [PATCH] disable access period --- system/autoload/Radius.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/autoload/Radius.php b/system/autoload/Radius.php index c89a188a..26b0a9d6 100644 --- a/system/autoload/Radius.php +++ b/system/autoload/Radius.php @@ -207,7 +207,7 @@ class Radius } // expired user if ($expired != null) { - Radius::upsertCustomer($customer['username'], 'access-period', strtotime($expired) - time()); + //Radius::upsertCustomer($customer['username'], 'access-period', strtotime($expired) - time()); Radius::upsertCustomer($customer['username'], 'expiration', date('d M Y H:i:s', strtotime($expired))); // Mikrotik Spesific Radius::upsertCustomer( @@ -216,7 +216,7 @@ class Radius date('Y-m-d', strtotime($expired)) . 'T' . date('H:i:s', strtotime($expired)) . Timezone::getTimeOffset($config['timezone']) ); } else { - Radius::delAtribute(Radius::getTableCustomer(), 'access-period', 'username', $customer['username']); + //Radius::delAtribute(Radius::getTableCustomer(), 'access-period', 'username', $customer['username']); Radius::delAtribute(Radius::getTableCustomer(), 'expiration', 'username', $customer['username']); }