X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fbug_report%2Fbug_report.php;h=478a2d836b440d088518fd65caf87c8cc09594ee;hp=a30f7e1b07e029fee62e0ff4b80313f40c85c5e3;hb=353d074afac6827c90f4bb03e846c5e453d3b5b1;hpb=9eb3fcb302b8e0363760bee586f1c43e7050b365 diff --git a/plugins/bug_report/bug_report.php b/plugins/bug_report/bug_report.php index a30f7e1b..478a2d83 100644 --- a/plugins/bug_report/bug_report.php +++ b/plugins/bug_report/bug_report.php @@ -1,5 +1,4 @@ display('footer.tpl'); + exit(); +} + + +// get system specs +// +require_once(SM_PATH . 'plugins/bug_report/system_specs.php'); +list($body, $warnings, $corrections) = get_system_specs(); + +$body_top = "I am subscribed to the this mailing list.\n" . + " (applies when you are sending email to SquirrelMail mailing list)\n". " [ ] True - No need to CC me when replying\n" . " [ ] False - Please CC me when replying\n" . "\n" . @@ -49,94 +64,18 @@ $body_top = "I subscribe to the squirrelmail-users mailing list.\n" . "(Optional) I got really bored and here's a fix:\n\n\n" . "----------------------------------------------\n\n"; -$body = htmlspecialchars($body_top) . $body; +$body = $body_top . $body; + +global $oTemplate, $bug_report_admin_email; +if (!empty($bug_report_admin_email)) { + $oTemplate->assign('admin_email', $bug_report_admin_email); +} +$oTemplate->assign('message_body', $body); +$oTemplate->assign('title_bg_color', $color[0]); +$oTemplate->assign('warning_messages', $warnings); +$oTemplate->assign('correction_messages', $corrections); +$oTemplate->assign('warning_count', sizeof($warnings)); +$oTemplate->assign('version', SM_VERSION); +$oTemplate->display('plugins/bug_report/usage.tpl'); +$oTemplate->display('footer.tpl'); -?> -
- - '._("Submit a Bug Report").'','center',$color[0]); ?> -
- -'; -echo _("Show System Specifications"); -echo "

\n\n"; -echo '

'; -echo _("Before you send your bug report, please make sure to check this checklist for any common problems."); -echo "

\n"; - -echo '\n"; - -echo '

'; -echo _("Pressing the button below will start a mail message to the developers of SquirrelMail that will contain a lot of information about your system, your browser, how SquirrelMail is set up, and your IMAP server. It will also prompt you for information. Just fill out the sections at the top. If you like, you can scroll down in the message to see what else is being sent."); -echo "

\n"; - -echo '

'; -echo _("Please make sure to fill out as much information as you possibly can to give everyone a good chance of finding and removing the bug. Submitting your bug like this will not have it automatically added to the bug list on SourceForge, but someone who gets your message may add it for you."); -echo "

\n"; -?> -
- - - - - - - -
- : -
- -
-
-
-') - ) . - html_tag('tr', - html_tag('th', _("Search SourceForge Bugtracker"), 'center', $color[0]) - ) . - html_tag('tr', - html_tag('td', add_sf_bug_form()) - ), 'center', '', 'width="95%"'); -?> - -