phpDocumentor updates
[squirrelmail.git] / plugins / bug_report / bug_report.php
index eef6e674f2180acdae7a3487090974211fb71516..192a91946ff7675a67651898bc5c66a9a27b100b 100644 (file)
@@ -8,11 +8,10 @@
  * a button to show the bug report mail message in order to actually
  * send it.
  *
- * Copyright (c) 1999-2005 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.
  *
+ * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
  * @subpackage bug_report
@@ -25,8 +24,15 @@ define('SM_PATH','../../');
 
 require_once(SM_PATH . 'include/validate.php');
 
+/** is bug_report plugin disabled */
+if (! is_plugin_enabled('bug_report')) {
+    error_box(_("Plugin is disabled."),$color);
+    echo "\n</body></html>\n";
+    exit();
+}
+
 // loading form functions
-require_once(SM_PATH . 'functions/forms.php');
+include_once(SM_PATH . 'functions/forms.php');
 
 displayPageHeader($color, 'None');
 
@@ -60,6 +66,9 @@ $body = htmlspecialchars($body_top) . $body;
 <?php
 echo $warning_html;
 
+echo '<p><a href="show_system_specs.php" target="_blank">';
+echo _("Show System Specifications");
+echo "</a></p>\n\n";
 echo '<p><big>';
 echo _("Before you send your bug report, please make sure to check this checklist for any common problems.");
 echo "</big></p>\n";