function show_system_info() { global $txt, $smcFunc, $context, $smfInfo, $modSettings, $forum_version; global $db_persist, $maintenance, $cookiename, $db_last_error, $db_show_debug; get_database_version(); echo ' <div class="tab-page" id="main"><h2 class="tab">', $txt['maininfo'], '</h2> <script type="text/javascript">addSection("main", "', $txt['maininfo'], '" );</script> <table border="0" width="100%" cellpadding="2" cellspacing="2"> <tr> <td width="25%"><strong>', $txt['smf_version'], '</strong></td> <td>', $forum_version, '</td> </tr> <tr> <td width="25%"><strong>', $txt['lang_char_set'], '</strong></td> <td>', $txt['lang_character_set'], '</td> </tr> <tr> <td width="25%"><strong>', $txt['db_char_set'], '</strong></td> <td>', $context['character_set'], '</td> </tr> <tr> <td valign="top"><strong>', $txt['smf_relevant'], '</strong></td> <td> <table width="100%" cellpadding="2" cellspacing="2">'; foreach ($context['smfinfo'] as $item => $value) { echo ' <tr> <td width="25%">', $txt[$item], ':</td> <td>', $value, '</td> </tr>'; } echo ' </table> </td> </tr> <tr> <td><strong>', $txt['php_version'], '</strong></td> <td>', phpversion(), '</td> </tr> <tr> <td><strong>', $txt['database_version'], '</strong></td> <td>', $context['database_version'], '</td> </tr> <tr> <td><strong>', $txt['webserver_version'], '</strong></td> <td>', get_server_software(), '</td> </tr> <tr> <td><strong>', $txt['php_api'], '</strong></td> <td>', php_sapi_name(), '</td> </tr> <tr> <td valign="top"><strong>', $txt['relevant_info'], '</strong></td> <td> <table width="100%" cellpadding="2" cellspacing="2">'; foreach ($context['phpinfo'] as $item => $value) { echo ' <tr> <td width="25%">', $txt[$item], ':</td> <td>', $value, '</td> </tr>'; } echo ' </table> </td> </tr>'; $server_checks = array('gd', 'mmcache', 'eaccelerator', 'phpa', 'apc', 'memcache'); foreach (get_server_versions($server_checks) as $values) { echo ' <tr> <td><strong>', $values['title'], '</strong></td> <td>', $values['version'], '</td> </tr>'; } echo ' </table> </div>'; }
function show_system_info() { global $txt, $context, $forum_version; get_database_version(); echo ' <div class="tab-page" id="main"> <h2 class="tab">', $txt['maininfo'], '</h2> <script>addSection("main", "', $txt['maininfo'], '" );</script> <table class="generic"> <tr> <td style="width:30%"><strong>', $txt['elk_version'], '</strong></td> <td>', $forum_version, '</td> </tr> <tr> <td style="width:30%"><strong>', $txt['lang_char_set'], '</strong></td> <td>', $txt['lang_character_set'], '</td> </tr> <tr> <td style="width:30%"><strong>', $txt['db_char_set'], '</strong></td> <td>', $context['character_set'], '</td> </tr> <tr> <td valign="top"><strong>', $txt['site_relevant'], '</strong></td> <td> <table class="generic">'; foreach ($context['elkinfo'] as $item => $value) { echo ' <tr> <td style="width:30%">', $txt[$item], ':</td> <td>', $value, '</td> </tr>'; } echo ' </table> </td> </tr> <tr> <td><strong>', $txt['php_version'], '</strong></td> <td>', phpversion(), '</td> </tr> <tr> <td><strong>', $txt['database_version'], '</strong></td> <td>', $context['database_version'], '</td> </tr> <tr> <td><strong>', $txt['webserver_version'], '</strong></td> <td>', get_server_software(), '</td> </tr> <tr> <td><strong>', $txt['php_api'], '</strong></td> <td>', php_sapi_name(), '</td> </tr> <tr> <td valign="top"><strong>', $txt['relevant_info'], '</strong></td> <td> <table class="generic">'; foreach ($context['phpinfo'] as $item => $value) { echo ' <tr> <td style="width:30%">', $txt[$item], ':</td> <td>', $value, '</td> </tr>'; } echo ' </table> </td> </tr>'; $server_checks = array('gd', 'mmcache', 'eaccelerator', 'phpa', 'apc', 'memcache'); foreach (get_server_versions($server_checks) as $values) { echo ' <tr> <td><strong>', $values['title'], '</strong></td> <td>', $values['version'], '</td> </tr>'; } echo ' </table> </div>'; }