File "authentication.php"
Full path: /home/fsibplc/public_html/admin/authentication.php
File
size: 520 B (520 B bytes)
MIME-type: text/x-php
Charset: utf-8
Download Open Edit Advanced Editor Back
<?php
session_start();
// include('config/dbcon.php');
if(!isset($_SESSION['auth'])){
$_SESSION['message'] = "Login to Access Dashboard";
header("Location:../login.php");
exit(0);
}else{
if($_SESSION['auth_role']!=1 && $_SESSION['auth_role']!=2 )
{
$_SESSION['message'] = "You are not Authorised as Admin";
header("Location:../login.php");
exit(0);
}
}
?>