X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fbug_report%2Fshow_system_specs.php;h=07ceb50c62724d91a5d402ffd79e6473735b796d;hb=055ef246e149db5ab9039ce8182e3d7edce34034;hp=20b9bbe5bddcc39696ef4964e9f8e28c2c4debd1;hpb=151562a780a0919b32e04d204ba7f33fb215bd84;p=squirrelmail.git diff --git a/plugins/bug_report/show_system_specs.php b/plugins/bug_report/show_system_specs.php index 20b9bbe5..07ceb50c 100644 --- a/plugins/bug_report/show_system_specs.php +++ b/plugins/bug_report/show_system_specs.php @@ -2,7 +2,7 @@ /** * 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 @@ -10,20 +10,17 @@ */ /** - * @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\n"; + error_box(_("Plugin is disabled.")); + $oTemplate->display('footer.tpl'); exit(); } ?>