From 069540e3af9fcc59246ee201a8bc3c54bb73ef30 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 31 Jul 2006 17:39:43 +0000 Subject: [PATCH] r982: Added something to make the admin index look useful --- admin/index.php | 37 ++++++++++++++++++++++++++++++++++++- 1 file changed, 36 insertions(+), 1 deletion(-) diff --git a/admin/index.php b/admin/index.php index 9ebf74c..53e50f4 100755 --- a/admin/index.php +++ b/admin/index.php @@ -27,6 +27,8 @@ $navigator->set_focus('link', 'options-pages-home', 'options-pages'); $admin->page_start('Home'); +// ################################################################### + if (!defined('NO_VERSION_CHEK') OR constant('NO_VERSION_CHECK') != true) { $check = @file_get_contents('http://www.bluestatic.org/versioncheck.php?prod=bugdar&ver=' . str_replace(' ', '-', $bugsys->options['trackerversion'])); @@ -44,7 +46,40 @@ if (!defined('NO_VERSION_CHEK') OR constant('NO_VERSION_CHECK') != true) } } -$admin->page_code($lang->string('Hi and welcome to the Bugdar administration screen!')); +// ################################################################### + +$admin->table_start(); +$admin->table_head($lang->string('Welcome to the Bugdar Admin Panel')); + +// ------------------------------------------------------------------- +$admin->row_span($lang->string('Version Information'), 'thead'); +$admin->row_text($lang->string('Bugdar Version'), $bugsys->options['trackerversion']); +$admin->row_text($lang->string('PHP Version'), phpversion()); + +$mysql = $db->query_first("SELECT VERSION() AS version"); +$admin->row_text($lang->string('MySQL Version'), $mysql['version']); + +$admin->row_text($lang->string('Web Server'), ($_SERVER['SERVER_SOFTWARE'] ? $_SERVER['SERVER_SOFTWARE'] : $SERVER['SERVER_SOFTWARE'])); + +// ------------------------------------------------------------------- +$admin->row_span($lang->string('Server Options'), 'thead'); + +$mysql = $db->query_first("SHOW VARIABLES LIKE 'max_allowed_packet'"); +$admin->row_text($lang->string('MySQL: Maximum Packet Size'), $mysql['Value']); + +$admin->row_text($lang->string('MySQL: Maximum Upload Size'), $funct->fetch_max_attachment_size()); + +$mysql = $db->query_first("SHOW VARIABLES LIKE 'ft_min_word_len'"); +$admin->row_text($lang->string('MySQL: Full-Text Search Minimum Word Length'), $mysql['Value']); + +$admin->row_text($lang->string('PHP: Safe Mode'), ((ini_get('safe_mode') == 1 OR strtolower(ini_get('safe_mode')) == 'on') ? $lang->string('Yes') : $lang->string('No'))); +$admin->row_text($lang->string('PHP: Register Globals'), ((ini_get('register_globals') == 1 OR strtolower(ini_get('register_globals')) == 'on') ? $lang->string('Yes') : $lang->string('No'))); +$admin->row_text($lang->string('PHP: Magic Quotes GPC'), ((ini_get('magic_quotes_gpc') == 1 OR strtolower(ini_get('magic_quotes_gpc')) == 'on') ? $lang->string('Yes') : $lang->string('No'))); +$admin->row_text($lang->string('PHP: Magic Quotes Sybase'), ((ini_get('magic_quotes_sybase') == 1 OR strtolower(ini_get('magic_quotes_sybase')) == 'on') ? $lang->string('Yes') : $lang->string('No'))); + +// ------------------------------------------------------------------- + +$admin->table_end(); $admin->page_end(); -- 2.43.5