activate customer when edit Expired

This commit is contained in:
Ibnu Maksum 2024-01-29 11:34:07 +07:00
parent adbac642ca
commit bba09ca647
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5
2 changed files with 4 additions and 0 deletions

1
.gitignore vendored
View File

@ -4,6 +4,7 @@ config.php
ui/compiled/*.php
ui/cache/*.php
test.php
sms.php
pages/
system/cache/**
system/plugin/*

View File

@ -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{