X7ROOT File Manager
Current Path:
/home/u126090504/domains/svmbaripada.org.in/public_html
home
/
u126090504
/
domains
/
svmbaripada.org.in
/
public_html
/
π
+2-science-&-+2arts.php
(8.87 KB)
π
..
π
.htaccess
(1.12 KB)
π
Antiraging-Cell.php
(2.73 KB)
π
about-us.php
(8.85 KB)
π
academic-calendar.php
(2.73 KB)
π
achievements.php
(9.56 KB)
π
achievers.php
(15.19 KB)
π
admin
π
admission-process.php
(9.23 KB)
π
admission.php
(13.96 KB)
π
admission_submit.php
(3.38 KB)
π
album.php
(890 B)
π
assessment-policy.php
(7.08 KB)
π
class-1-to-5th.php
(7.78 KB)
π
class6th-to-10th.php
(7.96 KB)
π
computer-courses.php
(22.83 KB)
π
config.php
(1.21 KB)
π
contact-us.php
(14.63 KB)
π
contactdb.php
(796 B)
π
courses.php
(10.44 KB)
π
css
π
director's-message.php
(6.49 KB)
π
downloads.php
(2.9 KB)
π
error.log
(14.6 KB)
π
facilities.php
(6.57 KB)
π
faculty.php
(10.27 KB)
π
fee-structure.php
(7.97 KB)
π
fonts
π
footer.php
(17.95 KB)
π
franchise.php
(2.09 KB)
π
gallery.php
(3.05 KB)
π
grievance-form.php
(16.84 KB)
π
header.php
(20.08 KB)
π
homework.php
(9.64 KB)
π
images
π
index.php
(46.64 KB)
π
infrastructure-details.php
(5.48 KB)
π
js
π
lib
π
managing-committee.php
(3.34 KB)
π
media-corner.php
(2.48 KB)
π
non-academic-achievers.php
(14.65 KB)
π
payment.php
(23.12 KB)
π
payment_submit.php
(15.1 KB)
π
payment_verify.php
(2.31 KB)
π
peret.php
(266.87 KB)
π
placement.php
(8.33 KB)
π
principal's-message.php
(6.33 KB)
π
public-disclosure.php
(3.38 KB)
π
qrcodes
π
revolution
π
scope.php
(14.14 KB)
π
search_videos.php
(1.76 KB)
π
shyam-classes.php
(6.91 KB)
π
submit-grievance.php
(3.88 KB)
π
thank-you.php
(1.28 KB)
π
uploads
π
videos.php
(6.87 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> </div> </div> </div> </div> <!-- Page Title End --> <!-- Site Main --> <!-- ===== Light Modern Contact Section (White BG + Animations) ===== --> <div class="site-main contact-light"> <section class="ttm-row conatact-section pb-0 clearfix"> <div class="container"> <div class="row align-items-stretch gy-4"> <!-- Contact Info --> <div class="col-lg-5"> <aside class="cl-card cl-info h-100 reveal" data-reveal> <header class="cl-head"> <span class="cl-chip">Contact</span> <h2 class="cl-title">Weβre happy to assist you</h2> </header> <ul class="cl-list"> <li class="cl-list-item"> <div class="cl-icon floaty" aria-hidden="true"> <svg viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7-7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z"/></svg> </div> <div class="cl-text"> <strong>Address: </strong> <p>Kathapal, Near Rangalal High School, Baripada, Mayurbhanj, Odisha β 757001</p> </div> </li> <li class="cl-list-item"> <div class="cl-icon floaty" aria-hidden="true"> <svg viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7-7 0 0 0-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z"/></svg> </div> <div class="cl-text"> <strong>Contact: </strong> <p> 9439667645, 9692393616, 9853886431,9658061929</p> </div> </li> <li class="cl-list-item"> <div class="cl-icon floaty" aria-hidden="true"> <svg viewBox="0 0 24 24"><path d="M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"/></svg> </div> <div class="cl-text"> <strong>Email</strong> <p><a class="cl-link" href="mailto:saividyamandir4you@gmail.com">saividyamandir4you@gmail.com</a></p> </div> </li> </ul> <div class="cl-divider"></div> <div class="cl-badges"> <span class="cl-badge">Timing</span> <span class="cl-badge">MonβSat Β· 6:00amβ2pm</span> </div> </aside> </div> <!-- Contact Form --> <div class="col-lg-7"> <div class="cl-card cl-form h-100 reveal" data-reveal data-reveal-delay="120"> <div class="layer-content"> <div class="cl-form-head"> <h3 class="cl-title mb-10">Want to talk? Letβs do it!</h3> <p class="cl-sub">Fill the form and weβll get back within 24 hours.</p> </div> <!-- Success/Error Messages --> <?php if (!empty($success)): ?> <div class="cl-alert cl-success" role="status"><?php echo htmlspecialchars($success); ?></div> <?php elseif (!empty($error)): ?> <div class="cl-alert cl-error" role="alert"><?php echo htmlspecialchars($error); ?></div> <?php endif; ?> <!-- Contact Form --> <form id="contact_form" action="" method="post" novalidate> <!-- Honeypot (keep empty) --> <input type="text" name="website" value="" autocomplete="off" tabindex="-1" aria-hidden="true" class="cl-hp"> <div class="row gy-3"> <div class="col-sm-6"> <label class="cl-label" for="coname">Name</label> <input id="coname" name="coname" class="cl-input" type="text" placeholder="Enter your name" required> </div> <div class="col-sm-6"> <label class="cl-label" for="coemail">Email</label> <input id="coemail" name="coemail" class="cl-input" type="email" placeholder="your@email.com" required> </div> </div> <div class="row gy-3"> <div class="col-sm-6"> <label class="cl-label" for="cosub">Subject</label> <input id="cosub" name="cosub" class="cl-input" type="text" placeholder="Whatβs this about?" required> </div> <div class="col-sm-6"> <label class="cl-label" for="cophone">Phone</label> <input id="cophone" name="cophone" class="cl-input" type="tel" inputmode="tel" placeholder="Optional"> </div> </div> <label class="cl-label" for="comes">Message</label> <textarea id="comes" name="comes" class="cl-input cl-textarea" rows="5" placeholder="Type your message..." required></textarea> <!-- reCAPTCHA --> <div class="cl-recaptcha"> <div class="g-recaptcha" data-sitekey="<?php echo htmlspecialchars(RECAPTCHA_SITE_KEY); ?>"></div> </div> <button name="submit_contact" type="submit" class="cl-btn" aria-label="Send your message"> <span class="cl-btn-text">Send your message</span> <span class="cl-btn-spinner" aria-hidden="true"></span> </button> </form> </div> </div> </div> </div><!-- /row --> </div><!-- /container --> </section> </div> <!-- ===== End Light Modern Contact Section ===== --> <style> /* ---------- Light Theme ---------- */ :root{ --brand:#030142; /* your accent color */ --ink:#0b0d17; --muted:#6b7280; --card:#ffffff; --line:#e9eef5; --chip:#f5f7fb; --focus: rgba(3,1,66,.18); } .contact-light{ background:#fff; } /* Cards */ .cl-card{ background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: clamp(18px, 3vw, 28px); box-shadow: 0 10px 24px rgba(17,24,39,.06); color: var(--ink); } /* Headings */ .cl-title{ margin: 6px 0; font-size: clamp(22px, 2.3vw, 30px); line-height:1.2; color:var(--ink); } .cl-sub{ color: var(--muted); font-size: 14.5px; margin: 2px 0 16px; } /* Chips & links */ .cl-chip{ display:inline-block; font-size:12px; letter-spacing:.3px; text-transform:uppercase; padding:6px 10px; border-radius:999px; background:var(--chip); color:var(--brand); border: 1px solid var(--line); } /* Info list */ .cl-list{ list-style:none; margin:0; padding:8px 0 0; display:flex; flex-direction:column; gap:14px; } .cl-list-item{ display:flex; gap:12px; align-items:flex-start; } .cl-icon{ width:38px; height:38px; min-width:38px; border-radius:12px; display:grid; place-items:center; background:#eef2ff; border:1px solid #e0e7ff; } .cl-icon svg{ width:20px; height:20px; fill: var(--brand); } .cl-text strong{ display:block; font-weight:700; margin-bottom:2px; color:var(--ink); } .cl-text p{ margin:0; color:#374151; } .cl-chip-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:6px; } .cl-chip-link{ display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; font-size:13px; text-decoration:none; color:#111827; border:1px solid var(--line); background:#fff; transition: border .2s, transform .08s ease; } .cl-chip-link:hover{ border-color: var(--brand); transform: translateY(-1px); } .cl-link{ color: var(--brand); text-decoration:none; border-bottom:1px dotted rgba(3,1,66,.35); } .cl-link:hover{ opacity:.85; } /* Divider & badges */ .cl-divider{ height:1px; width:100%; background:linear-gradient(90deg, transparent, var(--line), transparent); margin:18px 0; } .cl-badges{ display:flex; flex-wrap:wrap; gap:8px; } .cl-badge{ font-size:12px; padding:6px 10px; border-radius:999px; color:#1f2937; background:#f8fafc; border:1px solid var(--line); } /* Form */ .cl-label{ display:block; font-size:13px; color:#4b5563; margin-bottom:6px; } .cl-input{ width:100%; border:1px solid var(--line); background:#fff; color:#111827; border-radius:12px; padding:12px 14px; outline:none; transition: border .2s, box-shadow .2s, transform .06s ease; } .cl-input::placeholder{ color:#94a3b8; } .cl-input:focus{ border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); } .cl-textarea{ resize:vertical; min-height:120px; } .cl-hp{ position:absolute; left:-5000px; opacity:0; height:0; width:0; pointer-events:none; } .cl-recaptcha{ margin: 10px 0 16px; } /* Button */ .cl-btn{ display:inline-flex; align-items:center; gap:10px; padding:12px 18px; border-radius:14px; border:1px solid var(--brand); background: var(--brand); color:#ffffff; font-weight:700; cursor:pointer; transition: transform .06s ease, box-shadow .2s, background .2s; position:relative; } .cl-btn:hover{ transform: translateY(-1px); box-shadow:0 12px 24px rgba(3,1,66,.25); } .cl-btn:active{ transform: translateY(0); } .cl-btn-spinner{ width:16px; height:16px; border-radius:50%; border:2px solid #fff; border-top-color:transparent; opacity:0; transform:scale(.8); } .cl-btn.is-loading .cl-btn-spinner{ animation: cl-spin .9s linear infinite; opacity:1; } @keyframes cl-spin{ to{ transform: rotate(360deg);} } /* ---------- Animations ---------- */ /* Scroll reveal */ .reveal{ opacity:0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; } .reveal.in{ opacity:1; transform:none; } .reveal[data-reveal-delay="120"].in{ transition-delay:.12s; } .reveal[data-reveal-delay="240"].in{ transition-delay:.24s; } /* Icon gentle float */ @keyframes floatY { 0%{ transform: translateY(0);} 50%{ transform: translateY(-4px);} 100%{ transform: translateY(0);} } .floaty{ animation: floatY 3.5s ease-in-out infinite; } /* Reduce motion preference */ @media (prefers-reduced-motion: reduce){ .reveal, .reveal.in{ transition: none; transform:none; opacity:1; } .floaty{ animation: none; } } /* Spacing fixes for Bootstrap grids */ .row.gy-4, .gy-4{ --bs-gutter-y: 1.25rem; } </style> <script> /* Loading spinner + simple client-side required check */ (function(){ const form = document.getElementById('contact_form'); if(!form) return; form.addEventListener('submit', function(){ const btn = form.querySelector('.cl-btn'); if(!btn) return; btn.classList.add('is-loading'); btn.setAttribute('aria-busy','true'); const required = form.querySelectorAll('[required]'); for(const el of required){ if(!el.value.trim()){ btn.classList.remove('is-loading'); btn.removeAttribute('aria-busy'); break; } } }, false); })(); /* IntersectionObserver for scroll-reveal */ (function(){ const items = document.querySelectorAll('[data-reveal]'); if(!('IntersectionObserver' in window) || !items.length) { items.forEach(el => el.classList.add('in')); return; } const io = new IntersectionObserver((entries)=>{ entries.forEach(entry=>{ if(entry.isIntersecting){ entry.target.classList.add('in'); io.unobserve(entry.target); } }); }, { threshold: 0.12 }); items.forEach(el => io.observe(el)); })(); </script> <?php include("footer.php"); ?> <!-- Google reCAPTCHA JS --> <script src="https://www.google.com/recaptcha/api.js" async defer></script>
Upload File
Create Folder