Add ability to show login error from the IMAP server instead of traditional "Unknown...
[squirrelmail.git] / plugins / bug_report / show_system_specs.php
CommitLineData
595848f9 1<?php
595848f9 2/**
2329d86d 3 * This script shows system specification details.
595848f9 4 *
701e7bee 5 * @copyright 1999-2014 The SquirrelMail Project Team
4b4abf93 6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
3b43404b 7 * @version $Id$
8 * @package plugins
9 * @subpackage bug_report
595848f9 10 */
11
1a219da9 12
13// This is the bug_report show system specs page
14//
15define('PAGE_NAME', 'bug_report_show_system_specs');
16
17
18// Include the SquirrelMail initialization file.
19//
202bcbcc 20require('../../include/init.php');
21
595848f9 22
1a219da9 23// load plugin functions
24//
25require_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//
2329d86d 31if (! is_plugin_enabled('bug_report') || ! bug_report_check_user()) {
1b858d86 32 error_box(_("Plugin is disabled."));
33 $oTemplate->display('footer.tpl');
e1df9174 34 exit();
35}
595848f9 36
595848f9 37
1a219da9 38// get system specs
39//
40require_once(SM_PATH . 'plugins/bug_report/system_specs.php');
41list($body, $warnings, $corrections) = get_system_specs();
42
43global $oTemplate;
44$oTemplate->assign('body', $body);
45$oTemplate->display('plugins/bug_report/system_specs.tpl');
46$oTemplate->display('footer.tpl');
47
48