From bba09ca64795fbcd556741a4c19d29137f3078ea Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Mon, 29 Jan 2024 11:34:07 +0700 Subject: [PATCH] activate customer when edit Expired --- .gitignore | 1 + system/controllers/prepaid.php | 3 +++ 2 files changed, 4 insertions(+) diff --git a/.gitignore b/.gitignore index d4ac02b4..f45b2c1e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ config.php ui/compiled/*.php ui/cache/*.php test.php +sms.php pages/ system/cache/** system/plugin/* diff --git a/system/controllers/prepaid.php b/system/controllers/prepaid.php index 63f27c86..79c26142 100644 --- a/system/controllers/prepaid.php +++ b/system/controllers/prepaid.php @@ -231,6 +231,9 @@ switch ($action) { //$d->recharged_on = $recharged_on; $d->expiration = $expiration; $d->time = $time; + if(strtotime($expiration.' '.$time) > time()){ + $d->status = 'on'; + } if($p['is_radius']){ $d->routers = 'radius'; }else{