show_system_specs.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. /**
  3. * This script shows system specification details.
  4. *
  5. * @copyright &copy; 1999-2008 The SquirrelMail Project Team
  6. * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  7. * @version $Id$
  8. * @package plugins
  9. * @subpackage bug_report
  10. */
  11. // This is the bug_report show system specs page
  12. //
  13. define('PAGE_NAME', 'bug_report_show_system_specs');
  14. // Include the SquirrelMail initialization file.
  15. //
  16. require('../../include/init.php');
  17. // load plugin functions
  18. //
  19. require_once(SM_PATH . 'plugins/bug_report/functions.php');
  20. // error out when bug_report plugin is disabled
  21. // or is called by the wrong user
  22. //
  23. if (! is_plugin_enabled('bug_report') || ! bug_report_check_user()) {
  24. error_box(_("Plugin is disabled."));
  25. $oTemplate->display('footer.tpl');
  26. exit();
  27. }
  28. // get system specs
  29. //
  30. require_once(SM_PATH . 'plugins/bug_report/system_specs.php');
  31. list($body, $warnings, $corrections) = get_system_specs();
  32. global $oTemplate;
  33. $oTemplate->assign('body', $body);
  34. $oTemplate->display('plugins/bug_report/system_specs.tpl');
  35. $oTemplate->display('footer.tpl');