Fix 4 critical billing module issues

- Fix path error in payment_processor.php for website deployment
- Add invoice creation when renew button is clicked
- Fix end_date comparison in create_servers.php for DATETIME type
- Add explicit input text colors in login.php for visibility

Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-10-29 02:19:12 +00:00
parent 57a6923066
commit 4397e67ccb
4 changed files with 83 additions and 23 deletions

View file

@ -298,36 +298,36 @@ function exec_ogp_module()
if ($order['invoice_duration'] == "day")
{
if($order['end_date'] == 0){
if(empty($order['end_date']) || $order['end_date'] === NULL){
$end_date = strtotime('+'.$order['qty'].' day');
}
else{
//this is a renewel, start from end of previous order
$end_date = strtotime('+'.$order['qty'].' day',$order['end_date']);
$end_date = strtotime('+'.$order['qty'].' day',strtotime($order['end_date']));
}
}
elseif ($order['invoice_duration'] == "month")
{
// this is a new order
if($order['end_date'] == 0){
if(empty($order['end_date']) || $order['end_date'] === NULL){
$end_date = strtotime('+'.$order['qty'].' month');
}
else{
//this is a renewel, start from end of previous order
$end_date = strtotime('+'.$order['qty'].' month',$order['end_date']);
$end_date = strtotime('+'.$order['qty'].' month',strtotime($order['end_date']));
}
}
elseif ($order['invoice_duration'] == "year")
{
// this is a new order
if($order['end_date'] == 0){
if(empty($order['end_date']) || $order['end_date'] === NULL){
$end_date = strtotime('+'.$order['qty'].' year');
}
else{
//this is a renewel, start from end of previous order
$end_date = strtotime('+'.$order['qty'].' year',$order['end_date']);
$end_date = strtotime('+'.$order['qty'].' year',strtotime($order['end_date']));
}