Click here to reload page after you have enabled cookies."; exit (); } $_POST = array_map ('trim', $_POST); $_POST = array_map ('stripslashes', $_POST); $reqArr = explode (",", $_POST['required']); foreach ($reqArr as $v) { if (empty ($_POST[$v])) { $errArr[] = $k; } } $_POST['chargetotal'] = preg_replace ("/[^0-9.]/e", '', $_POST['chargetotal']); $_POST['cardnumber'] = preg_replace("/[^0-9]/e", '', $_POST['cardnumber']); if (!$_POST['cardexpmonth'] && !$_POST['cardexpyear']){ $missing[] = 'date'; } $ccDate = date ('U', mktime (23,59,59, $_POST['cardexpmonth'], date ('t', mktime (0,0,0, $_POST['exp_mon'], 1, '20'.$_POST['cardexpyear'])), '20'.$_POST['cardexpyear'])); if ($ccDate < time()) { $err[] = 'date'; $errMore = "Your expiration date must be in the future."; } if (empty ($err[0])) { $_POST = array_map ('htmlentities', $_POST); if ($result = lp_sale ()) { $len = strlen ($_POST['cardnumber'])-4; $_POST['cardnumber'] = str_repeat ("*", $len) . substr ($_POST['cardnumber'], -4); $_POST['cvmvalue'] = str_repeat ("*", strlen ($_POST['cvmvalue'])); $dataArr = array_merge ($_POST, $result); unset ($_POST['required']); foreach ($dataArr as $k=>$v) { $data[] = "$k :: $v"; } file_put_contents ("/home/sheilad/log/data.txt", implode ("\n", $data)."\n".str_repeat ("=", 40)."\n", FILE_APPEND | LOCK_EX); if ($result['r_approved'] == 'APPROVED' || $result['r_approved'] == 'SUBMITTED') { // SEND RECEIPT TO CUSTOMER // $headers[] = "From: \"Sheila Danzig\" "; $headers[] = "Reply-To: \"Sheila Danzig\" "; $headers[] = "CC: \"Dawn Sullivan\" "; $headers[] = "Errors-To: webdr@sonic.net"; $headers[] = "Message-Id: <".date ('YmdHis').".".session_id ()."@sheiladanzig.com>"; $headers[] = "Date: ".date ('r'); ob_start (); include_once ('payment.receipt.php'); $msg = ob_get_contents(); ob_end_clean(); mail ("\"{$_POST['name']}\" <{$_POST['email']}>", "Payment Receipt", $msg, implode ("\n", $headers), "-fsheila@danzig.com"); // SEND MAIL TO SHEILA // unset ($headers, $msg); $headers[] = "From: \"{$_POST['name']}\" <{$_POST['email']}>"; $headers[] = "Reply-To: \"{$_POST['name']}\" <{$_POST['email']}>"; $headers[] = "Errors-To: webdr@sonic.net"; $headers[] = "Message-Id: <".date ('YmdHis').".".session_id ()."@sheiladanzig.com>"; $headers[] = "Date: ".date ('r'); ob_start (); include_once ('payment.notification.php'); $msg = ob_get_contents(); ob_end_clean(); mail ("\"Sheila Danzig\" ", "Payment Notification", $msg, implode ("\n", $headers), "-fsheila@danzig.com"); $paySuccess = "Your payment of {$_POST['chargetotal']} to CAREER CONSULTING INTERNATIONAL was accepted. You will receive a receipt at {$_POST['email']}"; } else { $payErr = "Payment was declined. The reason is:
".$result['r_error']."
Please try again."; unset ($_POST['cardnumber'],$_POST['cardexpmonth'],$_POST['cardexpyear']); $_SESSION['code'] = substr (md5 (uniqid (rand())), 0, 20); } } } else { $err = array_unique ($err); $_SESSION['code'] = substr (md5 (uniqid (rand())), 0, 20); } } else { $_SESSION['code'] = substr (md5 (uniqid (rand())), 0, 20); } ?> Payment Form ">
PAYMENT INFORMATION: