X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fbug_report%2Fshow_system_specs.php;h=ccea0db8e888095aa068016bd9dbe8033ba1c00b;hp=07ceb50c62724d91a5d402ffd79e6473735b796d;hb=16dd8736f68b753f06df30ff39892ef18579e2ce;hpb=4b5049de2fa934c45599d6e4c74bf2bbee10d34d diff --git a/plugins/bug_report/show_system_specs.php b/plugins/bug_report/show_system_specs.php index 07ceb50c..ccea0db8 100644 --- a/plugins/bug_report/show_system_specs.php +++ b/plugins/bug_report/show_system_specs.php @@ -2,40 +2,47 @@ /** * This script shows system specification details. * - * @copyright © 1999-2007 The SquirrelMail Project Team + * @copyright 1999-2012 The SquirrelMail Project Team * @license http://opensource.org/licenses/gpl-license.php GNU Public License * @version $Id$ * @package plugins * @subpackage bug_report */ -/** - * Include the SquirrelMail initialization file. - */ + +// 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 */ -include_once(SM_PATH.'plugins/bug_report/functions.php'); -/** is bug_report plugin disabled or called by wrong user */ +// 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'); + +