forked from projectsend/projectsend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dashboard.php
69 lines (60 loc) · 1.56 KB
/
dashboard.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
<?php
/**
* Home page for logged in system users.
*
* @package ProjectSend
*
*/
$allowed_levels = array(9,8,7);
require_once 'bootstrap.php';
$page_title = __('Dashboard', 'cftp_admin');
$active_nav = 'dashboard';
$body_class = array('dashboard', 'home', 'hide_title');
$page_id = 'dashboard';
include_once ADMIN_VIEWS_DIR . DS . 'header.php';
define('CAN_INCLUDE_FILES', true);
if (current_role_in([9])) {
include_once WIDGETS_FOLDER.'counters.php';
}
$log_allowed = array(9);
$show_log = false;
$sys_info = false;
if (current_role_in($log_allowed)) {
$show_log = true;
$sys_info = true;
}
?>
<div class="row">
<div class="col-sm-8">
<div class="row">
<div class="col-sm-12">
<?php include_once WIDGETS_FOLDER.'statistics.php'; ?>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<?php include_once WIDGETS_FOLDER.'news.php'; ?>
</div>
<?php
if ( $sys_info == true ) {
?>
<div class="col-sm-6">
<?php include_once WIDGETS_FOLDER.'system-information.php'; ?>
</div>
<?php
}
?>
</div>
</div>
<?php
if ( $show_log == true ) {
?>
<div class="col-sm-4 container_widget_actions_log">
<?php include_once WIDGETS_FOLDER.'actions-log.php'; ?>
</div>
<?php
}
?>
</div>
<?php
include_once ADMIN_VIEWS_DIR . DS . 'footer.php';