X7ROOT File Manager
Current Path:
/home/u126090504/domains/kiitacademy.in/public_html
home
/
u126090504
/
domains
/
kiitacademy.in
/
public_html
/
π
+2-Arts&Commerce.php
(6.81 KB)
π
..
π
.htaccess
(1.12 KB)
π
about-us.php
(9.37 KB)
π
achievers.php
(3.36 KB)
π
admin
π
admission.php
(4.92 KB)
π
admission_submit.php
(1.48 KB)
π
album.php
(890 B)
π
cleanup_README.txt
(1.25 KB)
π
computer-courses.php
(22.83 KB)
π
config.php
(1.21 KB)
π
contact-us.php
(8.19 KB)
π
contactdb.php
(796 B)
π
css
π
director's-message.php
(4.53 KB)
π
downloads.php
(3.14 KB)
π
error.log
(13.82 KB)
π
facilities.php
(13.29 KB)
π
faculty.php
(3.56 KB)
π
fonts
π
footer.php
(5.7 KB)
π
franchise.php
(2.09 KB)
π
gallery.php
(3.32 KB)
π
header.php
(11.92 KB)
π
images
π
index.php
(39.44 KB)
π
js
π
kiit
π
kiit-backup.zip
(85.95 MB)
π
lib
π
media.php
(2.76 KB)
π
payment.php
(8.88 KB)
π
payment_submit.php
(10.97 KB)
π
payment_verify.php
(2.31 KB)
π
qrcodes
π
revolution
π
search_videos.php
(1.76 KB)
π
secure_upload.php
(2.87 KB)
π
showpath.php
(107 B)
π
u721653068_kiitinst25.sql
(17.4 KB)
π
uploads
π
videos.php
(4.38 KB)
Editing: contact-us.php
<?php require_once 'config.php'; include("header.php"); $success = $error = ""; /** reCAPTCHA v2 verify */ function verify_recaptcha_v2(string $token): bool { if (empty($token)) return false; $endpoint = 'https://www.google.com/recaptcha/api/siteverify'; $payload = http_build_query([ 'secret' => RECAPTCHA_SECRET_KEY, 'response' => $token, 'remoteip' => $_SERVER['REMOTE_ADDR'] ?? null, ]); if (function_exists('curl_init')) { $ch = curl_init($endpoint); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_POSTFIELDS => $payload, CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 10, ]); $resp = curl_exec($ch); curl_close($ch); } else { $opts = ['http' => [ 'method' => 'POST', 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'content' => $payload, 'timeout' => 10 ]]; $resp = @file_get_contents($endpoint, false, stream_context_create($opts)); } if (!$resp) return false; $data = json_decode($resp, true); return !empty($data['success']); } // Handle form submission if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['submit_contact'])) { // Honeypot (bots often fill hidden fields) if (!empty($_POST['website'])) { $error = "β Verification failed. Please try again."; } else { // Verify reCAPTCHA BEFORE saving to DB $recaptchaToken = $_POST['g-recaptcha-response'] ?? ''; if (!verify_recaptcha_v2($recaptchaToken)) { $error = "β Please complete the reCAPTCHA check."; } else { // Sanitize inputs $name = trim($_POST['coname'] ?? ''); $email = trim($_POST['coemail'] ?? ''); $subject = trim($_POST['cosub'] ?? ''); $phone = trim($_POST['cophone'] ?? ''); $message = trim($_POST['comes'] ?? ''); if ($name && $email && $subject && $message) { $stmt = $conn->prepare("INSERT INTO contacttab (coname, coemail, cosub, cophone, comes) VALUES (?,?,?,?,?)"); $stmt->bind_param("sssss", $name, $email, $subject, $phone, $message); if ($stmt->execute()) { $success = "β Thank you! Your message has been sent successfully."; } else { $error = "β Something went wrong. Please try again later."; } } else { $error = "β οΈ Please fill all required fields."; } } } } ?> <!-- Page Title --> <div class="ttm-page-title-row"> <div class="ttm-page-title-row-inner ttm-textcolor-white"> <div class="container"> <div class="row align-items-center"> <div class="col-lg-12"> <div class="page-title-heading"> <h2 class="title">Contact Us</h2> </div> <div class="breadcrumb-wrapper"> <span><a title="Homepage" href="index.php">Home</a></span> <span class="ttm-bread-sep"> > </span> <span class="current">Contact Us</span> </div> </div> </div> </div> </div> </div> <!-- Page Title End --> <!-- Site Main --> <div class="site-main"> <!-- Contact Section --> <section class="ttm-row conatact-section bg-map pb-0 clearfix"> <div class="container"> <div class="row"> <!-- Contact Info --> <div class="col-lg-4 mr-auto"> <div class="mb-25"> <h3>Weβre Happy to Answer any Question</h3> </div> <ul class="ttm_contact_widget_wrapper list-inline"> <li> <h5 class="title font-weight-normal mb-10"> <i class="pr-10 ttm-textcolor-skincolor ti ti-location-pin"></i> KIIT Academy Jagannathpur, in front of Bhadrak Autonomous College<br/>Near NCC Building, Bhadrak, Odisha.<br/> π± Call/WhatsApp: 9437259331,8984986349 </h5> </li> <li class="mt-15 mb-20"><span class="ttm-horizontal_sep"></span></li> <li> <h5 class="title font-weight-normal mb-10"> <i class="pr-10 ttm-textcolor-skincolor fa fa-envelope-o"></i>Email </h5> <a href="mailto:kaminiautomation@gmail.com">kaminiautomation@gmail.com</a> </li> <li class="mt-15 mb-20 d-block"><span class="ttm-horizontal_sep"></span></li> </ul> </div> <!-- Contact Form --> <div class="col-lg-7"> <div class="ttm-col-bgcolor-yes ttm-bg ttm-bgcolor-skincolor z-index-2 spacing-7"> <div class="layer-content"> <div class="mb-30 res-991-mb-0"> <h3>Want to talk? Letβs do it!</h3> </div> <!-- Success/Error Messages --> <?php if (!empty($success)): ?> <div class="alert alert-success"><?php echo htmlspecialchars($success); ?></div> <?php elseif (!empty($error)): ?> <div class="alert alert-danger"><?php echo htmlspecialchars($error); ?></div> <?php endif; ?> <!-- Contact Form --> <form id="contact_form" action="" method="post" novalidate> <!-- Honeypot field (keep empty) --> <input type="text" name="website" value="" autocomplete="off" tabindex="-1" aria-hidden="true" style="position:absolute; left:-5000px; opacity:0; height:0; width:0; pointer-events:none;"> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label style="color:white;">Name</label> <input name="coname" class="form-control" type="text" placeholder="Enter Name" required> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label style="color:white;">Email</label> <input name="coemail" class="form-control" type="email" placeholder="Enter Email" required> </div> </div> </div> <div class="row"> <div class="col-sm-6"> <div class="form-group"> <label style="color:white;">Subject</label> <input name="cosub" class="form-control" type="text" placeholder="Enter Subject" required> </div> </div> <div class="col-sm-6"> <div class="form-group"> <label style="color:white;">Phone</label> <input name="cophone" class="form-control" type="text" placeholder="Enter Phone"> </div> </div> </div> <div class="form-group"> <label style="color:white;">Message</label> <textarea name="comes" class="form-control" rows="5" placeholder="Enter Message" required></textarea> </div> <!-- reCAPTCHA widget --> <div class="form-group"> <div class="g-recaptcha" data-sitekey="<?php echo htmlspecialchars(RECAPTCHA_SITE_KEY); ?>"></div> </div> <div class="form-group"> <button name="submit_contact" type="submit" class="btn btn-light text-dark">Send your message</button> </div> </form> </div> </div> </div> </div><!-- row end --> </div> </section> <!-- Contact Section End --> </div><!-- site-main end --> <?php include("footer.php"); ?> <!-- Google reCAPTCHA JS --> <script src="https://www.google.com/recaptcha/api.js" async defer></script>
Upload File
Create Folder