File manager - Edit - /home/asiatechinc/public_html/asiatech-websites/corbettriviera.com/contact.php
Back
<?php if(isset($_POST['formsubmit'])){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $privatekey = '6LdfMb0qAAAAABRpzBsIa4QDvInOP3Bg4tVs1VPK'; $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 Corbett Riviera, Lansdowne", "name":"'.$name.'", "email":"'.$email.'","phone":"'.$phone.'", "message":"'.$message.'", "mailto":"corbettriviera@gmail.com", "mailcc":"corbettriviera@gmail.com"}'; $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: index1.php?captcha=other'); echo '<script type="text/javascript">window.location.href = "contact.php?captcha=other";</script>'; } else { //header('Location: index1.php?captcha=yes'); echo '<script type="text/javascript">window.location.href = "contact.php?captcha=yes";</script>'; } } else { //header('Location: index1.php?captcha=no'); echo '<script type="text/javascript">window.location.href = "contact.php?captcha=no";</script>'; } } ?> <!DOCTYPE html> <html dir="ltr" lang="en-US"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Contact | Corbett Riviera, Lansdowne</title> <meta name="description" content="Corbett Riviera, Lansdowne"> <link rel="canonical" href="Corbett Riviera, Lansdowne"/> <link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon.png"> <meta name="keyword" content="#"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" /> <!-- Chrome, Firefox OS, Opera and Vivaldi --> <meta name="theme-color" content="#2098D1"> <!-- Windows Phone --> <meta name="msapplication-navbutton-color" content="#2098D1"> <!-- iOS Safari --> <meta name="apple-mobile-web-app-status-bar-style" content="#2098D1"> <!--[if lt IE 9]> <script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script> <![endif]--> <!-- Stylesheets ============================================= --> <link href='https://fonts.googleapis.com/css?family=PT+Sans' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=PT+Serif' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Mr+De+Haviland' rel='stylesheet' type='text/css'> <link href='https://fonts.googleapis.com/css?family=Raleway:300,100' rel='stylesheet' type='text/css'> <link rel="stylesheet" href="netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css"> <link rel="stylesheet" href="css/bootstrap.css" type="text/css" /> <link rel="stylesheet" href="css/style.css" type="text/css" /> <link rel="stylesheet" href="css/font-icons.css" type="text/css" /> <link rel="stylesheet" href="css/animate.css" type="text/css" /> <link rel="stylesheet" href="css/magnific-popup.css" type="text/css" /> <link rel="stylesheet" href="css/responsive.css" type="text/css" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.7.0/animate.min.css" media="all"/> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <!-- Begin: Capticha --> <script src='https://www.google.com/recaptcha/api.js'></script> <!--<script> grecaptcha.ready(function() { grecaptcha.execute('6Ld7K34UAAAAAEb4KKF3MVySwT31yUsA8b1lj41d', {action: 'action_name'}) .then(function(token) { // Verify the token on the server. }); }); </script> --> <!-- End: Capticha --> <!-- External JavaScripts ============================================= --> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/plugins.js"></script> <style> .page-title { background-image: url(images/inner-banner/contact-banner.jpg); background-size: 100% 130%;} img.leaf { width: 175px;} @media only screen and (max-width: 767px) { .page-title { background-size: 100% 64%;} } </style> </head> <body class="stretched"> <!-- Document Wrapper ============================================= --> <div id="wrapper" class="clearfix"> <!-- Begin: Header --> <?php include 'include/header.php'?> <!-- End: Header --> <!-- Page Title ============================================= --> <section id="page-title" class="page-title"> <div class="container center clearfix"> <h1 class="serif normal">Contact Us</h1> <!--<span>Join Encore Rewards® program and start saving today</span>--> </div> <div class="floating-pn-dark right dark">Call us +91 - 9910952267, 9818075397</div> </section><!-- #page-title end --> <!-- Content ============================================= --> <section id="content"> <div class="content-wrap bgcolor-black notoppadding nobottompadding"> <!-- <div class="section nobottommargin notopmargin bottompadding-lg bgcolor-white"> <div class="container toppadding-sm center"> <div class="blockquote"> <h3>My fiancĂ© and I went here to get married in their wedding chapel and we weren't disappointed. The hotel is simply stunning</h3> <span>Sarah Smith - Trip Advisor</span> </div> </div> </div>--> <!--<div class="section nobottommargin notopmargin notoppadding bottompadding-lg bgcolor-grey" style="background:url(images/pattern1.jpeg);">--> <div class="section nobottommargin notopmargin notoppadding bottompadding-lg bgcolor-grey" style=""> <div class="container toppadding-md"> <!--<div class="center"> <h2><center>Contact</center></h2> </div>--> <div class="clearfix"></div> <div class="contact"> <div class="container toppadding-sm"> <div class="contact-box bgcolor-grey clearfix"> <!--<div id="contact-form-result" data-notify-type="success" data-notify-msg="<i class=icon-ok-sign></i> Message Sent Successfully!"></div>--> <!-- Contact Form ============================================= --> <form action="" method="post"> <?php if($_GET['captcha'] == 'yes'){ echo '<div style="margin: 15px;" class="alert alert-success">Meaasge 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="col_half"> <label for="template-contactform-name">Name <small>*</small> required</label> <input type="text" name="name" value="" class="sm-form-control required" / required> </div> <div class="col_half col_last"> <label for="template-contactform-email">Email <small>*</small></label> <input type="email" name="email" value="" class="required email sm-form-control" / required> </div> <div class="clear"></div> <div class="col_half"> <label for="template-contactform-phone">Phone</label> <input type="text" name="phone" value="" class="sm-form-control" / required> </div> <div class="col_half col_last"> <label for="template-contactform-subject">Subject <small>*</small></label> <input type="text" name="subject" class="required sm-form-control" / required> </div> <!--<div class="col_half col_last"> <label for="template-contactform-service">Rooms</label> <select name="service" class="sm-form-control"> <option value="">-- Select One --</option> <option value="Customer Service">Valley View Non AC </option> <option value="Reservations">Garden View Non AC</option> <option value="Concierge">Valley View AC</option> <option value="Business Center">Garden View AC</option> <option value="Entertainment">AC Luxury Rooms</option> <option value="Entertainment">Honeymoon Couple Room</option> <option value="Entertainment">Garden View AC (4 Bed)</option> </select> </div>--> <div class="clear"></div> <!--<div class="col_full"> <label for="template-contactform-subject">Subject <small>*</small></label> <input type="text" name="subject" value="" class="required sm-form-control" /> </div>--> <div class="col_full"> <label for="template-contactform-message">Message <small>*</small></label> <textarea class="required sm-form-control" name="message" rows="6" cols="30"></textarea> </div> <div class="col_full hidden"> <input type="text" id="template-contactform-botcheck" name="template-contactform-botcheck" value="" class="sm-form-control" /> </div> <div class="col_half"> <div class="g-recaptcha" data-sitekey="6LdfMb0qAAAAALz5OLkfZgO8SuH3NwvWvy0wAmr-"></div> </div> <div class="col_half col_last"> <button class="button button-medium button-reveal button-gradient-blue tright" type="submit" name="formsubmit">Send Message</button> </div> </form> <script type="text/javascript"> $("#template-contactform").validate({ submitHandler: function(form) { $('.form-process').fadeIn(); $(form).ajaxSubmit({ target: '#contact-form-result', success: function() { $('.form-process').fadeOut(); $('#template-contactform').find('.sm-form-control').val(''); $('#contact-form-result').attr('data-notify-msg', $('#contact-form-result').html()).html(''); IGNITE.widget.notifications($('#contact-form-result')); } }); } }); </script> </div><!-- End Contact Form --> </div> <div class="col_full nobottommargin toppadding-md"> <h2><center>Information</center></h2> <!--<p class="center">Join Encore Rewards® program and start saving today</p> --> <div class="container toppadding-sm"> <div class="contact-box bgcolor-grey clearfix"> <div class="panel panel-default events-meta"> <div class="panel-body"> <ul class="iconlist nobottommargin"> <li><i class="icon-map-marker2"></i>Jogi Bilangi Kotdwar Lansdowne Road, Lansdowne Pauri Garhwal, Uttarakhand</li> <li><i class="icon-phone3"></i>+91 - 9910952267, 9818075397</li> <li><i class="icon-line-mail"></i> <a href="mailto:corbettriviera@gmail.com">corbettriviera@gmail.com</a></li> </ul> </div> </div> </div> </div> </div> </div> </div> </div> <!-- Google Map ============================================= --> <div class="col_full nopadding nomargin"> <!--<div id="google-map" class="gmap"></div>--> <!--<div id="google-map" class="gmap"></div>--> <iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3462.4559893793407!2d78.59511141443673!3d29.793368137345983!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3909799cc33f8a29%3A0xe3164be87f0caffe!2sCorbett%20Riviera%20-%20a%20Resort!5e0!3m2!1sen!2sin!4v1593149384261!5m2!1sen!2sin" width="100%" height="450" frameborder="0" style="border:0;" allowfullscreen="" aria-hidden="false" tabindex="0"></iframe> </div> <!--<div class="section notopmargin nobottommargin notopborder toppadding-xlg bgcolor-grey-light"> <div class="container"> <div class="boxedcontainer mini-links"> <div class="col_one_fourth bottommargin-xsm"> <h6><a href="#">Join Encore Rewards</a></h6> </div> <div class="col_one_fourth bottommargin-xsm"> <h6><a href="#">How to Use Points</a></h6> <ul> <li><a href="#">Hotels</a></li> <li><a href="#">Retail Stores</a></li> <li><a href="#">Buy, Share or Donate Points</a></li> </ul> </div> <div class="col_one_fourth bottommargin-xsm"> <h6><a href="#">How to Earn Points</a></h6> <ul> <li><a href="#">How to Earn with Rewards Partners</a></li> <li><a href="#">Airlines</a></li> <li><a href="#">Shopping</a></li> </ul> </div> <div class="col_one_fourth col_last bottommargin-xsm"> <h6><a href="#">Discover Benefits</a></h6> <ul> <li><a href="#">Membership Benefits</a></li> <li><a href="#">Program News</a></li> <li><a href="#">Frequently Asked Questions</a></li> <li><a href="#">Encore Rewards Offers</a></li> </ul> </div> <div class="divider"></div> <div class="col_one_fourth"> <h6><a href="#">Customer Support</a></h6> </div> <div class="col_one_fourth"> <h6><a href="#">Terms & Conditions</a></h6> <ul> <li><a href="#">Gold Membership</a></li> <li><a href="#">Silver Membership</a></li> <li><a href="#">Pet Club</a></li> </ul> </div> <div class="col_one_fourth"> <h6><a href="#">My Account</a></h6> <ul> <li><a href="#">Upcoming Reservations</a></li> <li><a href="#">Account Activity</a></li> <li><a href="#">Profile</a></li> <li><a href="#">Rewards Tracker</a></li> </ul> </div> <div class="col_one_fourth col_last"> <h6><a href="#">Encore Rewards</a></h6> <ul> <li><a href="#">Getting Started</a></li> <li><a href="#">Travel Forums</a></li> </ul> </div> </div> </div> </div>--> </div> </section><!-- #content end --> <!-- Begin: Footer --> <?php include 'include/footer.php'?> <!-- End: Footer --> </div><!-- #wrapper end --> <!-- Footer Scripts --> <script type="text/javascript" src="js/functions.js"></script> <script src="js/modernizr.js"></script> <!-- Google Map --> <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script> <script type="text/javascript" src="js/jquery.gmap.js"></script> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings