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");
}
}
}
?>