JezK
Edit File: header.php
<?php ini_set('session.cookie_secure', '1'); ini_set('session.cookie_httponly', '1'); ini_set('session.cookie_samesite', 'Strict'); session_start(); // Security Headers header("X-XSS-Protection: 1; mode=block"); if(!isset($_SESSION['sliAdminID'])) { echo "<script>location.replace('index.php');</script>"; } if ($_SESSION['USER_IP'] !== $_SERVER['REMOTE_ADDR'] || $_SESSION['USER_AGENT'] !== $_SERVER['HTTP_USER_AGENT']) { // print_r($_SESSION);exit; session_destroy(); echo "<script>location.replace('index.php');</script>"; } $currentFile = basename($_SERVER['PHP_SELF']); if ($currentFile !== 'index.php') { include("app/authCheck.php"); } ?> <!doctype html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]--> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title>NABFINS</title> <link rel="icon" type="image/ico" href="images/favicon.ico" /> <meta name="description" content=""> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- ============================================ ================= Stylesheets =================== ============================================= --> <!-- css files --> <!-- Bootstrap Core CSS --> <link href="css/bootstrap.min.css" rel="stylesheet"> <link rel="stylesheet" href="css/style.css"> <link rel="stylesheet" href="css/sb-admin.css"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"> <!-- ============================================ ============== JavaScripts =============== ============================================= --> <!-- jQuery --> <script src="js/jquery.js"></script> <!-- Bootstrap Core JavaScript --> <script src="js/bootstrap.min.js"></script> </head> <body> <!--<header> <div class="headerContainer col-md-12"> <div class="headText col-md-2 "><a href="http://ddd.krify.com/nabfins10/"><img src="images/logo.png"></a></div> <div class="headClr col-md-8">SECOND LEVEL INSTITUTION </div> </div> </header>--> <?php $dashboard=''; $home=''; $profile=''; $newRegistration=''; $changePassword=''; //$settings=''; if(isset($currentPage)) { switch($currentPage) { case 'dashboard': $dashboard="active"; break; case 'home': $home="active"; break; case 'profile': $profile="active"; break; case 'newRegistration': $newRegistration="active"; break; case 'changePassword': $changePassword="active"; break; case 'rejectedApplications': $rejectedApplications="active"; break; } } ?> <div id="wrapper"> <!-- Navigation --> <nav class="navbar navbar-inverse navbar-fixed-top" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <!-- <a class="navbar-brand" href="index.html">B&DF/B&DC</a>--> </div> <div class="text-center col-md-12 head-text">SECOND LEVEL INSTITUTION</div> <!-- Top Menu Items --> <!-- Sidebar Menu Items - These collapse to the responsive navigation menu on small screens --> <div class="collapse navbar-collapse navbar-ex1-collapse"> <ul class="nav navbar-nav side-nav"> <div class="text-center" style="width: 100%;padding: 10px;"><a href="http://ddd.krify.com/nabfins10/"><img src="images/logo.png"></a></div> <li class="<?=$dashboard;?>"> <a href="dashboard.php" ><i class="fa fa-fw fa-dashboard"></i> Dashboard</a> </li> <li class="<?=$home;?>"> <a href="home.php"><i class="fa fa-bar-chart"></i> Home</a> </li> <li class="<?=$newRegistration;?>"> <a href="newRegistration.php"><i class="fa fa-fw fa-bar-chart-o"></i> Registrations</a> </li> <li class="<?=$rejectedApplications;?>"> <a href="rejectedApplications.php"><i class="fa fa-fw fa-bar-chart-o"></i> Rejected Applications</a> </li> <!-- <li class="<?=$profile;?>"> <a href="profile.php"><i class="fa fa-fw fa-bar-chart-o"></i> Profile</a> </li>--> <li class="<?=$changePassword;?>"> <a href="changePassword.php"><i class="fa fa-fw fa-bar-chart-o"></i> Change Password</a> </li> <li> <a href="app/logoutApp.php"><i class="fa fa-power-off"></i> Logout</a> </li> </ul> </div> <!-- /.navbar-collapse --> </nav>