1<?php
2# MantisBT - A PHP based bugtracking system
3
4# MantisBT is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, either version 2 of the License, or
7# (at your option) any later version.
8#
9# MantisBT is distributed in the hope that it will be useful,
10# but WITHOUT ANY WARRANTY; without even the implied warranty of
11# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12# GNU General Public License for more details.
13#
14# You should have received a copy of the GNU General Public License
15# along with MantisBT.  If not, see <http://www.gnu.org/licenses/>.
16
17/**
18 * Overview Page
19 *
20 * @package MantisBT
21 * @copyright Copyright 2002  MantisBT Team - mantisbt-dev@lists.sourceforge.net
22 * @link http://www.mantisbt.org
23 *
24 * @uses core.php
25 * @uses access_api.php
26 * @uses authentication_api.php
27 * @uses config_api.php
28 * @uses constant_inc.php
29 * @uses current_user_api.php
30 * @uses event_api.php
31 * @uses helper_api.php
32 * @uses html_api.php
33 * @uses lang_api.php
34 */
35
36require_once( 'core.php' );
37require_api( 'access_api.php' );
38require_api( 'authentication_api.php' );
39require_api( 'config_api.php' );
40require_api( 'constant_inc.php' );
41require_api( 'current_user_api.php' );
42require_api( 'event_api.php' );
43require_api( 'helper_api.php' );
44require_api( 'html_api.php' );
45require_api( 'lang_api.php' );
46
47auth_reauthenticate();
48access_ensure_global_level( config_get( 'manage_site_threshold' ) );
49
50layout_page_header( lang_get( 'manage_link' ) );
51
52layout_page_begin( __FILE__ );
53
54print_manage_menu( 'manage_overview_page.php' );
55?>
56
57<div class="col-md-12 col-xs-12">
58	<div class="space-10"></div>
59	<div class="widget-box widget-color-blue2">
60	<div class="widget-header widget-header-small">
61		<h4 class="widget-title lighter">
62			<?php print_icon( 'fa-info', 'ace-icon' ); ?>
63			<?php echo lang_get('site_information') ?>
64		</h4>
65	</div>
66	<div class="widget-body">
67	<div class="widget-main no-padding">
68	<div class="table-responsive">
69	<table id="manage-overview-table" class="table table-hover table-bordered table-condensed">
70		<tr>
71			<th class="category"><?php echo lang_get( 'mantis_version' ) ?></th>
72			<td><?php echo MANTIS_VERSION . config_get_global( 'version_suffix' ) ?></td>
73		</tr>
74		<tr>
75			<th class="category"><?php echo lang_get( 'schema_version' ) ?></th>
76			<td><?php echo config_get( 'database_version', 0, ALL_USERS, ALL_PROJECTS ) ?></td>
77		</tr>
78		<tr class="spacer">
79			<td colspan="2"></td>
80		</tr>
81		<tr class="hidden"></tr>
82	<?php
83	$t_is_admin = current_user_is_administrator();
84	if( $t_is_admin ) {
85	?>
86		<tr>
87			<th class="category"><?php echo lang_get( 'php_version' ) ?></th>
88			<td><?php echo phpversion() ?></td>
89		</tr>
90		<tr>
91			<th class="category"><?php echo lang_get( 'database_driver' ) ?></th>
92			<td><?php echo config_get_global( 'db_type' ) ?></td>
93		</tr>
94		<tr>
95			<th class="category"><?php echo lang_get( 'database_version_description' ) ?></th>
96			<td><?php
97					$t_database_server_info = $g_db->ServerInfo();
98					echo $t_database_server_info['version'] . ', ' . $t_database_server_info['description']
99				?>
100			</td>
101		</tr>
102		<tr class="spacer">
103			<td colspan="2"></td>
104		</tr>
105		<tr>
106			<th class="category"><?php echo lang_get( 'site_path' ) ?></th>
107			<td><?php echo config_get_global( 'absolute_path' ) ?></td>
108		</tr>
109		<tr>
110			<th class="category"><?php echo lang_get( 'core_path' ) ?></th>
111			<td><?php echo config_get_global( 'core_path' ) ?></td>
112		</tr>
113		<tr>
114			<th class="category"><?php echo lang_get( 'plugin_path' ) ?></th>
115			<td><?php echo config_get_global( 'plugin_path' ) ?></td>
116		</tr>
117		<tr class="spacer">
118			<td colspan="2"></td>
119		</tr>
120	<?php
121	}
122
123	event_signal( 'EVENT_MANAGE_OVERVIEW_INFO', array( $t_is_admin ) )
124	?>
125	</table>
126	</div>
127	</div>
128	</div>
129	</div>
130</div>
131<?php
132layout_page_end();
133
134