/**
* This script shows system specification details.
*
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package plugins
*/
/**
- * @ignore
+ * Include the SquirrelMail initialization file.
*/
-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');
+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."),$color);
- echo "\n</body></html>\n";
+ error_box(_("Plugin is disabled."));
+ $oTemplate->display('footer.tpl');
exit();
}
?>