-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdashboard.php
More file actions
43 lines (37 loc) · 1.21 KB
/
Copy pathdashboard.php
File metadata and controls
43 lines (37 loc) · 1.21 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once 'includes/config_session.inc.php';
require_once 'includes/views/dashboardview.php';
if(!is_logged_in()){
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>Dashboard</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">Dashboard</h1>
<p>Welcome to your dashboard! Here you can manage your account and view your activities.</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>
<?php
if(is_admin()){
admin_view($pdo, is_admin());
redirecting_to_adminPanal(is_admin());
}else if(is_super_admin()){
super_admin_view($pdo, is_super_admin());
}
?>
</div>
</body>
</html>