Server IP : 103.191.208.50 / Your IP : 216.73.216.53 Web Server : LiteSpeed System : Linux orion.herosite.pro 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : celkcksm ( 1031) PHP Version : 7.4.33 Disable Function : show_source, system, shell_exec, passthru, popen, exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0750) : /home/celkcksm/cloudcampus.ncriptech.com/../websites/aamodernschool.com/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php include_once('config/config.php'); // Get the current page from the URL $page = basename($_SERVER['PHP_SELF'], ".php"); // Default to home if page not found in config $title = isset($page_title[$page]) ? $page_title[$page] : $page_title["home"]; $keywords = isset($page_keywords[$page]) ? $page_keywords[$page] : $page_keywords["home"]; $description = isset($page_description[$page]) ? $page_description[$page] : $page_description["home"]; // Construct the canonical URL $base_url = "https://aamodernschool.com/"; // Check if it's the index page if ($page == "index") { $canonical_url = $base_url; } else { $canonical_url = $base_url . $page; } ?> <!DOCTYPE html> <html lang="en"> <head> <!-- metas --> <meta charset="utf-8" /> <meta name="author" content="Arkayan Academy Modern Public School" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> <title><?php echo htmlspecialchars($title); ?></title> <meta name="keywords" content="<?php echo htmlspecialchars($keywords); ?>" /> <meta name="description" content="<?php echo htmlspecialchars($description); ?>" /> <meta property="og:title" content="<?php echo htmlspecialchars($title); ?>" /> <meta property="og:site_name" content="Arkayan Academy Modern Public School" /> <meta property="og:description" content="<?php echo htmlspecialchars($description); ?>" /> <!-- <link rel="canonical" href="https://msms.org.in"> --> <link rel="canonical" href="<?php echo htmlspecialchars($canonical_url); ?>" /> <!-- favicon --> <link rel="icon" type="image/png" href="public/img/common/favicon.png" sizes="96x96" /> <link rel="icon" type="image/png" href="public/img/common/favicon.png" sizes="96x96" /> <link rel="icon" type="image/png" href="public/img/common/favicon.png" sizes="96x96" /> <link rel="icon" type="image/svg+xml" href="public/img/common/favicon.png" /> <link rel="shortcut icon" href="public/img/common/favicon.png" /> <link rel="apple-touch-icon" sizes="180x180" href="public/img/common/favicon.png" /> <link rel="manifest" href="public/img/favicon/site.webmanifest" /> <!-- plugins --> <link rel="stylesheet" href="public/css/plugins.css" /> <!-- search css --> <link rel="stylesheet" href="public/search/search.css" /> <!-- quform css --> <link rel="stylesheet" href="public/quform/css/base.css"> <!-- core style css --> <link href="public/css/styles.css" rel="stylesheet" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.7.2/css/all.min.css" integrity="sha512-Evv84Mr4kqVGRNSgIGL/F/aIDqQb7xQ2vcrdIwxfjThSH8CSR7PBEakCr51Ck+w+/U6swU2Im1vVX0SVk9ABhg==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css"> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PBJ7TMT5');</script> <!-- End Google Tag Manager --> </head> <body> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PBJ7TMT5" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <!-- PAGE LOADING ================================================== --> <div id="preloader"></div> <!-- MAIN WRAPPER ================================================== --> <div class="main-wrapper"> <?php include_once('includes/common/header_menu.php'); include_once('includes/pages/pages.php'); include_once('includes/common/footer.php'); ?> <!-- start scroll to top --> <a href="#!" class="scroll-to-top"><i class="fas fa-angle-up" aria-hidden="true"></i></a> <!-- end scroll to top --> </div> <!-- jQuery --> <script src="public/js/jquery.min.js"></script> <!-- popper js --> <script src="public/js/popper.min.js"></script> <!-- bootstrap --> <script src="public/js/bootstrap.min.js"></script> <!-- core.min.js --> <script src="public/js/core.min.js"></script> <!-- search --> <script src="public/search/search.js"></script> <!-- custom scripts --> <script src="public/js/main.js"></script> <!-- form plugins js --> <script src="public/quform/js/plugins.js"></script> <!-- form scripts js --> <script src="public/quform/js/scripts.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script> <!-- jQuery Validation Plugin --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.21.0/jquery.validate.min.js" integrity="sha512-KFHXdr2oObHKI9w4Hv1XPKc898mE4kgYx58oqsc/JqqdLMDI4YjOLzom+EMlW8HFUd0QfjfAvxSL6sEq/a42fQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.21.0/additional-methods.min.js" integrity="sha512-owaCKNpctt4R4oShUTTraMPFKQWG9UdWTtG6GRzBjFV4VypcFi6+M3yc4Jk85s3ioQmkYWJbUl1b2b2r41RTjA==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <!-- all js include end --> <script> // Function to check if the form and CAPTCHA are completed function checkFormCompletion() { const firstName = document.getElementById('first_name').value.trim(); const lastName = document.getElementById('last_name').value.trim(); const city = document.getElementById('city').value.trim(); const email = document.getElementById('email').value.trim(); const country = document.getElementById('country_id').value; const contact_category_id = document.getElementById('contact_category_id').value; const country_code = document.getElementById('country_code').value; const contact_number = document.getElementById('contact_number').value; const message = document.getElementById('message').value; const captchaResponse = grecaptcha.getResponse(); const submitButton = document.getElementById('submit-button-contact'); // Check if all required fields are filled and CAPTCHA is completed if (firstName && lastName && city && email && country && contact_category_id && country_code && contact_number && message && captchaResponse.length > 0) { submitButton.disabled = false; } else { submitButton.disabled = true; } } // Event listener to check form completion when the user interacts with the form document.getElementById('contactForm').addEventListener('input', checkFormCompletion); // Check CAPTCHA response when it's solved grecaptcha.ready(function() { grecaptcha.enterprise.addEventListener('captcha-success', function() { checkFormCompletion(); }); }); checkFormCompletion(); // Form submission handler document.getElementById('contactForm').addEventListener('submit', function(event) { event.preventDefault(); // Prevent form submission grecaptcha.reset(); // Optionally, disable the submit button again after resetting document.getElementById('submit-button-contact').disabled = true; }); </script> <script> $(document).ready(function () { // Configure Toastr notifications toastr.options = { closeButton: true, progressBar: true, positionClass: "toast-top-right", showDuration: "300", hideDuration: "1000", timeOut: "5000", extendedTimeOut: "1000", showEasing: "swing", hideEasing: "linear", showMethod: "fadeIn", hideMethod: "fadeOut" }; // Function to handle form submission function handleFormSubmission(formId, mailType) { $(formId).validate({ rules: { name: { required: true, minlength: 2 }, email: { required: true, email: true }, phone: { required: true, minlength: 10, maxlength: 15, digits: true }, class: { required: mailType === 'admission_form' }, dob: { required: mailType === 'admission_form', date: true }, gender: { required: mailType === 'admission_form' }, address: { required: true, minlength: 10 } }, messages: { name: "Please enter your name (at least 2 characters).", phone: "Please enter a valid phone number (10-15 digits).", email: "Please enter a valid email address.", class: "Please select a class.", dob: "Please enter a valid date of birth.", gender: "Please select your gender.", address: "Please enter your address (at least 10 characters)." }, submitHandler: function (form) { event.preventDefault(); var formData = new FormData($(form)[0]); formData.append('mail_type', mailType); $.ajax({ type: 'POST', url: 'mail.php', dataType: 'json', data: formData, processData: false, contentType: false, beforeSend: function () { $('.send').prop('disabled', true).text('Sending...'); }, success: function (response) { if (response.status) { toastr.success(response.message, "Success!"); $(formId)[0].reset(); } else { toastr.error(response.message, "Error!"); } }, error: function () { toastr.error("An error occurred. Please try again.", "Error!"); }, complete: function () { $('.send').prop('disabled', false).text('Send Message'); } }); } }); } // Apply function to forms handleFormSubmission("#admissionForm", "admission_form"); handleFormSubmission("#enquiryForm", "enquiry_form"); }); </script> </body> </html>