Use compatibility_info() function if at all possible instead of compatibility_version()
[squirrelmail.git] / plugins / bug_report / show_system_specs.php
index 1367d1a12a1525e53d40b8d3029757a4f1896ba1..07ceb50c62724d91a5d402ffd79e6473735b796d 100644 (file)
@@ -1,30 +1,34 @@
 <?php
-
 /**
- * This shows system specification details.
- *
- * 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.
+ * This script shows system specification details.
  *
+ * @copyright &copy; 1999-2007 The SquirrelMail Project Team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @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>
-
 <?php
 
 include_once(SM_PATH . 'plugins/bug_report/system_specs.php');