Files
WebDB/website/public/admin.php
2017-01-26 13:29:56 +01:00

33 lines
641 B
PHP

<!DOCTYPE html>
<html>
<head>
<?php include("../views/head.php"); ?>
<style>
@import url("styles/adminpanel.css");
</style>
</head>
<body>
<?php
/*
* This view adds the main layout over the screen.
* Header and menu.
*/
include_once ("../queries/user.php");
$userinfo = getRoleByID($_SESSION['userID'])->fetch(PDO::FETCH_ASSOC);
if ($userinfo['role'] != 'admin' AND $userinfo['role'] != 'owner') {
header("location:profile.php");
}
include("../views/main.php");
/* Add your view files here. */
include("../views/adminpanel.php");
/* This adds the footer. */
include("../views/footer.php");
?>
</body>
</html>