Ejemplo n.º 1
0
 function footer()
 {
     global $xoopsConfig, $xoopsLogger;
     // Home page of administration area
     if (false === strpos($_SERVER['REQUEST_URI'], '?') && false === strpos($_SERVER['REQUEST_URI'], '/modules/') && substr($_SERVER['REQUEST_URI'], -9) == "admin.php") {
         $string_pattern = "<div><span style='width: 250px; text-align: right; float: left; padding-right: 5px;'>%s</span> - <span>%s</span></div>";
         echo "<h2><a href='javascript: xoopsToggleDisplay(\"overview\");'>" . _MD_CPANEL_OVERVIEW . " <span id='overview-label'>&laquo;</span></a></h2>";
         echo "<div id='overview'>";
         printf($string_pattern, sprintf(_MD_CPANEL_VERSION, "XOOPS"), XOOPS_VERSION);
         printf($string_pattern, sprintf(_MD_CPANEL_VERSION, "PHP"), PHP_VERSION);
         printf($string_pattern, sprintf(_MD_CPANEL_VERSION, "MySQL"), mysql_get_server_info());
         printf($string_pattern, sprintf(_MD_CPANEL_VERSION, "Server API"), PHP_SAPI);
         printf($string_pattern, sprintf(_MD_CPANEL_VERSION, "OS"), PHP_OS);
         echo "<br />";
         printf($string_pattern, 'safe_mode', ini_get('safe_mode') ? 'On' : 'Off');
         printf($string_pattern, 'register_globals', ini_get('register_globals') ? 'On' : 'Off');
         printf($string_pattern, 'magic_quotes_gpc', ini_get('magic_quotes_gpc') ? 'On' : 'Off');
         printf($string_pattern, 'allow_url_fopen', ini_get('allow_url_fopen') ? 'On' : 'Off');
         printf($string_pattern, 'fsockopen', function_exists('fsockopen') ? 'On' : 'Off');
         printf($string_pattern, 'allow_call_time_pass_reference', ini_get('allow_call_time_pass_reference') ? 'On' : 'Off');
         printf($string_pattern, 'post_max_size', ini_get('post_max_size'));
         printf($string_pattern, 'max_input_time', ini_get('max_input_time'));
         printf($string_pattern, 'output_buffering', ini_get('output_buffering'));
         printf($string_pattern, 'max_execution_time', ini_get('max_execution_time'));
         printf($string_pattern, 'memory_limit', ini_get('memory_limit'));
         printf($string_pattern, 'file_uploads', ini_get('file_uploads') ? 'On' : 'Off');
         printf($string_pattern, 'upload_max_filesize', ini_get('upload_max_filesize'));
         echo "</div>";
         echo "<h3><a href='javascript: xoopsToggleDisplay(\"extensions\")'>" . _MD_CPANEL_PHPEXTENSIONS . " <span id='extensions-label'>&raquo;</span></a></h3>";
         echo "<div id='extensions' style='display: none; padding-left: 10px;'><ul>";
         $extensions = get_loaded_extensions();
         foreach ($extensions as $ext) {
             echo "<li style='width: 45%; float: left;'>" . $ext . "</li>";
         }
         echo "</ul></div>";
         echo "<br style='clear: both;'>";
     }
     echo "\n                  </div><br />\n                </td>\n                <td width='1%' class='bg_content'></td>\n              </tr>\n              <tr>\n                <td align='center' colspan='4' class='bg5' height='15'>\n                  <table border='0' width='100%' cellspacing='0' cellpadding='0'>\n                    <tr>\n                      <td width='1%'><img src='" . XOOPS_URL . "/modules/system/class/gui/default/images/hbar_left.gif' width='16' height='23' /></td>\n                      <td width='98%' class='hbar_middle' align='center'><div class='fontSmall'>Powered by&nbsp;" . XOOPS_VERSION . " &copy; 2001-" . date("Y") . " <a href='http://xoops.sourceforge.net/' rel='external'>The XOOPS Project</a></div></td><td width='1%'><img src='" . XOOPS_URL . "/modules/system/class/gui/default/images/hbar_right.gif' width='10' height='23' /></td>\n                    </tr>\n                  </table>\n                </td>\n              </tr>\n            </table>";
     parent::footer();
 }
Ejemplo n.º 2
0
 function footer()
 {
     xoops_legacy_cp_footer();
     parent::footer();
     return true;
 }