fix path disclose problem in functions.php
[squirrelmail.git] / plugins / bug_report / show_system_specs.php
1 <?php
2
3 /**
4 * This shows system specification details.
5 *
6 * Copyright (c) 1999-2005 The SquirrelMail Project Team
7 * Licensed under the GNU GPL. For full terms see the file COPYING.
8 *
9 * This is a standard SquirrelMail 1.2 API for plugins.
10 *
11 * @version $Id$
12 * @package plugins
13 * @subpackage bug_report
14 */
15
16 /**
17 * @ignore
18 */
19 define('SM_PATH','../../');
20 include_once(SM_PATH . 'include/validate.php');
21
22 /** is bug_report plugin disabled */
23 if (! is_plugin_enabled('bug_report')) {
24 error_box(_("Plugin is disabled."),$color);
25 echo "\n</body></html>\n";
26 exit();
27 }
28 ?>
29 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
30 <html>
31 <body>
32 <pre>
33 <?php
34
35 include_once(SM_PATH . 'plugins/bug_report/system_specs.php');
36 global $body;
37 echo $body;
38
39 ?>
40 </pre>
41 </body>
42 </html>