-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.php
More file actions
29 lines (24 loc) · 743 Bytes
/
Copy pathadmin.php
File metadata and controls
29 lines (24 loc) · 743 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 'settings.php';
require 'segments/admin/adminSettings.php';
$adminOutline->header();
$page = Util::getParam('page');
if(isset($user) && $user->getRoleID() == 1){
//include all admin pages needed
require 'segments/admin/sidebar.php';
print '<div id="right-panel" class="right-panel">';
require 'segments/admin/rightPanel.php';
print '<div class="content mt-3">';
if(isset($page)){
switch ($page){
case 'addUser':
echo 'test';
require 'segments/admin/addUser/addUser.php';
break;
default:
require 'segments/admin/dashboard/dashboard.php';
break;
}
}
print '</div></div>';
}