D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
diafrica
/
public_html
/
Filename :
mod-auth.php
back
Copy
<?php session_start(); if (isset($_POST['username']) && isset($_POST['password'])) { $manager = $_POST['username']; $password = $_POST['password']; include 'includes/config.php'; $cmem = "SELECT id FROM auth WHERE username='$manager' AND password='$password' LIMIT 1"; $run_cmem = mysqli_query($con, $cmem); $count_mem = mysqli_num_rows($run_cmem); if ($count_mem == 1) { while ($row = mysqli_fetch_array($run_cmem)) { $id = $row['id']; } $_SESSION['id'] = $id; $_SESSION['manager'] = $manager; $_SESSION['password'] = $password; header('location: mod-auth'); exit(); } else { echo "<script>alert('Incorrect Password !!!')</script>"; echo "<script>window.open('sacredheartdadmin','_self')</script>"; exit(); } } ?> <?php $page_title; $page_title = ucfirst(basename(__FILE__, '.php')); if ($page_title === 'index') { $page_title = 'Home'; } $page_title = "Admin page"; include 'section/header.php'; include 'section/pages-header.php'; include 'includes/functions.php'; $Functions = new Functions(); ?> <!DOCTYPE html> <html dir="ltr" lang="en"> <!-- Start main-content --> <div class="main-content"> <!-- Section: Team --> <section id="team"> <div class="container"> <div class="row mtli-row-clearfix mb-5000"> <div class="col-lg-9"> <h3 style="color: #17569E;">Hello Admin, What would you like to do today?!</h3> <!-- Links for Admin --> <a href="addsliders">Carousel (Sliders)</a><br> (About Sacred Heart)<br/> <a href="edithistory">Edit History</a><br> <a href="whychooseus">Edit why choose us</a><br> <a href="edit_mission">Edit Mission and vision</a><br> <a href="add_staff">Add Staffs</a><br> <a href="add_hod">Add HOD</a><br> <a href="add_faq">Add FAQ</a><br> <!-- <a href="edit-meet-our-superiors">Edit Meet Our Superiors</a><br> --> <a href="edit_tour">Add content to Take A Tour Through Our School</a><br><br> (Admissions)<br/> <a href="requirements">Add General Requirement</a><br> <a href="whychooseus">Online Application</a><br> <a href="add_news">Add news</a><br> <a href="add_event">Add Events</a><br><br> <a href="add_gallery">Upload to Gallery</a><br><br> <a href="mgnews">Manage News Comments</a><br><br> <a href="newsevent">Create & Manage News and Events</a><br> <a href="comingup">Create & Manage Upcoming Events</a><br><br> <a href="signout">Sign Out</a><br> <!-- Links for Admin --> </div> </div> </div> </section> </div> <!-- end main-content --> <?php include_once 'section/footer.php'; ?>