print_info_row('PHP variable "post_max_size"', ini_get_number('post_max_size'));
    print_info_row('MantisBT variable "max_file_size"', config_get_global('max_file_size'));
    print_test_row('Checking MantisBT upload file size is less than php', config_get_global('max_file_size') <= ini_get_number('post_max_size') && config_get_global('max_file_size') <= ini_get_number('upload_max_filesize'));
    switch (config_get_global('file_upload_method')) {
        case DATABASE:
            print_info_row('There may also be settings in your web server and database that prevent you from  uploading files or limit the maximum file size.  See the documentation for those packages if you need more information.');
            if (500 < min(ini_get_number('upload_max_filesize'), ini_get_number('post_max_size'), config_get_global('max_file_size'))) {
                print_info_row('<span class="error">Your current settings will most likely need adjustments to the PHP max_execution_time or memory_limit settings, the MySQL max_allowed_packet setting, or equivalent.');
            }
            break;
        case DISK:
            $t_upload_path = config_get_global('absolute_path_default_upload_folder');
            print_test_row('Checking that absolute_path_default_upload_folder has a trailing directory separator: "' . $t_upload_path . '"', DIRECTORY_SEPARATOR == substr($t_upload_path, -1, 1));
            break;
    }
    print_info_row('There may also be settings in your web server that prevent you from  uploading files or limit the maximum file size.  See the documentation for those packages if you need more information.');
}
?>
</table>
<?php 
if ($g_failed_test) {
    ?>
	 <table width="100%" bgcolor="#222222" border="0" cellpadding="20" cellspacing="1">
	<tr>
		<td bgcolor="#f4f4f4">Some Tests Failed. Please correct failed tests before using MantisBT.</td>
	</tr>
	</table>
<?php 
} else {
    ?>
	 <table width="100%" bgcolor="#222222" border="0" cellpadding="20" cellspacing="1">
Beispiel #2
0
    $t_query = 'SELECT COUNT(*) FROM ' . $t_table;
    $t_result = db_query($t_query);
    $t_count = db_result($t_result);
    return $t_count;
}
?>
<div class="table-container">
	<h2><?php 
echo lang_get('mantisbt_database_statistics');
?>
</h2>
	<table cellspacing="1">
		<thead>
			<tr class="row-category">
				<th>Table Name</th>
				<th>Record Count</th>
			</tr>
		<thead>
		<tbody>
<?php 
foreach (db_get_table_list() as $t_table) {
    if (db_table_exists($t_table)) {
        print_info_row($t_table, helper_table_row_count($t_table));
    }
}
?>
		</tbody>
	</table>
</div>
<?php 
html_page_bottom();
Beispiel #3
0
    $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('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('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>
<?php 
html_page_bottom();
Beispiel #4
0
 * @param string $p_table Table name.
 * @return integer row count
 */
function helper_table_row_count($p_table)
{
    $t_table = $p_table;
    $t_query = 'SELECT COUNT(*) FROM ' . $t_table;
    $t_result = db_query($t_query);
    $t_count = db_result($t_result);
    return $t_count;
}
?>
<div class="table-container">
<table cellspacing="1">
<tr>
<td class="form-title" width="30%" colspan="2"><?php 
echo lang_get('mantisbt_database_statistics');
?>
</td>
</tr>
<?php 
foreach (db_get_table_list() as $t_table) {
    if (db_table_exists($t_table)) {
        print_info_row($t_table, helper_table_row_count($t_table) . ' records');
    }
}
?>
</table>
</div>
<?php 
html_page_bottom();