-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
28 lines (26 loc) · 915 Bytes
/
Copy pathadmin.php
File metadata and controls
28 lines (26 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
require_once 'includes/config_session.inc.php';
require_once 'includes/controllers/helpers.php';
if(!is_logged_in() || !is_admin()){
header("Location: index.php?access=denied");
die();
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Only admin</title>
<link rel="stylesheet" href="assets/css/styles.css">
<link rel="javascript" href="assets/js/scripts.js">
</head>
<body>
<div class="container">
<h1 class="title">Admin Page</h1>
<p>Welcome, Admin! You have full access to this system.</p>
<a class="btn btn-primary" href="index.php">Go to Home</a>
<a class="btn btn-primary" href="includes/controllers/logoutcont.php">Logout</a>
<a class="btn btn-primary" href="dashboard.php">Go to Dashboard</a>
</body>
</html>