File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/nuabhouse.com/contact.php
Back
<?php if(isset($_POST['formsubmit'])){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $privatekey = '6LfIGNYqAAAAAAdpFPqvsp9KALsu7chPN2D3LWM6'; $ch0 = curl_init(); curl_setopt($ch0, CURLOPT_URL, $url."?secret=".$privatekey."&response=".$_POST['g-recaptcha-response']."&remoteip=".$_SERVER['REMOTE_ADDR']); curl_setopt($ch0, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch0, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch0, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch0, CURLOPT_HTTPHEADER, array( 'Content-Type:application/json', )); $gresponse = curl_exec($ch0); $data = json_decode($gresponse, true); if($data['success'] == 1){ $name = strip_tags(trim($_POST["name"])); $email = strip_tags(trim($_POST["email"])); $phone = strip_tags(trim($_POST["phone"])); $message = strip_tags(trim($_POST["message"])); $postfield = '{"subject":"Query from Website NUAB House", "name":"'.$name.'", "email":"'.$email.'","phone":"'.$phone.'", "message":"'.$message.'", "mailto":"info@nuabhouse.com", "mailbcc":"support@asiatech.in", "mailbcc1":"iti@asiatech.in"}'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.asiatech.in/booking_engine/emailsendpoint.php'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postfield); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_HTTPHEADER, array( 'Accept: application/json', )); $json =curl_exec($ch); $jsondecode = json_decode($json, true); if($jsondecode['error']!=''){ header('Location: contact.php?captcha=other'); } else { header('Location: thank-you.php?captcha=yes'); } } else { header('Location: contact.php?captcha=no'); } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Contact | NUAB House</title> <link rel="shortcut icon" type="image/x-icon" href="images/logo.png"> <!-- Bootstrap core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <!-- Full Calender CSS --> <link href="css/fullcalendar.css" rel="stylesheet"> <!-- Owl Carousel CSS --> <link href="css/owl.carousel.css" rel="stylesheet"> <!-- Pretty Photo CSS --> <link href="css/prettyPhoto.css" rel="stylesheet"> <!-- Bx-Slider StyleSheet CSS --> <link href="css/jquery.bxslider.css" rel="stylesheet"> <!-- Font Awesome StyleSheet CSS --> <link href="css/font-awesome.min.css" rel="stylesheet"> <!-- SVG StyleSheet CSS --> <link href="svg/style.css" rel="stylesheet"> <!-- Widget CSS --> <link href="css/widget.css" rel="stylesheet"> <!-- Typography CSS --> <link href="css/typography.css" rel="stylesheet"> <!-- Shortcodes CSS --> <link href="css/shortcodes.css" rel="stylesheet"> <!-- Custom Main StyleSheet CSS --> <link href="style.css" rel="stylesheet"> <!-- Color CSS --> <link href="css/color.css" rel="stylesheet"> <!-- DATE PICKER CSS --> <link href="css/datepicker.css" rel="stylesheet"> <!-- Effects CSS --> <link href="css/effects.css" rel="stylesheet"> <!-- Slectric CSS --> <link href="css/selectric.css" rel="stylesheet"> <!-- DL Menu CSS --> <link href="js/dl-menu/component.css" rel="stylesheet"> <!-- Responsive CSS --> <link href="css/responsive.css" rel="stylesheet"> <script src='https://www.google.com/recaptcha/api.js'></script> <link href="https://fonts.googleapis.com/css2?family=Galada&display=swap" rel="stylesheet"> <style> section.contactus-wrap { background: url(images/body.jpg); } </style> </head> <body> <!--KF KODE WRAPPER WRAP START--> <div class="kode_wrapper"> <!--Begin:Header section--> <?php include 'include/header.php'; ?> <!--End Header section--> <!--HOME PAGE BANNER START--> <div class="kf-home-banner inner-banner"> <div class="container"> <h3>Contact Us</h3> <span><i class="icon-hotel"></i></span> <ul class="breadcrumb"> <li><a href="index.php">Home</a></li> <li>Contact Us</li> </ul> </div> </div> <!--HOME PAGE BANNER END--> <div class="kf_content_wrap"> <section class="contactus-wrap"> <div class="container"> <div class="kf-cont-heading"> <h3>Get In Touch</h3> <p>Our Guest House warm hospitality, the pleasing and an assortment of delectable dishes at guest House experience satiating. </p> </div> <div class="row"> <div class="col-md-8 col-sm-6"> <form action="" method="post" > <?php if($_GET['captcha'] == 'yes'){ echo '<div style="margin: 15px;" class="alert alert-success">Message Send</div>'; } else if($_GET['captcha'] == 'no'){ echo '<div style="margin: 15px;" class="alert alert-danger">Captcha Failed. Please try again!</div>'; } else if($_GET['captcha'] == 'other'){ echo '<div style="margin: 15px;" class="alert alert-danger">Oops! Something went wrong and we couldn\'t send your message.</div>'; } ?> <div class="kf-contact-des"> <input class="input-left" type="text" name="name" id="txtName" placeholder="Name" required> <span id="lblError" style="color: red"></span> <input class="input-right" type="text" name="email" id = "txtEmail" placeholder="E-mail" required> </div> <input type="text" class="numeric" name="phone" id="text1" maxlength="10" placeholder="Phone" required> <textarea name="message" placeholder="Message"></textarea> <div class="col-md-6"> <div class="g-recaptcha" data-sitekey="6LfIGNYqAAAAALexaDaw3mr3D4GTTCxnTeLlLX8m"></div> </div> <div class="col-md-6"> <button type="submit" name="formsubmit">Submit Now</button> </div> </form> </div> <div class="col-md-4 col-sm-6"> <ul class="kf-cnt"> <li> <i class="icon-tool"></i> <div class="overflow-contac"> <p>C-944, Sushant Lok Rd, Block C, Sushant Lok Phase I, Sector 43, Gurugram, Haryana 122002</p> </div> </li> <li> <i class="icon-interface"></i> <div class="overflow-contac" style=""> <a href="holidayhotelpurnea@gmail.com">info@nuabhouse.com</a> </div> </li> <li> <i class="icon-telephone"></i> <div class="overflow-contac" style=""> <em>+91 9711555795</em> <em>+91 8595724736</em> <em>+91 1247962348</em> </div> </li> </ul> </div> </div> </div> </section> <div class="kf-contact-map"> <iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d14030.703680696475!2d77.0821843!3d28.4591842!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0xcee73fa09c9dd085!2sNUAB%20House!5e0!3m2!1sen!2sin!4v1604643357023!5m2!1sen!2sin" width="100%" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe> </div> </div> <!--Begin:Footer section--> <?php include 'include/footer.php'; ?> <!--End Footer section--> </div> <!--KF KODE WRAPPER WRAP END--> <!--Bootstrap core JavaScript--> <script src="js/jquery.js"></script> <script src="js/bootstrap.min.js"></script> <!--Bx-Slider JavaScript--> <script src="js/jquery.bxslider.min.js"></script> <!--Owl Carousel JavaScript--> <script src="js/owl.carousel.min.js"></script> <!--Map--> <script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script> <!--Pretty Photo JavaScript--> <script src="js/jquery.prettyPhoto.js"></script> <!--Full Calender JavaScript--> <script src="js/moment.min.js"></script> <script src="js/fullcalendar.min.js"></script> <script src="js/jquery.downCount.js"></script> <!--Image Filterable JavaScript--> <script src="js/jquery-filterable.js"></script> <!--Number Count (Waypoints) JavaScript--> <script src="js/waypoints-min.js"></script> <script src="js/bootstrap-datepicker.js"></script> <!--Progress bar JavaScript--> <script src="js/jprogress.js" type="text/javascript"></script> <!-- include Masonry --> <script src="js/jquery.selectric.min.js"></script> <!--Dl Menu Script--> <script src="js/dl-menu/modernizr.custom.js"></script> <!--Dl Menu Script--> <script src="js/dl-menu/jquery.dlmenu.js"></script> <!--Custom JavaScript--> <script src="js/custom.js"></script> <script type="text/javascript"> $(function () { $("#txtName").keypress(function (e) { var keyCode = e.keyCode || e.which; $("#lblError").html(""); //Regex for Valid Characters i.e. Alphabets. var regex = /^[A-Za-z]+$/; //Validate TextBox value against the Regex. var isValid = regex.test(String.fromCharCode(keyCode)); if (!isValid) { $("#lblError").html("Only Alphabets allowed."); } return isValid; }); }); </script> <script type="text/javascript"> var specialKeys = new Array(); specialKeys.push(8); //Backspace $(function () { $(".numeric").bind("keypress", function (e) { var keyCode = e.which ? e.which : e.keyCode var ret = ((keyCode >= 48 && keyCode <= 57) || specialKeys.indexOf(keyCode) != -1); $(".error").css("display", ret ? "none" : "inline"); return ret; }); $(".numeric").bind("paste", function (e) { return false; }); $(".numeric").bind("drop", function (e) { return false; }); }); </script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings