Name!"; $missing_email = "You did not enter a valid E-mail Address!"; $missing_phone = "You did not enter your Phone Number!"; $missing_account = "You did not enter your Account Number!"; $missing_invoice = "You did not enter your Invoice Number!"; $missing_cardnumber = "You did not enter your Card Number!"; $missing_expyear = "You did not enter your Expiration Year!"; $missing_expmonth = "You did not enter your Expiration Month!"; //$missing_agreement = "You must agree to the terms of the payment form!"; $thanks = "Thanks, ".$_POST['name'].".

\nYour payment has been submitted successfully."; $subject = "Payment Submission"; $content = "Hello,\n\n".$_POST['name']." has submitted a payment.\n\nClick here to login to the administrative area:\n\n".$paymentAdmin."\n\nRegards,\nThe Management"; // FUNCTIONS function getSqlRow($query) { $result = mysql_query($query) or die(mysql_error()); $row = mysql_fetch_array($result); mysql_free_result($result); return $row; } function getSqlNumber($sqlQuery) { $query=mysql_query($sqlQuery); $result=mysql_num_rows($query); mysql_free_result($query); return $result; } function messageTable($message) { echo "
$message
"; exit; } function check_referer($referers) { if (count($referers)) { $found = false; $temp = explode("/",getenv("HTTP_REFERER")); $referer = $temp[2]; for ($x=0; $x < count($referers); $x++) { if (eregi ($referers[$x], $referer)) { $found = true; } } if (!getenv("HTTP_REFERER")) $found = false; if (!$found){ messageTable("You are coming from an unauthorized domain."); } return $found; } else { return true; // not a good idea, if empty, it will allow it. } } ?> :: Secure America :: 513.271.5500 ::


You have entered an incorrect password. Please try again.
"; } ?>
To access the Online Payment area you need the proper password from your Secure America representative. If you do not have a password, please click here to contact us.
Password:
"; if ($_POST['name'] == '') { echo $missing_name; echo "
\n"; } if (($_POST['email'] == '') || (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $_POST['email']))) { echo $missing_email; echo "
\n"; } if ($_POST['account'] == '') { echo $missing_account; echo "
\n"; } if ($_POST['invoice'] == '') { echo $missing_invoice; echo "
\n"; } if ($_POST['phone'] == '') { echo $missing_phone; echo "
\n"; } if ($_POST['cardnumber'] == '') { echo $missing_cardnumber; echo "
\n"; } if ($_POST['expmonth'] == '00') { echo $missing_expmonth; echo "
\n"; } if ($_POST['expyear'] == '00') { echo $missing_expyear; echo "
\n"; } echo "
"; echo "
\n"; include_once ("paymentform.php"); //SUBMIT DATA, SEND AN EMAIL, SAY THANKS } else { // $cardnumber = $_POST['cardnumber']; $packed = PackCrypt($_POST['cardnumber'], 'nu3ghu34'); $date = date('Y-m-d'); $insertPayment = mysql_query("INSERT INTO payments (name,account,invoice,phone,email,cardnumber,expmonth,expyear,date) VALUES ( '".addslashes($_POST['name'])."', '".addslashes($_POST['account'])."', '".addslashes($_POST['invoice'])."', '".addslashes($_POST['phone'])."', '".addslashes($_POST['email'])."', '".addslashes($packed['output'])."', '".$_POST['expmonth']."', '".$_POST['expyear']."', '".$date."')"); $recipientEmail = "info@secureamericainc.com"; mail($recipientEmail, $subject, $content, "From: $fromemail\r\nReply-To: $email\r\nX-Mailer: DT_formmail"); messageTable($thanks); } #################################### ### SHOW THE FORM #################################### } else { include_once ("paymentform.php"); } ?>