Skip to content

Commit

Permalink
Pengerjaan home page ref #9
Browse files Browse the repository at this point in the history
  • Loading branch information
naufalalam committed Apr 27, 2021
1 parent fb097a8 commit 048f1f3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Library.id/homepage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?php

require "connect.php";

session_start();

if ($_SESSION["role"] == "user")
{
$user = new User($db, $_SESSION["id"]);
require "view/homepage-user.php";
}
else
{
$admin = new Admin($db, $_SESSION["id"]);
require "view/tambahbuku.php";
}

?>

0 comments on commit 048f1f3

Please sign in to comment.