-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
129 lines (122 loc) · 7.23 KB
/
index.php
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?php
include_once 'api/config/core.php';
?>
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>
<?php echo $APP_title . " " . $APP_title_description; ?>
</title>
<!-- Bootstrap 4 CSS, fontawesome css and custom CSS -->
<link rel="stylesheet" href="assets/bootstrap-5.1.3-dist/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="assets/css/custom.css" />
<link rel="stylesheet" id="btTheme" href="assets/bootstrap-5.1.3-dist/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="assets/boxicons/css/boxicons.min.css" />
<link rel="stylesheet" type="text/css" href="assets/js/jquery-confirm-v3.3.4/dist/jquery-confirm.min.css" />
</head>
<body>
<!-- navbar -->
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
<div class="container-fluid">
<a class="navbar-brand ms-2" href="#">
<?php echo $APP_title . " <small class=\"text-muted\"> " . $APP_title_description . "</small>"; ?>
</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0" >
<li>
<a class="nav-link" href="#" id='home'><span class="bx bxs-home"></span> Home</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id='account_menu' role='button' data-bs-toggle='dropdown' aria-expanded="false"><span class="bx bxs-user"></span> Account</a>
<ul class="dropdown-menu" aria-labelledby="account_menu">
<li><a class="dropdown-item" href="#" id="update_account"><span class="bx bxs-id-card"></span> Account</a></li>
<li><a class="dropdown-item" href="#" id="mfa"><span class="bx bxs-key"></span> MFA</a></li>
<div class="dropdown dropstart">
<a class="dropdown-item dropdown-toggle" href="#" id="themes_menu" role='button' data-bs-toggle='dropdown' aria-expanded="false"><span class="bx bxs-palette"></span> Themes</a>
<ul class="dropdown-menu" aria-labelledby="themes_menu">
<li><a href="#" data-theme="default" class="dropdown-item theme-link">Default</a></li>
<li><a href="#" data-theme="flatly" class="dropdown-item theme-link">Flatly</a></li>
<li><a href="#" data-theme="minco" class="dropdown-item theme-link">Minco</a></li>
<li><a href="#" data-theme="lymcha" class="dropdown-item theme-link">Lymcha</a></li>
<li><a href="#" data-theme="superhero" class="dropdown-item theme-link">Superhero</a></li>
<li><a href="#" data-theme="hollar" class="dropdown-item theme-link">Hollar</a></li>
<li><a href="#" data-theme="sunset" class="dropdown-item theme-link">Sunset</a></li>
<li><a href="#" data-theme="preptor" class="dropdown-item theme-link">Preptor</a></li>
<li><a href="#" data-theme="skeeblue" class="dropdown-item theme-link">Skeeblue</a></li>
<li><a href="#" data-theme="wandoo" class="dropdown-item theme-link">Wandoo</a></li>
</ul>
</div>
</ul>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id='admin_menu' role='button' data-bs-toggle='dropdown' aria-expanded="false"><span class="bx bxs-wrench"></span> Admin</a>
<ul class="dropdown-menu" aria-labelledby="admin_menu">
<li><a href="app_adm/adm_users.php" class="dropdown-item">Users</a></li>
<li><a href="app_adm/adm_groups.php" class="dropdown-item">Groups</a></li>
</ul>
</li>
<li>
<a class="nav-link" href="#" id='login'>Login</a>
</li>
<li>
<a class="nav-link" href="#" id="sign_up">
<?php
if($APP_allow_signup == True) {
echo '<span class=\'bx bxs-user\'></span> Sign Up';
}
?>
</a>
</li>
<li>
<a class="nav-link" href="#" id="logout"><span class="bx bxs-log-out-circle"></span> Logout</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- /navbar -->
<br><br>
<!-- container -->
<main class="container-flex mx-5 my-5 shadow bg-body rounded border bg-secondary">
<div class="row">
<div class="col mx-3 my-3">
<!-- where prompt / messages will appear -->
<div id="response"></div>
<!-- where main content will appear -->
<div class="display-4" id="headline"></div>
<div id="content"></div>
</div>
</div>
</main>
<!-- /container -->
<!-- Toast message -->
<div class="position-fixed bottom-0 end-0 p-3" style="z-index: 11">
<div id="liveToast" class="toast hide text-white bg-danger" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-header text-white bg-danger">
<img src="assets/images/warning.png" class="rounded me-2" alt="...">
<strong class="me-auto">WARNING</strong>
<small>enable MFA</small>
<button type="button" class="btn-close" data-bs-dismiss="toast" aria-label="Close"></button>
</div>
<div class="toast-body">
It is strongly recommended to activate MFA for admin accounts!
</div>
</div>
</div>
<!-- /Tost message -->
<!-- jQuery & Bootstrap 4 JavaScript libraries -->
<script src="assets/js/jquery-3.6.0.min/jquery-3.6.0.min.js"></script>
<script src="assets/js/popperjs-1.12.min/popperjs-1.12.min.js"></script>
<script src="assets/bootstrap-5.1.3-dist/js/bootstrap.min.js"></script>
<script src="assets/js/jquery-confirm-v3.3.4/dist/jquery-confirm.min.js"></script>
<!-- custom javascript functions for index.php -->
<script src="assets/js/settings.js"></script>
<script src="assets/js/index.js"></script>
</body>
</html>