X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=plugins%2Fbug_report%2Fbug_report.php;h=aa5d49ca84230adf56706a07cb64d6a572e1690b;hp=7aca17a64deef87431d44c15b2f2f19df53db4a0;hb=768c6816fba75ca42198049e0de77522912f8d00;hpb=3ee2d2aefc07dc6365e9aa6f90e9c12170c6fbc4 diff --git a/plugins/bug_report/bug_report.php b/plugins/bug_report/bug_report.php index 7aca17a6..aa5d49ca 100644 --- a/plugins/bug_report/bug_report.php +++ b/plugins/bug_report/bug_report.php @@ -1,5 +1,4 @@ -
- - '._("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%"'); - ?> - +// This is the bug_report options page +// +define('PAGE_NAME', 'bug_report_options'); + + +// Include the SquirrelMail initialization file. +// +require('../../include/init.php'); + + +// load plugin functions +// +require_once(SM_PATH . 'plugins/bug_report/functions.php'); + + +displayPageHeader($color); + + +// error out when bug_report plugin is disabled +// or is called by the wrong user +// +if (! is_plugin_enabled('bug_report') || ! bug_report_check_user()) { + error_box(_("Plugin is disabled.")); + $oTemplate->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" . + "This bug occurs when I ...\n" . + " ... view a particular message\n" . + " ... use a specific plugin/function\n" . + " ... try to do/view/use ....\n" . + "\n\n\n" . + "The description of the bug:\n\n\n" . + "I can reproduce the bug by:\n\n\n" . + "(Optional) I got bored and found the bug occurs in:\n\n\n" . + "(Optional) I got really bored and here's a fix:\n\n\n" . + "----------------------------------------------\n\n"; + +$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'); +