MOON
Server: Apache
System: Linux smtp.modiva.org 3.10.0-862.14.4.el7.x86_64 #1 SMP Wed Sep 26 15:12:11 UTC 2018 x86_64
User: rtbrisc (1005)
PHP: 8.1.34
Disabled: NONE
Upload Files
File: /home/rtbrisc/public_html/admin/main/worker/workers/pay.php
<?php
session_start();
require_once('server/customer.php'); // Connection variable ($cus)
require_once('server/utilities.php'); // Connection variable ($utl)
require_once('server/issues.php'); // Connnection Variable ($iss)

$paymentID = mysqli_real_escape_string($iss, $_GET['pid']);
$paymentMethod = mysqli_real_escape_string($iss, $_GET['pam']);
$customerID = mysqli_real_escape_string($iss, $_GET['cus']);

if(empty($customerID)){
	$_SESSION['new_err'] = "Invalid user account. Please Login";
	header("Location: ../../payment/new.php");
}else{
	//echo $paymentID . ", " . $paymentMethod . ", " . $customerID;
	if(empty($did) || empty($dbi) || empty($dim) || empty($bc) || empty($ct) || empty($dtm) || empty($bl)){
		$_SESSION['bac_err'] = "All Fields Are Required!!!";
		header("Location: ../../backup/new.php");
	}else{
		$backup = mysqli_query($iss, "INSERT INTO tblbackup
			 (BackupID, CustomerID, DeviceTypeID, DeviceTypeInfo, DeviceBrandID, DeviceBrandInfo, DeviceModel, BackupContentID, BackupContentType, BackupTime, BackupLocation, OtherInformation) 
			 VALUES
			 ('$backid', $cid', $did, '$dti', $dbi, '$dbid', '$dim', '$bc', '$ct', '$dtm', '$bl', '$oi')");

		if($backup){
			$_SESSION['bac_suc'] = "Backup Record Stored Successfully!!!";
			header("Location: ../../backup/new.php");
		}else{
			$_SESSION['bac_err'] = "There was a problem saving your backup!!!";
			header("Location: ../../backup/history.php");
		}
	}
}

?>