@@ -520,12 +520,6 @@ function AdminHome()
// This makes it easier to get the latest news with your time format.
$context['time_format'] = urlencode($user_info['time_format']);
-
- $context['current_versions'] = array(
- 'php' => array('title' => $txt['support_versions_php'], 'version' => PHP_VERSION),
- 'db' => array('title' => sprintf($txt['support_versions_db'], $smcFunc['db_title']), 'version' => ''),
- 'server' => array('title' => $txt['support_versions_server'], 'version' => $_SERVER['SERVER_SOFTWARE']),
- );
$context['forum_version'] = $forum_version;
// Get a list of current server versions.
@@ -65,8 +65,9 @@ function getServerVersions($checkFor)
$versions['memcache'] = array('title' => 'Memcached', 'version' => empty($memcached) ? '???' : memcache_get_version($memcached));
if (in_array('xcache', $checkFor) && function_exists('xcache_set'))
$versions['xcache'] = array('title' => 'XCache', 'version' => XCACHE_VERSION);
+
if (in_array('php', $checkFor))
- $versions['php'] = array('title' => 'PHP', 'version' => PHP_VERSION);
+ $versions['php'] = array('title' => 'PHP', 'version' => PHP_VERSION, 'more' => '?action=admin;area=serversettings;sa=phpinfo');
if (in_array('server', $checkFor))
$versions['server'] = array('title' => $txt['support_versions_server'], 'version' => $_SERVER['SERVER_SOFTWARE']);
@@ -220,9 +220,18 @@ function template_credits()
// Display all the variables we have server information for.
foreach ($context['current_versions'] as $version)
+ {
echo '
', $version['title'], ':
- <em>', $version['version'], '</em><br />';
+ <em>', $version['version'], '</em>';
+ // more details for this item, show them a link
+ if ($context['can_admin'] && isset($version['more']))
+ echo
+ ' <a href="', $scripturl, $version['more'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['version_check_more'], '</a>';
+ echo '
+ <br />';
+ }
</div>