- Properly clean up temporary attachment files when saving as Draft
[squirrelmail.git] / plugins / bug_report / show_system_specs.php
index 16d51d8b672ea6847b6494bb4337f8cd20b31ade..0e4f9d1f1b4dfa6badd2d019f2c1cf69e13eb32e 100644 (file)
@@ -1,9 +1,6 @@
 <?php
-
 /**
- * This shows system specification details.
- *
- * This is a standard SquirrelMail 1.2 API for plugins.
+ * This script shows system specification details.
  *
  * @copyright &copy; 1999-2005 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @ignore
  */
 define('SM_PATH','../../');
+/** load system functions */
 include_once(SM_PATH . 'include/validate.php');
+/** load error_box() function */
+include_once(SM_PATH . 'functions/display_messages.php');
+/** load plugin functions */
+include_once(SM_PATH.'plugins/bug_report/functions.php');
 
-/** is bug_report plugin disabled */
-if (! is_plugin_enabled('bug_report')) {
+/** 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."),$color);
     echo "\n</body></html>\n";
     exit();