%PDF- %PDF-
Direktori : /proc/self/root/home/eirtvhdf/logobrainiac.com/ |
Current File : //proc/self/root/home/eirtvhdf/logobrainiac.com/get.php |
<?php require("database.php"); //$sitekey = "6LfTrdgZAAAAAGDqmtD3SNIcuwamv3VNDi9ZB_RR"; if(isset($_POST['req_form'])){ $fname = $_POST['fname']; $lname = $_POST['lname']; $name = $fname.' '.$lname; $email = $_POST['email']; $phone = $_POST['phone']; $message = $_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 = "fahadansari91@gmail.com"; $subject = "Message From A LogoDaddy"; // 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' => "6Lfr-54aAAAAAMz_OZ8zbDqbxNWBplgcceQn-loQ", 'response' => $_POST['token'], // '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 reqForm values('','$name','$email','$phone','$message')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { echo '<script type="text/javascript"> window.location = "https://logobrainiac.com/thankyou_quote.php" </script>'; } else{ echo 'Mail not sent'; } } else{ echo "<script> window.onload = function() { myfunction2(); }; </script>"; } } if(isset($_POST['get_start'])){ $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $message = $_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 = "fahadansari91@gmail.com"; $subject = "Message From A LogoDaddy"; // 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' => "6Lfr-54aAAAAAMz_OZ8zbDqbxNWBplgcceQn-loQ", '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 reqForm values('','$name','$email','$phone','$message')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { echo '<script type="text/javascript"> window.location = "https://logobrainiac.com/thankyou_quote.php" </script>'; } else{ echo 'Mail not sent'; } } else{ echo "<script> window.onload = function() { myfunction2(); }; </script>"; } } if(isset($_POST['contact'])){ $name = $_POST['name']; $email = $_POST['email']; $phone = $_POST['phone']; $message = $_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 = "fahadansari91@gmail.com"; $subject = "Message From A LogoDaddy"; // 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' => "6Lfr-54aAAAAAMz_OZ8zbDqbxNWBplgcceQn-loQ", '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 reqForm values('','$name','$email','$phone','$message')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { echo '<script type="text/javascript"> window.location = "https://logobrainiac.com/thankyou_quote.php" </script>'; } else{ echo 'Mail not sent'; } } else{ echo "<script> window.onload = function() { myfunction2(); }; </script>"; } } if(isset($_POST['project_req'])){ $name = htmlspecialchars($_POST['name']); $email = htmlspecialchars($_POST['email']); $phone = htmlspecialchars($_POST['phone']); $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>Message:</th> <td>".$message."</td> </tr> <tr> <th>Package:</th> <td>".$package."</td> </tr> <tr> <th>Price:</th> <td>".$amount."</td> </tr> </table> "; $to = "fahadansari91@gmail.com"; $subject = "Message From A LogoDaddy"; // 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' => "6Lfr-54aAAAAAMz_OZ8zbDqbxNWBplgcceQn-loQ", '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 package_order values('','$name','$email','$phone','$message','$package','$amount')"); $retval = mail ($to,$subject,$body,$headers); if( $retval == true ) { echo '<script type="text/javascript"> window.location = "https://logobrainiac.com/thankyou_quote.php" </script>'; } else{ echo 'Mail not sent'; } } else{ echo "<script> window.onload = function() { myfunction2(); }; </script>"; } } ?> <!-- Central Modal Medium Info --> <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog modal-notify modal-info" role="document"> <!--Content--> <div class="modal-content secondary-r-gradient"> <!--Header--> <!--Body--> <div class="modal-body"> <div class="text-center"> <i style="color:#24bdc9;" class="fa fa-check fa-4x mb-3 animated rotateIn"></i> <p style="color:white">THANK YOU!</br>Your Message has been Successfully Sent</p> </div> </div> <!--Footer--> </div> <!--/.Content--> </div> </div> <!-- Central Modal Medium Info--> <!-- Central Modal Medium Info --> <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog modal-notify modal-info" role="document"> <!--Content--> <div class="modal-content secondary-r-gradient"> <!--Header--> <!--Body--> <div class="modal-body"> <div class="text-center"> <i style="color:red;" class="fa fa-times fa-4x mb-3 animated rotateIn"></i> <p style="color:black">Invalid Captcha, Please Try Again.</p> </div> </div> <!--Footer--> </div> <!--/.Content--> </div> </div> <!-- Central Modal Medium Info--> <script> function myfunction1(){ $("#myModal1").modal('show'); } function myfunction2(){ $("#myModal2").modal('show'); } $("#myModal2").hide();; </script> <script src="https://www.google.com/recaptcha/api.js?render=6Lfr-54aAAAAAF2oWOTM2BPYTXZWF5Dbxhjcy_he"></script> <script> grecaptcha.ready(function() { grecaptcha.execute('6Lfr-54aAAAAAF2oWOTM2BPYTXZWF5Dbxhjcy_he', {action: 'homepage'}).then(function(token) { // console.log(token); document.getElementById("token").value = token; }); }); </script> <script> grecaptcha.ready(function() { grecaptcha.execute('6Lfr-54aAAAAAF2oWOTM2BPYTXZWF5Dbxhjcy_he', {action: 'homepage'}).then(function(token1) { // console.log(token); document.getElementById("token1").value = token1; }); }); </script> <script> grecaptcha.ready(function() { grecaptcha.execute('6Lfr-54aAAAAAF2oWOTM2BPYTXZWF5Dbxhjcy_he', {action: 'homepage'}).then(function(token2) { // console.log(token); document.getElementById("token2").value = token2; }); }); </script> <script> grecaptcha.ready(function() { grecaptcha.execute('6Lfr-54aAAAAAF2oWOTM2BPYTXZWF5Dbxhjcy_he', {action: 'homepage'}).then(function(token3) { // console.log(token); document.getElementById("token3").value = token3; }); }); </script>