X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=plugins%2Fbug_report%2Fbug_report.php;h=c62498caa2ba23eda0ef70635cd05e932aa26927;hb=46489d06566e040f4852385cc6862f65009dfe97;hp=6f15ca4a83ed47d8f8a27225d309c67d8d39d08c;hpb=2329d86dc01015028456a4e224c30f3b807f749d;p=squirrelmail.git diff --git a/plugins/bug_report/bug_report.php b/plugins/bug_report/bug_report.php index 6f15ca4a..c62498ca 100644 --- a/plugins/bug_report/bug_report.php +++ b/plugins/bug_report/bug_report.php @@ -7,37 +7,34 @@ * a button to show the bug report mail message in order to actually * send it. * - * @copyright © 1999-2005 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 * @subpackage bug_report */ + /** - * @ignore + * Include the SquirrelMail initialization file. */ -define('SM_PATH','../../'); -/** load system functions */ -require_once(SM_PATH . 'include/validate.php'); +require('../../include/init.php'); /** load form functions */ -include_once(SM_PATH . 'functions/forms.php'); -/** load error_box() function */ -include_once(SM_PATH . 'functions/display_messages.php'); +require_once(SM_PATH . 'functions/forms.php'); /** load plugin functions */ -include_once(SM_PATH . 'plugins/bug_report/functions.php'); +require_once(SM_PATH . 'plugins/bug_report/functions.php'); displayPageHeader($color, 'None'); /** 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(); } /** get system specs */ -include_once(SM_PATH . 'plugins/bug_report/system_specs.php'); +require_once(SM_PATH . 'plugins/bug_report/system_specs.php'); global $body; $body_top = "I am subscribed to the this mailing list.\n" . @@ -107,7 +104,7 @@ echo "

\n"; '; if (! empty($bug_report_admin_email)) { - // if admin's email is set - add 'report to admin' option and make it default one + // if admin's email is set - add 'report to admin' option and make it default one echo ''; }