<?php include_once($_SERVER['DOCUMENT_ROOT'] . "/php/common_functions.php"); //common functions in the course registartion system include_once($_SERVER['DOCUMENT_ROOT'] . "/php/config.php"); //holds global config variables if(is_admin_logged_in()){ header("location:/admin/courses/"); } $page_title = "Admin Login"; include_once($_SERVER['DOCUMENT_ROOT'] . "/admin/php/top-admin.php"); //get the HTML heading common to all pages in the CES admin module ?> <article class="ces-wide"> <h2>CES Admin Login</h2> <?php if(isset($_GET['error'])){ //if there was a login failure, output error message echo "<div class=error>Login failed. Please enter a correct username and password.</div><br>"; }//if ?> <div class="ces-login-form"> <form action="/php/check_login.php" name="login" method="POST" class="form-signin"> <input name="username" type="text" id="username" class="form-control" placeholder="Username" required autofocus> <input name="password" type="password" id="password" class="form-control" placeholder="Password" required> <button class="btn btn-lg btn-block ces-admin-log-btn" type="submit" value="Login"><i class="fa fa-sign-in" aria-hidden="true"></i> Log In</button> </form> <?php if(isset($_GET['error']) && $_GET['error'] == 2){ echo '<p class="alert-error">Your login was unsuccessful. Please check that your <strong>email</strong> and <strong>password</strong> are correct, and try again.</p>'; } ?> </div> </article> </section><!-- #middle--> </div><!-- #wrapper --> <?php require_once $_SERVER['DOCUMENT_ROOT'].'/require/footer.php';?>
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
courses | Folder | 0755 |
|
|
files | Folder | 0755 |
|
|
instructors | Folder | 0755 |
|
|
levels | Folder | 0755 |
|
|
links | Folder | 0755 |
|
|
locations | Folder | 0755 |
|
|
newsletter | Folder | 0755 |
|
|
php | Folder | 0755 |
|
|
resources | Folder | 0755 |
|
|
sessions | Folder | 0755 |
|
|
stats | Folder | 0755 |
|
|
users | Folder | 0755 |
|
|
.htaccess | File | 147 B | 0644 |
|
fcrc.db | File | 24 KB | 0644 |
|
files.php | File | 5.5 KB | 0644 |
|
index.php | File | 1.77 KB | 0755 |
|
newsletter-delete.php | File | 2.24 KB | 0644 |
|
newsletter.php | File | 4.34 KB | 0644 |
|