/
manage_overview_page.php
137 lines (127 loc) · 3.92 KB
/
manage_overview_page.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
130
131
132
133
134
135
136
<?php
# MantisBT - A PHP based bugtracking system
# MantisBT is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 2 of the License, or
# (at your option) any later version.
#
# MantisBT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with MantisBT. If not, see <http://www.gnu.org/licenses/>.
/**
* Overview Page
*
* @package MantisBT
* @copyright Copyright 2002 MantisBT Team - mantisbt-dev@lists.sourceforge.net
* @link http://www.mantisbt.org
*
* @uses core.php
* @uses access_api.php
* @uses authentication_api.php
* @uses config_api.php
* @uses constant_inc.php
* @uses current_user_api.php
* @uses event_api.php
* @uses helper_api.php
* @uses html_api.php
* @uses lang_api.php
*/
require_once( 'core.php' );
require_api( 'access_api.php' );
require_api( 'authentication_api.php' );
require_api( 'config_api.php' );
require_api( 'constant_inc.php' );
require_api( 'current_user_api.php' );
require_api( 'event_api.php' );
require_api( 'helper_api.php' );
require_api( 'html_api.php' );
require_api( 'lang_api.php' );
auth_reauthenticate();
access_ensure_global_level( config_get( 'manage_site_threshold' ) );
layout_page_header( lang_get( 'manage_link' ) );
layout_page_begin( __FILE__ );
print_manage_menu( 'manage_overview_page.php' );
?>
<div class="col-md-12 col-xs-12">
<div class="space-10"></div>
<div class="widget-box widget-color-blue2">
<div class="widget-header widget-header-small">
<h4 class="widget-title lighter">
<?php print_icon( 'fa-info', 'ace-icon' ); ?>
<?php echo lang_get('site_information') ?>
</h4>
</div>
<div class="widget-body">
<div class="widget-main no-padding">
<div class="table-responsive">
<table id="manage-overview-table" class="table table-hover table-bordered table-condensed">
<tr>
<th class="category"><?php echo lang_get( 'mantis_version' ) ?></th>
<td><?php echo MANTIS_VERSION . config_get_global( 'version_suffix' ) ?></td>
</tr>
<tr>
<th class="category"><?php echo lang_get( 'schema_version' ) ?></th>
<td><?php echo config_get( 'database_version', 0, ALL_USERS, ALL_PROJECTS ) ?></td>
</tr>
<tr class="spacer">
<td colspan="2"></td>
</tr>
<tr class="hidden"></tr>
<?php
$t_is_admin = current_user_is_administrator();
if( $t_is_admin ) {
?>
<tr>
<th class="category"><?php echo lang_get( 'php_version' ) ?></th>
<td><?php echo phpversion() ?></td>
</tr>
<tr>
<th class="category"><?php echo lang_get( 'os_information' ) ?></th>
<td><?php echo php_uname() ?></td>
</tr>
<tr>
<th class="category"><?php echo lang_get( 'database_driver' ) ?></th>
<td><?php echo config_get_global( 'db_type' ) ?></td>
</tr>
<tr>
<th class="category"><?php echo lang_get( 'database_version_description' ) ?></th>
<td><?php
$t_database_server_info = $g_db->ServerInfo();
echo $t_database_server_info['version'] . ', ' . $t_database_server_info['description']
?>
</td>
</tr>
<tr class="spacer">
<td colspan="2"></td>
</tr>
<tr>
<th class="category"><?php echo lang_get( 'site_path' ) ?></th>
<td><?php echo config_get_global( 'absolute_path' ) ?></td>
</tr>
<tr>
<th class="category"><?php echo lang_get( 'core_path' ) ?></th>
<td><?php echo config_get_global( 'core_path' ) ?></td>
</tr>
<tr>
<th class="category"><?php echo lang_get( 'plugin_path' ) ?></th>
<td><?php echo config_get_global( 'plugin_path' ) ?></td>
</tr>
<tr class="spacer">
<td colspan="2"></td>
</tr>
<?php
}
event_signal( 'EVENT_MANAGE_OVERVIEW_INFO', array( $t_is_admin ) )
?>
</table>
</div>
</div>
</div>
</div>
</div>
<?php
layout_page_end();