X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fbug_report%2Fshow_system_specs.php;h=9bb60054352e7d6239489f8df1e723f9d9a40cda;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hp=16d51d8b672ea6847b6494bb4337f8cd20b31ade;hpb=4b4abf93a9624311afef0c385023724ee46a2b60;p=squirrelmail.git diff --git a/plugins/bug_report/show_system_specs.php b/plugins/bug_report/show_system_specs.php index 16d51d8b..9bb60054 100644 --- a/plugins/bug_report/show_system_specs.php +++ b/plugins/bug_report/show_system_specs.php @@ -1,41 +1,48 @@ \n"; +// This is the bug_report show system specs page +// +define('PAGE_NAME', 'bug_report_show_system_specs'); + + +// Include the SquirrelMail initialization file. +// +require('../../include/init.php'); + + +// load plugin functions +// +require_once(SM_PATH . 'plugins/bug_report/functions.php'); + + +// error out when bug_report plugin is disabled +// or is called by the wrong user +// +if (! is_plugin_enabled('bug_report') || ! bug_report_check_user()) { + error_box(_("Plugin is disabled.")); + $oTemplate->display('footer.tpl'); exit(); } -?> - - - -
-
-
- - \ No newline at end of file +// get system specs +// +require_once(SM_PATH . 'plugins/bug_report/system_specs.php'); +list($body, $warnings, $corrections) = get_system_specs(); + +global $oTemplate; +$oTemplate->assign('body', $body); +$oTemplate->display('plugins/bug_report/system_specs.tpl'); +$oTemplate->display('footer.tpl'); + +