File manager - Edit - /home/asiatechinc/public_html/asiatechinc-websites/lehlingguesthouse.com/package.php
Back
<?php if(isset($_POST['formsubmit'])){ $url = 'https://www.google.com/recaptcha/api/siteverify'; $privatekey = '6LdraI4UAAAAANpbY5ZJEje_2d80dyCpSp_eAhzP'; $response = file_get_contents($url."?secret=".$privatekey."&response=".$_POST['g-recaptcha-response']."&remoteip=".$_SERVER['REMOTE_ADDR']); $data = json_decode($response); if(isset($data->success) AND $data->success==true){ $name = strip_tags(trim($_POST["name"])); $email = filter_var(trim($_POST["email"]), FILTER_SANITIZE_EMAIL); $phone = trim($_POST["phone"]); $city = trim($_POST["city"]); $package = trim($_POST["package"]); $adult = trim($_POST["adult"]); $children = trim($_POST["children"]); $message = trim($_POST["message"]); $to = " lehling2007@rediffmail.com"; $subject = "Website Query"; $headers = "From: Lehling Guest House <support@asiatech.in>\r\n"; $headers .= "CC: support@asiatech.in\r\n"; $headers .= "BCC: anamika@asiatech.in\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; $email_content='<div style="border:3px solid 98bc6c; width:80%;display:block;margin: 0px auto;"><div> <span style="font-size:20pt;">Lehling Guest House</span><br /> <span style="color:#FCAF17;font-size:15pt;">Enquiry Detail From Your Website</span><br /> <table cellspacing="0" style="width:100%;height:200px;"><tr style="background-color: #97BB6A;color:#fff;"><td colspan="2">The details are as follows.</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Customer Name</td><td style="border:1px solid #000000;padding:5px;">'.$name.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Email Id</td><td style="border:1px solid #000000;padding:5px;">'.$email.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Phone No</td><td style="border:1px solid #000000;padding:5px;">'.$phone.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">City Name</td><td style="border:1px solid #000000;padding:5px;">'.$city.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Packages</td><td style="border:1px solid #000000;padding:5px;">'.$package.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Adult</td><td style="border:1px solid #000000;padding:5px;">'.$adult.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Children</td><td style="border:1px solid #000000;padding:5px;">'.$children.'</td></tr> <tr><td style="border:1px solid #000000;padding:5px;font-weight:bold;">Message</td><td style="border:1px solid #000000;padding:5px;">'.$message.'</td></tr> </table><br>Thank you<br /> <span style="color:green;"><a href="http://www.asiatech.in/">AsiaTech Inc</a></span></div></div>'; if (mail($to, $subject, $email_content, $headers)) { header('Location: package.php?captcha=yes'); } else { header('Location: package.php?captcha=other'); } } else { header('Location: package.php?captcha=no'); } } ?> <!DOCTYPE html> <html> <head> <!-- HEADER TAGS --> <meta charset=utf-8> <link rel="shortcut icon" href="assets/img/lgo.jpg"> <title>LEHLING GUEST HOUSE. - Tours Packages</title> <!-- Website's title ( it will be shown in browser's tab ), Change the website's title based on your Company information --> <meta name=viewport content="width=device-width, initial-scale=1.0, maximum-scale=2.0, user-scalable=no"> <!-- Meta Tags ( They are use for SEO purpose, they don't effect on website's design --> <meta name=description content=Responsive,HTML5,CSS3,XML,JavaScript> <!-- Add your Company short description --> <meta name=keywords content="Yoona is a responsive template for hotels and resorts."> <!-- Add some Keywords based on your Company and your business and separate them by comma0 --> <meta name=author content="Joseph a, ravistheme@gmail.com"> <script src='https://www.google.com/recaptcha/api.js?render=6Ld7K34UAAAAAEb4KKF3MVySwT31yUsA8b1lj41d'></script> <!-- End of Meta tags --> <link href=http://fonts.googleapis.com/css?family=Droid+Sans:400,700%7cDroid+Serif:400,700,400italic,700italic%7cYellowtail%7cGreat+Vibes rel=stylesheet type=text/css> <link rel=stylesheet id=main-style-file type=text/css href=assets/css/styles.css> <!-- include main style's file ( Do Not change the ID - You can change the styles.css name based on your desired preset color file like "styles_1.css" ) --> <!-- END OF HEADER TAGS --> <style> .col-md-4.col-xs-12.formbg { background: #f5c4c7; padding: 20px 21px 1px 22px; } .chosen-container.chosen-container-single.chosen-container-single-nosearch { margin-top: 5px !important; } </style> </head> <body class="inner-page shortcodes"> <!-- Main Wrapper --> <div class=main-wrapper> <!-- HEADER --> <?php include "include/header.php" ?> <!-- END OF HEADER --> <!-- Internal Page Main titles boxes --> <section id=internal-title class=container data-background=parallax> <img src="assets/img/banner4.jpg" class="img-responsive"> </section> <!-- End of Internal Page Main titles boxes --> <section id=agents-boxes class=padding-bottom> <h3><span><b>Tour</b> Packages</span></h3> <div class=container> <div class="col-md-4 col-xs-12 formbg"> <center><h3>Contact Form</h3></center> <form id="#" action="" method="POST" novalidate=""> <?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="row"> <div class="name-field col-md-12 col-xs-12"> <input type="text" name="name" placeholder="Name *" required="" data-parsley-id="9334"><ul class="parsley-errors-list" id="parsley-id-9334"></ul><!-- Name Field --> </div> </div> <div class="row"> <div class="email-field col-md-12 col-xs-12"> <input type="email" name="email" placeholder="Email *" required="" data-parsley-id="8280"><ul class="parsley-errors-list" id="parsley-id-8280"></ul><!-- Email Field --> </div> </div> <div class="row"> <div class="phone-field col-md-12 col-xs-12"> <input type="text" name="phone" placeholder="Phone" data-parsley-id="3767"><ul class="parsley-errors-list" id="parsley-id-3767"></ul><!-- Phone Field --> </div> </div> <div class="row"> <div class="phone-field col-md-12 col-xs-12"> <input type="text" name="city" placeholder="City" data-parsley-id="3767"><ul class="parsley-errors-list" id="parsley-id-3767"></ul><!-- Phone Field --> </div> </div> <div class="row"> <div class="phone-field col-md-12 col-xs-12"> <input type="text" name="package" placeholder="Packages" data-parsley-id="3767"><ul class="parsley-errors-list" id="parsley-id-3767"></ul><!-- Phone Field --> </div> </div> <div class="row"> <div class="phone-field col-md-12 col-xs-12"> <select name="adult"> <option value="">Adult</option> <option value="2">1</option> <option value="3">2</option> <option value="4">3</option> <option value="5">4</option> <option value="6">5</option> </select></div> </div> <div class="row"> <div class="phone-field col-md-12 col-xs-12"> <select name="children"> <option value="">Children</option> <option value="2">1</option> <option value="3">2</option> <option value="4">3</option> <option value="5">4</option> <option value="6">5</option> </select><!-- Phone Field --> </div> </div><br> <div class="phone-field col-md-12 col-xs-12"> <div class="message-field row"> <textarea name="message" placeholder="Message *" required="" rows="1" style="height: 100px;"></textarea><ul class="parsley-errors-list" id="parsley-id-7793"></ul> <div class="g-recaptcha" data-sitekey="6LdraI4UAAAAAFpxefYeI3xSy9Hoi49BRy9Rz3M5"></div> <!-- Main Message Field --> <input type="submit" class="contact-submit btn colored" name="formsubmit"> <!-- Submit Button --> </div> </div> <div class="clear"> </div> </form> </div> <!-- Staff Box --> <div class="col-md-8"> <div class="agent-boxes minimal col-xs-12" data-animation=fadeInUp> <div class="agent-box clearfix"> <div class="agent-pic col-md-5"> <img src=assets/img/tour1.jpg alt=Director> </div> <div class="agent-bottom col-md-7"> <div class=name>DREAM LADAKH</div> <div class=title>(3 NIGHTS AND 4DAYS)</div><br> <div class=description> Arrival at Leh airport and transferred to the Hotel/Guest house. Complete day for Acclimatize. Later evening after 2pm visit to Leh Market, Leh Palace and Shanti Stupa. O/N Leh </div> </div> <a href="ladhak.php" style="margin-top: 32px;" class="book-now btn btn-sm colored">Read More</a> <div class=social-icons> <a class=skype href=#></a> <a class=email href=#></a> <a class=facebook href=#></a> <a class=twitter href=#></a> <a class=google-plus href=#></a> </div> </div> </div> <!-- End of Staff box --> <div class="agent-boxes minimal col-xs-12" data-animation=fadeInUp> <div class="agent-box clearfix"> <div class="agent-pic col-md-5"> <img src=assets/img/tour2.jpg alt=Director> </div> <div class="agent-bottom col-md-7"> <div class=name>COMFORT LADAKH</div> <div class=title>(4NIGHT AND 5DAYS)</div> <div class=description> Arrive at Leh airport, meet and greet by our representative and transfer to your reserved accommodation. Check into the hotel/Guest house and get proper rest to acclimatize. Later, in the evening visit the Leh Market, Leh Palace and Shanti Stupa. O/N Leh. </div> </div> <a href="ladhak2.php" style="margin-top: 32px;" class="book-now btn btn-sm colored">Read More</a> <div class=social-icons> <a class=skype href=#></a> <a class=email href=#></a> <a class=facebook href=#></a> <a class=twitter href=#></a> <a class=google-plus href=#></a> </div> </div> </div> <div class="agent-boxes minimal col-xs-12" data-animation=fadeInUp> <div class="agent-box clearfix"> <div class="agent-pic col-md-5"> <img src=assets/img/tour3.jpg alt=Director> </div> <div class="agent-bottom col-md-7"> <div class=name>WILDERNESS LADAKH</div> <div class=title>(6NIGHTS AND 7DAYS)</div> <div class=description>Arrive at Leh airport and transfer to the respective Hotel, booked for you. You are advised to take complete rest for the day to adapt yourself with new environment at 11,135 feet altitude.. Later, in the evening visit the Leh Market, Leh Palace, known as ‘Lachen Palkhar’ and Shanti Stupa, located on a hilltop near Chanspa. O/N Leh.</div> </div> <a href="wilder.php" style="margin-top: 32px;" class="book-now btn btn-sm colored">Read More</a> <div class=social-icons> <a class=skype href=#></a> <a class=email href=#></a> <a class=facebook href=#></a> <a class=twitter href=#></a> <a class=google-plus href=#></a> </div> </div> </div> <div class="agent-boxes minimal col-xs-12" data-animation=fadeInUp> <div class="agent-box clearfix"> <div class="agent-pic col-md-5"> <img src=assets/img/tour4.jpg alt=Director> </div> <div class="agent-bottom col-md-7"> <div class=name>TWIN VALLEY</div> <div class=title>(6NIGHT AND 7DAYS)</div> <div class=description> On arriving in Leh, meet our tour representative who helps you with an assisted transfer to your hotel. After completing the check-in formalities, the day is at leisure. Placed at an altitude of 3542 meters, the enchanting Leh is one of the most popular tourist destinations of India. It is extremely important that you acclimatize yourself to the high pressure of the high altitude so that you can enjoy your vacations here. Overnight stay. </div> </div> <a href="twin.php" style="margin-top: 32px;" class="book-now btn btn-sm colored">Read More</a> <div class=social-icons> <a class=skype href=#></a> <a class=email href=#></a> <a class=facebook href=#></a> <a class=twitter href=#></a> <a class=google-plus href=#></a> </div> </div> </div> <div class="agent-boxes minimal col-xs-12" data-animation=fadeInUp> <div class="agent-box clearfix"> <div class="agent-pic col-md-5"> <img src=assets/img/tour5.jpg alt=Director> </div> <div class="agent-bottom col-md-7"> <div class=name>Ladakh Motor Bike Tour</div> <div class=title>(7N/8D7 NIGHTS/ 8 DAYS)</div> <div class=description>We offer 7 nighs & 8 days Ladakh Bike Tour package. With our Ladakh Motorcycle Tour or Bike Tour Package in Ladakh explore the natural beauty of Ladakh region. Tour sector: Leh- Lamyuru- Nubra- Pangong- Leh Ladakh Bike Tour Package, a unique opportunity to escape the stressful city life and explore nature at its best, as you come in so close contact with natu</div> </div> <a href="motor.php" style="margin-top: 32px;" class="book-now btn btn-sm colored">Read More</a> <div class=social-icons> <a class=skype href=#></a> <a class=email href=#></a> <a class=facebook href=#></a> <a class=twitter href=#></a> <a class=google-plus href=#></a> </div> </div> </div> </div> <!-- End of Agent Boxes --> </div> </section> <!-- TOP FOOTER --> <?php include "include/footer.php" ?> <!-- END OF TOP FOOTER --> <!-- FOOTER --> <!-- END OF FOOTER --> </div> <!-- Style Selector --> <!-- JS Includes --> <!-- Essential JS files ( DO NOT REMOVE THEM ) --> <script type=text/javascript src=assets/js/jquery-1.11.1.min.js></script> <script type=text/javascript src=assets/js/jquery.modernizr.min.js></script> <!-- Include required js files --> <script type=text/javascript src=assets/js/jquery.magnific-popup.min.js></script> <script type=text/javascript src=assets/js/helper.js></script> <script type=text/javascript src=assets/js/init.js></script> <script type=text/javascript src=assets/js/template.js></script> <!-- End of JS Includes --> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings