6 * This generates the bug report data, gives information about where
7 * it will be sent to and what people will do with it, and provides
8 * a button to show the bug report mail message in order to actually
11 * This is a standard SquirrelMail 1.2 API for plugins.
13 * @copyright © 1999-2005 The SquirrelMail Project Team
14 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
17 * @subpackage bug_report
23 define('SM_PATH','../../');
25 require_once(SM_PATH
. 'include/validate.php');
27 /** is bug_report plugin disabled */
28 if (! is_plugin_enabled('bug_report')) {
29 error_box(_("Plugin is disabled."),$color);
30 echo "\n</body></html>\n";
34 // loading form functions
35 include_once(SM_PATH
. 'functions/forms.php');
37 displayPageHeader($color, 'None');
39 include_once(SM_PATH
. 'plugins/bug_report/system_specs.php');
40 include_once(SM_PATH
. 'plugins/bug_report/functions.php');
43 $body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
44 " [ ] True - No need to CC me when replying\n" .
45 " [ ] False - Please CC me when replying\n" .
47 "This bug occurs when I ...\n" .
48 " ... view a particular message\n" .
49 " ... use a specific plugin/function\n" .
50 " ... try to do/view/use ....\n" .
52 "The description of the bug:\n\n\n" .
53 "I can reproduce the bug by:\n\n\n" .
54 "(Optional) I got bored and found the bug occurs in:\n\n\n" .
55 "(Optional) I got really bored and here's a fix:\n\n\n" .
56 "----------------------------------------------\n\n";
58 $body = htmlspecialchars($body_top) . $body;
62 <table width
="95%" align
="center" border
="0" cellpadding
="2" cellspacing
="0"><tr
>
63 <?php
echo html_tag('td','<b>'._("Submit a Bug Report").'</b>','center',$color[0]); ?
>
69 echo '<p><a href="show_system_specs.php" target="_blank">';
70 echo _("Show System Specifications");
73 echo _("Before you send your bug report, please make sure to check this checklist for any common problems.");
78 printf(_("Make sure that you are running the most recent copy of %s. You are currently using version %s."), '<a href="http://www.squirrelmail.org/" target="_blank">SquirrelMail</a>', $version);
82 printf(_("Check to see if your bug is already listed in the %sBug List%s on SourceForge. If it is, we already know about it and are trying to fix it."), '<a href="http://sourceforge.net/bugs/?group_id=311" target="_blank">', '</a>');
86 echo _("Try to make sure that you can repeat it. If the bug happens sporatically, try to document what you did when it happened. If it always occurs when you view a specific message, keep that message around so maybe we can see it.");
90 printf(_("If there were warnings displayed above, try to resolve them yourself. Read the guides in the %s directory where SquirrelMail was installed."), '<tt>doc/</tt>');
95 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.");
99 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.");
102 <form action
="../../src/compose.php" method
=post
>
103 <table align
="center" border
="0">
106 <?php
echo _("This bug involves"); ?
>: <select name
="send_to">
107 <option value
="squirrelmail-users@lists.sourceforge.net"><?php
108 echo _("the general program"); ?
></option
>
109 <option value
="squirrelmail-plugins@lists.sourceforge.net"><?php
110 echo _("a specific plugin"); ?
></option
>
117 echo addHidden("send_to_cc","");
118 echo addHidden("send_to_bcc","");
119 echo addHidden("subject","Bug Report");
120 echo addHidden("body",$body);
121 echo addSubmit(_("Start Bug Report Form"));
129 // special forms that allow searching for bugs in mailing list and bugtracker
130 echo html_tag('table',
132 html_tag('th', _("Search Mailing List Archives"), 'center', $color[0])
135 html_tag('td', add_gmane_form())
138 html_tag('td', ' <br />')
141 html_tag('th', _("Search SourceForge Bugtracker"), 'center', $color[0])
144 html_tag('td', add_sf_bug_form())
145 ), 'center', '', 'width="95%"');