norhusna / Change-Request

Phoenix - Online Food Ordering (Ah Kong Restaurant)
0 stars 0 forks source link

CR2 - LOGIN PAGE #2

Closed norhusna closed 3 years ago

norhusna commented 3 years ago

Reason for change: The registration system helps users log in and make online ordering.

puterinorliana commented 3 years ago

image

puterinorliana commented 3 years ago

Admin Login image

Staff Login image

puterinorliana commented 3 years ago

<?php include("../functions.php");

if((isset($_SESSION['uid']) && isset($_SESSION['username']) && isset($_SESSION['user_level'])) )  {
    if($_SESSION['user_level'] == "admin") {
      header("Location: index.php");
    }
}

?>

<!DOCTYPE html>

FOS Admin - Login
puterinorliana commented 3 years ago

<?php include("../functions.php");

if((isset($_SESSION['uid']) && isset($_SESSION['username']) && isset($_SESSION['user_level'])) )  {
    if($_SESSION['user_level'] == "staff") {
      header("Location: index.php");
    }
}

?>

<!DOCTYPE html>

FOS Staff - Login
norhusna commented 3 years ago

the change request updated