X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fbug_report%2Fshow_system_specs.php;h=e73ce05402c9b9c52a312d5289f80b707b87a800;hp=293e13b991e317de605fc087f4e9576bf3164c2d;hb=55e346263751f3100c780b2d3aee268b6fa3232d;hpb=1b858d863d345dc7bcc4bed0c169091b084b3a0c diff --git a/plugins/bug_report/show_system_specs.php b/plugins/bug_report/show_system_specs.php index 293e13b9..e73ce054 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-2006 The SquirrelMail Project Team + * @copyright 1999-2011 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'); + +