projects
/
squirrelmail.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
t12n of fortune output
[squirrelmail.git]
/
plugins
/
bug_report
/
show_system_specs.php
diff --git
a/plugins/bug_report/show_system_specs.php
b/plugins/bug_report/show_system_specs.php
index 2f9f5b7a06f40e961e1c46f6a57e36b54a555f24..293e13b991e317de605fc087f4e9576bf3164c2d 100644
(file)
--- a/
plugins/bug_report/show_system_specs.php
+++ b/
plugins/bug_report/show_system_specs.php
@@
-1,30
+1,34
@@
<?php
<?php
-
/**
/**
- * This shows system specification details.
- *
- * Copyright (c) 1999-2004 The SquirrelMail development team
- * Licensed under the GNU GPL. For full terms see the file COPYING.
- *
- * This is a standard Squirrelmail-1.2 API for plugins.
+ * This script shows system specification details.
*
*
+ * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
* @subpackage bug_report
*/
/**
* @version $Id$
* @package plugins
* @subpackage bug_report
*/
/**
- *
@ignore
+ *
Include the SquirrelMail initialization file.
*/
*/
-define('SM_PATH','../../');
-include_once(SM_PATH . 'include/validate.php');
+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 */
+if (! is_plugin_enabled('bug_report') || ! bug_report_check_user()) {
+ error_box(_("Plugin is disabled."));
+ $oTemplate->display('footer.tpl');
+ exit();
+}
?>
?>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">
<html>
<body>
<pre>
<html>
<body>
<pre>
-
<?php
include_once(SM_PATH . 'plugins/bug_report/system_specs.php');
<?php
include_once(SM_PATH . 'plugins/bug_report/system_specs.php');
@@
-34,4
+38,4
@@
echo $body;
?>
</pre>
</body>
?>
</pre>
</body>
-</html>
+</html>
\ No newline at end of file