vars['versionCheck'] = true; $check = @file_get_contents('http://www.bluestatic.org/versioncheck.php?prod=bugdar&ver=' . str_replace(' ', '-', bugdar::$options['trackerversion'])); if (strpos($check, '') !== false) { $check = simplexml_load_string($check); if ($check->update) { $template->vars['upToDate'] = false; $template->vars['updateTitle'] = T('Update Avaliable'); $template->vars['updateString'] = sprintf(T('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).'), bugdar::$options['trackerversion'], $check->update); } else { $template->vars['upToDate'] = true; $template->vars['updateTitle'] = T('Up-to-Date'); $template->vars['updateString'] = sprintf(T('Your installation of Bugdar is up-to-date. You are running version %1$s.'), bugdar::$options['trackerversion']); } } } // ################################################################### // some option information $template->vars['mysqlVersion'] = $db->queryFirst("SELECT VERSION() AS version", 'fetchObject')->version; $template->vars['webServer'] = ($_SERVER['SERVER_SOFTWARE']) ? $_SERVER['SERVER_SOFTWARE'] : $SERVER['SERVER_SOFTWARE']; $template->vars['mysqlPacketSize'] = $db->queryFirst("SHOW VARIABLES LIKE 'max_allowed_packet'", 'fetchObject')->Value; $template->vars['mysqlWordLength'] = $db->queryFirst("SHOW VARIABLES LIKE 'ft_min_word_len'", 'fetchObject')->Value; $template->vars['phpSafeMode'] = (ini_get('safe_mode') == 1 || strtolower(ini_get('safe_mode')) == 'on'); $template->vars['phpRegGlobals'] = (ini_get('register_globals') == 1 || strtolower(ini_get('register_globals')) == 'on'); $template->vars['phpMagicQuotesGPC'] = (ini_get('magic_quotes_gpc') == 1 || strtolower(ini_get('magic_quotes_gpc')) == 'on'); $template->vars['phpMagicQuotesSybase'] = (ini_get('magic_quotes_sybase') == 1 || strtolower(ini_get('magic_quotes_sybase')) == 'on'); $template->evaluate()->flush(); ?>