forked from mantisbt/mantisbt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
99 lines (90 loc) · 3.04 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
<?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/>.
/**
* Mantis Administration Section
*
* @package MantisBT
* @copyright Copyright 2000 - 2002 Kenzaburo Ito - [email protected]
* @copyright Copyright 2002 MantisBT Team - [email protected]
* @link http://www.mantisbt.org
*/
require_once( dirname( dirname( __FILE__ ) ) . '/core.php' );
require_once( 'schema.php' );
access_ensure_global_level( config_get_global( 'admin_site_threshold' ) );
html_page_top( 'MantisBT Administration' );
/**
* Print Check result - information only
*
* @param string $p_description Description.
* @param string $p_value Information.
* @return void
*/
function print_info_row( $p_description, $p_value ) {
echo '<tr>';
echo '<th class="category">' . $p_description . '</th>';
echo '<td>' . $p_value . '</td>';
echo '</tr>';
}
?>
<div id="admin-menu">
<ul class="menu">
<li><a href="check/index.php">Check your installation</a></li>
<?php if( count( $g_upgrade ) - 1 != config_get( 'database_version' ) ) { ?>
<li><a href="install.php"><span class="bold">Upgrade your installation</span></a></li>
<?php } ?>
<li><a href="system_utils.php">System Utilities</a></li>
<li><a href="test_langs.php">Test Langs</a></li>
<li><a href="email_queue.php">Email Queue</a></li>
</ul>
</div>
<div id="admin-overview" class="table-container">
<table>
<tr>
<td class="form-title" width="30%" colspan="2">
<?php echo lang_get( 'install_information' ) ?>
</td>
</tr>
<?php
if( ON == config_get( 'show_version' ) ) {
$t_version_suffix = config_get_global( 'version_suffix' );
} else {
$t_version_suffix = '';
}
print_info_row( lang_get( 'mantis_version' ), MANTIS_VERSION, $t_version_suffix );
print_info_row( lang_get( 'php_version' ), phpversion() );
?>
<tr>
<td class="form-title" width="30%" colspan="2">
<?php echo lang_get( 'database_information' ) ?>
</td>
</tr>
<?php
print_info_row( lang_get( 'schema_version' ), config_get( 'database_version' ) );
print_info_row( lang_get( 'adodb_version' ), $g_db->Version() );
?>
<tr>
<td class="form-title" width="30%" colspan="2">
<?php echo lang_get( 'path_information' ) ?>
</td>
</tr>
<?php
print_info_row( lang_get( 'site_path' ), config_get( 'absolute_path' ) );
print_info_row( lang_get( 'core_path' ), config_get( 'core_path' ) );
print_info_row( lang_get( 'plugin_path' ), config_get( 'plugin_path' ) );
?>
</table>
</div>
<?php
html_page_bottom();