set_focus('tab', 'options', null); $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'])); if (strpos($check, '') !== false) { $check = $bugsys->xml->parse($check); if (isset($check['version-check']['update'])) { $admin->page_code('
' . _('Update Avaliable') . ':
' . sprintf(_('Your installation of Bugdar is out-of-date. You are running version %1$s and the latest version is %2$s. You can download the update at Blue Static\'s website. You are strongly encouraged to apply all updates to fix bugs and any security issues (if present).'), $bugsys->options['trackerversion'], $check['version-check']['update']['value']) . '
'); } else if (isset($check['version-check']['up-to-date'])) { $admin->page_code('
' . _('Up-to-Date') . ':
' . sprintf(_('Your installation of Bugdar is up-to-date. You are running version %1$s.'), $bugsys->options['trackerversion']) . '
'); } } } // ################################################################### $admin->table_start(); $admin->table_head(_('Welcome to the Bugdar Admin Panel')); // ------------------------------------------------------------------- $admin->row_span(_('Version Information'), 'thead'); $admin->row_text(_('Bugdar Version'), $bugsys->options['trackerversion']); $admin->row_text(_('PHP Version'), phpversion()); $mysql = $db->query_first("SELECT VERSION() AS version"); $admin->row_text(_('MySQL Version'), $mysql['version']); $admin->row_text(_('Web Server'), ($_SERVER['SERVER_SOFTWARE'] ? $_SERVER['SERVER_SOFTWARE'] : $SERVER['SERVER_SOFTWARE'])); // ------------------------------------------------------------------- $admin->row_span(_('Server Options'), 'thead'); $mysql = $db->query_first("SHOW VARIABLES LIKE 'max_allowed_packet'"); $admin->row_text(_('MySQL: Maximum Packet Size'), $mysql['Value']); $admin->row_text(_('MySQL: Maximum Upload Size'), $funct->fetch_max_attachment_size()); $mysql = $db->query_first("SHOW VARIABLES LIKE 'ft_min_word_len'"); $admin->row_text(_('MySQL: Full-Text Search Minimum Word Length'), $mysql['Value']); $admin->row_text(_('PHP: Safe Mode'), ((ini_get('safe_mode') == 1 OR strtolower(ini_get('safe_mode')) == 'on') ? _('Yes') : _('No'))); $admin->row_text(_('PHP: Register Globals'), ((ini_get('register_globals') == 1 OR strtolower(ini_get('register_globals')) == 'on') ? _('Yes') : _('No'))); $admin->row_text(_('PHP: Magic Quotes GPC'), ((ini_get('magic_quotes_gpc') == 1 OR strtolower(ini_get('magic_quotes_gpc')) == 'on') ? _('Yes') : _('No'))); $admin->row_text(_('PHP: Magic Quotes Sybase'), ((ini_get('magic_quotes_sybase') == 1 OR strtolower(ini_get('magic_quotes_sybase')) == 'on') ? _('Yes') : _('No'))); $admin->row_text(_('PHP: Gettext Installed'), (function_exists('ngettext') ? _('Yes') : _('No'))); // ------------------------------------------------------------------- $admin->table_end(); $admin->page_end(); /*=====================================================================*\ || ################################################################### || # $HeadURL$ || # $Id$ || ################################################################### \*=====================================================================*/ ?>