kohjhjhصثقص5572lllllllldfgddfgصثقffgggfffgfgfgdfgdg
Ele57885fddfg872llll82ddfgdfgdfgdfgdfgfgfggffggfgfgfghgقفغفغفقhfg555434536
/
home3
/
oraclepublicscho
/
public_html
/
Oracle_Cpanel
/
Upload FileeE
HOME
<?php @session_start();ob_start(); include 'config.php'; ?> <?php if(isset($_POST['submit'])) { $username = $_POST['username']; $password= md5($_POST['password']); $query = "SELECT * from webadmin WHERE username = '$username' and password = '$password'"; $result = mysqli_query($connect,$query); if(mysqli_num_rows($result) > 0) { $_SESSION['username'] = $username; ?> <script> alert('Login Successfull'); window.location.replace("index"); </script> <?php } else { ?> <script> alert('Enter Proper Username and Password'); window.location.replace("login"); </script> <?php } } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta content="width=device-width, initial-scale=1.0" name="viewport"> <title>Oracle Public School</title> <meta content="" name="description"> <meta content="" name="keywords"> <!-- Favicons --> <link href="assets/img/favicon.png" rel="icon"> <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon"> <!-- Google Fonts --> <link href="https://fonts.gstatic.com" rel="preconnect"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet"> <!-- Vendor CSS Files --> <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet"> <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet"> <link href="assets/vendor/quill/quill.snow.css" rel="stylesheet"> <link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet"> <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet"> <link href="assets/vendor/simple-datatables/style.css" rel="stylesheet"> <!-- Template Main CSS File --> <link href="assets/css/style.css" rel="stylesheet"> <!-- ======================================================= * Template Name: NiceAdmin * Updated: Jul 27 2023 with Bootstrap v5.3.1 * Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/ * Author: BootstrapMade.com * License: https://bootstrapmade.com/license/ ======================================================== --> </head> <body> <main> <div class="container"> <section class="section register min-vh-100 d-flex flex-column align-items-center justify-content-center py-4"> <div class="container"> <div class="row justify-content-center"> <div class="col-lg-4 col-md-6 d-flex flex-column align-items-center justify-content-center"> <div class="d-flex justify-content-center py-4"> <a href="login" class="logo d-flex align-items-center w-auto"> <img src="assets/img/logo.png" alt="" style=" width: 100%;"> </a> </div><!-- End Logo --> <div class="card mb-3"> <div class="card-body"> <div class="pt-4 pb-2"> <h5 class="card-title text-center pb-0 fs-4">Login to Your Account</h5> <p class="text-center small">Enter your username & password to login</p> </div> <form action='<?php echo $_SERVER["REQUEST_URI"]; ?>' method="post" class="row g-3 needs-validation" novalidate> <div class="col-12"> <label for="yourUsername" class="form-label">Username</label> <div class="input-group has-validation"> <span class="input-group-text" id="inputGroupPrepend">@</span> <input type="text" name="username" class="form-control" id="yourUsername" required> <div class="invalid-feedback">Please enter your username.</div> </div> </div> <div class="col-12"> <label for="yourPassword" class="form-label">Password</label> <input type="password" name="password" class="form-control" id="yourPassword" required> <div class="invalid-feedback">Please enter your password!</div> </div> <div class="col-12"> <input type="text" class="form-control" style="margin-bottom: 0px; width: 100%; height: 40px; font-size: 24px; font-weight: bolder; text-decoration: line-through; display: inline-block; background-color: rgb(178, 0, 255);" id="mainCaptcha" disabled=""> <button class="btn btn-success" type="button" style="display: inline-block; " id="refresh" onclick="Captcha();">Generate Code</button> <div style="margin-top:10px; color: #D8000C; background-color: #FFBABA; border-radius: 7px;" id="log"></div> <input style="margin-top:10px;" type="text" class="form-control" placeholder="Enter captcha" name="captcha" id="txtInput" required=""> <br> </div> <div class="col-12"> <button class="btn btn-primary w-100" name="submit" type="submit">Login</button> </div> </form> </div> </div> </div> </div> </div> </section> </div> </main><!-- End #main --> <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a> <!-- Login 20 end --> <script> function validateForm(){ document.getElementById('log').innerHTML = ''; var string1 = removeSpaces(document.getElementById('mainCaptcha').value); var string2 = removeSpaces(document.getElementById('txtInput').value); if (string1 != string2 || string2 == ""){ Captcha(); document.getElementById('log').innerHTML += '<span style="font-size:16px; padding: 25px;">Entered Invalid Captcha</span> '; return false; } } function Captcha(){ var alpha = new Array('A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','1','2','3','4','5','6','7','8','9','0'); var i; for (i=0;i<6;i++){ var a = alpha[Math.floor(Math.random() * alpha.length)]; var b = alpha[Math.floor(Math.random() * alpha.length)]; var c = alpha[Math.floor(Math.random() * alpha.length)]; var d = alpha[Math.floor(Math.random() * alpha.length)]; var e = alpha[Math.floor(Math.random() * alpha.length)]; var f = alpha[Math.floor(Math.random() * alpha.length)]; var g = alpha[Math.floor(Math.random() * alpha.length)]; } var code = a + ' ' + b + ' ' + ' ' + c + ' ' + d + ' ' + e + ' '+ f + ' ' + g; document.getElementById("mainCaptcha").value = code var colors = ["#B40404", "#beb1dd", "#b200ff", "#faff00", "#0000FF", "#FE2E9A", "#FF0080", "#2EFE2E", ]; var rand = Math.floor(Math.random() * colors.length); $('#mainCaptcha').css("background-color", colors[rand]); } function removeSpaces(string){ return string.split(' ').join(''); } </script> <!-- Vendor JS Files --> <script src="assets/vendor/apexcharts/apexcharts.min.js"></script> <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <script src="assets/vendor/chart.js/chart.umd.js"></script> <script src="assets/vendor/echarts/echarts.min.js"></script> <script src="assets/vendor/quill/quill.min.js"></script> <script src="assets/vendor/simple-datatables/simple-datatables.js"></script> <script src="assets/vendor/tinymce/tinymce.min.js"></script> <script src="assets/vendor/php-email-form/validate.js"></script> <!-- Template Main JS File --> <script src="assets/js/main.js"></script> </body> </html>