%PDF- %PDF-
Direktori : /home/eirtvhdf/logodowntown.com/logo-offer/ |
Current File : /home/eirtvhdf/logodowntown.com/logo-offer/sender.php |
<?php session_start(); require("database.php"); //require("inc/vars.php"); if(isset($_POST['order_form'])){ $name = htmlspecialchars($_POST['fn']); $email = htmlspecialchars($_POST['em']); $phone = htmlspecialchars($_POST['ph']); $message = htmlspecialchars($_POST['msg']); $package = htmlspecialchars($_POST['package']); $amount = htmlspecialchars($_POST['amount']); $body = " <table class='table table-bordered'> <tr> <th>Name:</th> <td>".$name."</td> </tr> <tr> <th>Email:</th> <td>".$email."</td> </tr> <tr> <th>Phone:</th> <td>". $phone."</td> </tr> <tr> <th>Package:</th> <td>".$package."</td> </tr> <tr> <th>Amount:</th> <td>".$amount."</td> </tr> <tr> <th>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com"; $subject = "Activate $19 Coupon | Logo Downtown"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //$headers .= "From: ". strip_tags($_POST['email']) . "\r\n"; $headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n"; $url = "https://www.google.com/recaptcha/api/siteverify"; $data = [ 'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y", 'response' => $_POST['token1'], // 'remoteip' => $_SERVER['REMOTE_ADDR'] ]; $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $res = json_decode($response, true); if($res['success'] == true) { $mysqli = mysqli_query($dbh,"insert into activate_coupon values('','$name','$email','$phone','$message','$package','$amount')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { $_SESSION['last_id'] = $dbh->insert_id; $_SESSION['a_name'] = $name; $_SESSION['a_email'] = $email; $_SESSION['a_phone'] = $phone; $_SESSION['a_message'] = $message; $_SESSION['a_package'] = $package; $_SESSION['a_amount'] = $amount; header('Location: https://logodowntown.com/logo-offer/step2.php?retval='.$retval); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://logodowntown.com/logo-offer/error.php" </script>'; } if(isset($_POST['order_form2'])){ $name = htmlspecialchars($_POST['fn']); $email = htmlspecialchars($_POST['em']); $phone = htmlspecialchars($_POST['ph']); $message = htmlspecialchars($_POST['msg']); $package = htmlspecialchars($_POST['package']); $amount = htmlspecialchars($_POST['amount']); $body = " <table class='table table-bordered'> <tr> <th>Name:</th> <td>".$name."</td> </tr> <tr> <th>Email:</th> <td>".$email."</td> </tr> <tr> <th>Phone:</th> <td>". $phone."</td> </tr> <tr> <th>Package:</th> <td>".$package."</td> </tr> <tr> <th>Amount:</th> <td>".$amount."</td> </tr> <tr> <th>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com"; $subject = "Activate $19 50% Off Coupon | Logo Downtown"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //$headers .= "From: ". strip_tags($_POST['email']) . "\r\n"; $headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n"; $url = "https://www.google.com/recaptcha/api/siteverify"; $data = [ 'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y", 'response' => $_POST['token2'], // 'remoteip' => $_SERVER['REMOTE_ADDR'] ]; $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $res = json_decode($response, true); if($res['success'] == true) { $mysqli = mysqli_query($dbh,"insert into activate_coupon values('','$name','$email','$phone','$message','$package','$amount')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { $_SESSION['last_id'] = $dbh->insert_id; $_SESSION['a_name'] = $name; $_SESSION['a_email'] = $email; $_SESSION['a_phone'] = $phone; $_SESSION['a_message'] = $message; $_SESSION['a_package'] = $package; $_SESSION['a_amount'] = $amount; header('Location: https://logodowntown.com/logo-offer/step2.php?retval='.$retval); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://logodowntown.com/logo-offer/error.php" </script>'; } if(isset($_POST['order_form3'])){ $name = htmlspecialchars($_POST['fn']); $email = htmlspecialchars($_POST['em']); $phone = htmlspecialchars($_POST['ph']); $message = htmlspecialchars($_POST['msg']); $package = htmlspecialchars($_POST['package']); $amount = htmlspecialchars($_POST['amount']); $body = " <table class='table table-bordered'> <tr> <th>Name:</th> <td>".$name."</td> </tr> <tr> <th>Email:</th> <td>".$email."</td> </tr> <tr> <th>Phone:</th> <td>". $phone."</td> </tr> <tr> <th>Package:</th> <td>".$package."</td> </tr> <tr> <th>Amount:</th> <td>".$amount."</td> </tr> <tr> <th>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com"; $subject = "$19 Special Logo Design Coupon | Logo Downtown"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //$headers .= "From: ". strip_tags($_POST['email']) . "\r\n"; $headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n"; $url = "https://www.google.com/recaptcha/api/siteverify"; $data = [ 'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y", 'response' => $_POST['token3'], // 'remoteip' => $_SERVER['REMOTE_ADDR'] ]; $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $res = json_decode($response, true); if($res['success'] == true) { $mysqli = mysqli_query($dbh,"insert into activate_coupon values('','$name','$email','$phone','$message','$package','$amount')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { $_SESSION['last_id'] = $dbh->insert_id; $_SESSION['a_name'] = $name; $_SESSION['a_email'] = $email; $_SESSION['a_phone'] = $phone; $_SESSION['a_message'] = $message; $_SESSION['a_package'] = $package; $_SESSION['a_amount'] = $amount; header('Location: https://logodowntown.com/logo-offer/step2.php?retval='.$retval); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://logodowntown.com/logo-offer/error.php" </script>'; } if(isset($_POST['order_form4'])){ $name = htmlspecialchars($_POST['fn']); $email = htmlspecialchars($_POST['em']); $phone = htmlspecialchars($_POST['ph']); $message = htmlspecialchars($_POST['msg']); $package = $_POST['pkgname_action']; $amount = htmlspecialchars($_POST['lead_area']); $body = " <table class='table table-bordered'> <tr> <th>Name:</th> <td>".$name."</td> </tr> <tr> <th>Email:</th> <td>".$email."</td> </tr> <tr> <th>Phone:</th> <td>". $phone."</td> </tr> <tr> <th>Package:</th> <td>".$package."</td> </tr> <tr> <th>Amount:</th> <td>".$amount."</td> </tr> <tr> <th>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com"; $subject = "Order Quote | Logo Downtown"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //$headers .= "From: ". strip_tags($_POST['email']) . "\r\n"; $headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n"; $url = "https://www.google.com/recaptcha/api/siteverify"; $data = [ 'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y", 'response' => $_POST['token4'], // 'remoteip' => $_SERVER['REMOTE_ADDR'] ]; $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $res = json_decode($response, true); if($res['success'] == true) { $mysqli = mysqli_query($dbh,"insert into order_quote values('','$name','$email','$phone','$message','$package','$amount')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { $_SESSION['last_id'] = $dbh->insert_id; $_SESSION['a_name'] = $name; $_SESSION['a_email'] = $email; $_SESSION['a_phone'] = $phone; $_SESSION['a_message'] = $message; $_SESSION['a_package'] = $package; $_SESSION['a_amount'] = $amount; header('Location: https://logodowntown.com/logo-offer/order_step2.php?retval='.$retval); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://logodowntown.com/logo-offer/error.php" </script>'; } if(isset($_POST['consultancy'])){ $name = htmlspecialchars($_POST['fn']); $email = htmlspecialchars($_POST['em']); $phone = htmlspecialchars($_POST['ph']); $message = htmlspecialchars($_POST['msg']); $body = " <table class='table table-bordered'> <tr> <th>Name:</th> <td>".$name."</td> </tr> <tr> <th>Email:</th> <td>".$email."</td> </tr> <tr> <th>Phone:</th> <td>". $phone."</td> </tr> <tr> <th>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com"; $subject = "Consultancy Quote | Logo Downtown"; // Always set content-type when sending HTML email $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; //$headers .= "From: ". strip_tags($_POST['email']) . "\r\n"; $headers .= "Reply-To: ". strip_tags($_POST['email']) . "\r\n"; $url = "https://www.google.com/recaptcha/api/siteverify"; $data = [ 'secret' => "6LealFgbAAAAAEimYFRcsBi9jmor1X4v84vvqW2y", 'response' => $_POST['token5'], // 'remoteip' => $_SERVER['REMOTE_ADDR'] ]; $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $response = file_get_contents($url, false, $context); $res = json_decode($response, true); if($res['success'] == true) { $mysqli = mysqli_query($dbh,"insert into consultancy_quote values('','$name','$email','$phone','$message')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { header('Location: https://logodowntown.com/logo-offer/thank_you.php'); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://logodowntown.com/logo-offer/error.php" </script>'; } ?>