%PDF- %PDF-
Direktori : /home/eirtvhdf/hire-va.com/virtual-assistant-offer/ |
Current File : /home/eirtvhdf/hire-va.com/virtual-assistant-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>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com, charles.johnson@hire-va.com, chat@hire-va.com, frank@hire-va.com, george@hire-va.com, info@hire-va.com, social@hire-va.com, twitter@hire-va.com"; $subject = "Avail 50% Discount Quote | Hire VA"; // 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' => "6LfcuJYbAAAAAHnww519u7uf3o6KkE_LDMiEqHHx", '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 va_quote values('','$name','$email','$phone','$message','$package')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { header('Location: https://hire-va.com/virtual-assistant-offer/thank_you.php'); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://hire-va.com/virtual-assistant-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>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com, charles.johnson@hire-va.com, chat@hire-va.com, frank@hire-va.com, george@hire-va.com, info@hire-va.com, social@hire-va.com, twitter@hire-va.com"; $subject = "Virtual Assistant Quote | Hire VA"; // 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' => "6LfcuJYbAAAAAHnww519u7uf3o6KkE_LDMiEqHHx", '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 va_quote values('','$name','$email','$phone','$message','$package')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { header('Location: https://hire-va.com/virtual-assistant-offer/thank_you.php'); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://hire-va.com/virtual-assistant-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>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com, charles.johnson@hire-va.com, chat@hire-va.com, frank@hire-va.com, george@hire-va.com, info@hire-va.com, social@hire-va.com, twitter@hire-va.com"; $subject = "Virtual Assistant Quote | Hire VA"; // 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' => "6LfcuJYbAAAAAHnww519u7uf3o6KkE_LDMiEqHHx", '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 va_quote values('','$name','$email','$phone','$message','$package')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { header('Location: https://hire-va.com/virtual-assistant-offer/thank_you.php'); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://hire-va.com/virtual-assistant-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 = 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>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com, charles.johnson@hire-va.com, chat@hire-va.com, frank@hire-va.com, george@hire-va.com, info@hire-va.com, social@hire-va.com, twitter@hire-va.com"; $subject = "Virtual Assistant Package Quote | Hire VA"; // 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' => "6LfcuJYbAAAAAHnww519u7uf3o6KkE_LDMiEqHHx", '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 va_quote values('','$name','$email','$phone','$message','$package')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { header('Location: https://hire-va.com/virtual-assistant-offer/thank_you.php'); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://hire-va.com/virtual-assistant-offer/error.php" </script>'; } if(isset($_POST['consultancy'])){ $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>Message:</th> <td>".$message."</td> </tr> </table> "; $to = "fahad.ansari@alogodaddy.com, charles.johnson@hire-va.com, chat@hire-va.com, frank@hire-va.com, george@hire-va.com, info@hire-va.com, social@hire-va.com, twitter@hire-va.com"; $subject = "Virtual Assistant Quote | Hire VA"; // 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' => "6LfcuJYbAAAAAHnww519u7uf3o6KkE_LDMiEqHHx", '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 va_quote values('','$name','$email','$phone','$message','$package')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { header('Location: https://hire-va.com/virtual-assistant-offer/thank_you.php'); } else{ echo 'Mail not sent'; } } echo '<script type="text/javascript"> window.location = "https://hire-va.com/virtual-assistant-offer/error.php" </script>'; } ?>