From 4b596d91bd01a3fe495340ae2bb08ace62e40dfc Mon Sep 17 00:00:00 2001
From: Ibnu Maksum <ibnumaksum@gmail.com>
Date: Wed, 15 Nov 2023 11:11:25 +0700
Subject: [PATCH] Radius demo mode

---
 system/autoload/Radius.php | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/system/autoload/Radius.php b/system/autoload/Radius.php
index d5e9c20a..9bdee13c 100644
--- a/system/autoload/Radius.php
+++ b/system/autoload/Radius.php
@@ -297,6 +297,10 @@ class Radius
 
     public static function disconnectCustomer($username)
     {
+        global $_app_stage;
+        if ($_app_stage == 'demo') {
+            return null;
+        }
         $nas = Radius::getTableNas()->findMany();
         $count = count($nas) * 15;
         set_time_limit($count);