mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-08-28 22:08:09 +02:00
parent
5c95da3a45
commit
22c027aaba
1 changed files with 0 additions and 20 deletions
|
@ -213,26 +213,6 @@ class Package
|
||||||
$date_exp = $datetime[0];
|
$date_exp = $datetime[0];
|
||||||
$time = $datetime[1];
|
$time = $datetime[1];
|
||||||
}
|
}
|
||||||
} elseif ($b['namebp'] == $p['name_plan'] && $b['status'] == 'off') {
|
|
||||||
// if it same internet plan but has expired, it will not extend expiry date
|
|
||||||
if ($p['validity_unit'] == 'Months') {
|
|
||||||
$date_exp = date("Y-m-d", strtotime($p['validity'] . ' months'));
|
|
||||||
$time = $b['time'];
|
|
||||||
} else if ($p['validity_unit'] == 'Period') {
|
|
||||||
$date_exp = date("Y-m-$day_exp", strtotime($p['validity'] . ' months'));
|
|
||||||
$time = date("23:59:00");
|
|
||||||
} else if ($p['validity_unit'] == 'Days') {
|
|
||||||
$date_exp = date("Y-m-d", strtotime($p['validity'] . ' days'));
|
|
||||||
$time = $b['time'];
|
|
||||||
} else if ($p['validity_unit'] == 'Hrs') {
|
|
||||||
$datetime = explode(' ', date("Y-m-d H:i:s", strtotime($p['validity'] . ' hours')));
|
|
||||||
$date_exp = $datetime[0];
|
|
||||||
$time = $datetime[1];
|
|
||||||
} else if ($p['validity_unit'] == 'Mins') {
|
|
||||||
$datetime = explode(' ', date("Y-m-d H:i:s", strtotime($p['validity'] . ' minutes')));
|
|
||||||
$date_exp = $datetime[0];
|
|
||||||
$time = $datetime[1];
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($isChangePlan || $b['status'] == 'off') {
|
if ($isChangePlan || $b['status'] == 'off') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue