X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fbug_report%2Fbug_report.php;h=603ceb487a4e8c955f1d3af6e3b729080a6a94a0;hp=58917c43d1ca5a5ca7a9bfca992866a90b319893;hb=bbb2bab55dbfb58735b8aa3eab53c052410753fa;hpb=ddc94fcb79bf871503fd28902bfe3bba9388e387 diff --git a/plugins/bug_report/bug_report.php b/plugins/bug_report/bug_report.php index 58917c43..603ceb48 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,91 +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 _("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%"'); -?> - -