634686448f13ad686bbe5616a18ce3703ba3e0b3
[squirrelmail.git] / plugins / bug_report / show_system_specs.php
1 <?php
2 /**
3 * This script shows system specification details.
4 *
5 * @copyright 1999-2019 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
12
13 // This is the bug_report show system specs page
14 //
15 define('PAGE_NAME', 'bug_report_show_system_specs');
16
17
18 // Include the SquirrelMail initialization file.
19 //
20 require('../../include/init.php');
21
22
23 // load plugin functions
24 //
25 require_once(SM_PATH . 'plugins/bug_report/functions.php');
26
27
28 // error out when bug_report plugin is disabled
29 // or is called by the wrong user
30 //
31 if (! is_plugin_enabled('bug_report') || ! bug_report_check_user()) {
32 error_box(_("Plugin is disabled."));
33 $oTemplate->display('footer.tpl');
34 exit();
35 }
36
37
38 // get system specs
39 //
40 require_once(SM_PATH . 'plugins/bug_report/system_specs.php');
41 list($body, $warnings, $corrections) = get_system_specs();
42
43 global $oTemplate;
44 $oTemplate->assign('body', $body);
45 $oTemplate->display('plugins/bug_report/system_specs.tpl');
46 $oTemplate->display('footer.tpl');
47
48