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{