Minor clean and a string unified with STABLE
[squirrelmail.git] / plugins / bug_report / bug_report.php
CommitLineData
15e6162e 1<?php
2
3/**
4 * bug_report.php
5 *
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
9 * send it.
10 *
82d304a0 11 * Copyright (c) 1999-2004 The SquirrelMail development team
15e6162e 12 * Licensed under the GNU GPL. For full terms see the file COPYING.
13 *
14 * This is a standard Squirrelmail-1.2 API for plugins.
15 *
2a880038 16 * @version $Id$
ea5f4b8e 17 * @package plugins
18 * @subpackage bug_report
15e6162e 19 */
d79e01f5 20
ea5f4b8e 21/**
22 * @ignore
23 */
8d6a115b 24define('SM_PATH','../../');
d79e01f5 25
04f6008a 26require_once(SM_PATH . 'include/validate.php');
27
42a73e49 28// loading form functions
29require_once(SM_PATH . 'functions/forms.php');
30
0b0e96c5 31displayPageHeader($color, 'None');
d79e01f5 32
595848f9 33include_once(SM_PATH . 'plugins/bug_report/system_specs.php');
c64dbf73 34include_once(SM_PATH . 'plugins/bug_report/functions.php');
595848f9 35global $body;
d3190325 36
07aeb697 37$body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
d79e01f5 38 " [ ] True - No need to CC me when replying\n" .
39 " [ ] False - Please CC me when replying\n" .
40 "\n" .
41 "This bug occurs when I ...\n" .
42 " ... view a particular message\n" .
43 " ... use a specific plugin/function\n" .
44 " ... try to do/view/use ....\n" .
45 "\n\n\n" .
46 "The description of the bug:\n\n\n" .
47 "I can reproduce the bug by:\n\n\n" .
48 "(Optional) I got bored and found the bug occurs in:\n\n\n" .
49 "(Optional) I got really bored and here's a fix:\n\n\n" .
595848f9 50 "----------------------------------------------\n\n";
d79e01f5 51
595848f9 52$body = htmlspecialchars($body_top) . $body;
15e6162e 53
54?>
74091b64 55 <br />
42a73e49 56 <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0"><tr>
3ee2d2ae 57 <?php echo html_tag('td','<b>'._("Submit a Bug Report").'</b>','center',$color[0]); ?>
876efbe1 58 </tr></table>
59
3ee2d2ae 60<?php
61 echo $warning_html;
876efbe1 62
42a73e49 63 echo '<p><big>';
876efbe1 64 echo _("Before you send your bug report, please make sure to check this checklist for any common problems.");
f03c58b6 65 echo "</big></p>\n";
876efbe1 66
3ee2d2ae 67 echo '<ul>';
68 echo '<li>';
8fb09644 69 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);
876efbe1 70 echo "</li>\n";
71
3ee2d2ae 72 echo '<li>';
8fb09644 73 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>');
876efbe1 74 echo "</li>\n";
75
3ee2d2ae 76 echo '<li>';
876efbe1 77 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.");
78 echo "</li>\n";
79
3ee2d2ae 80 echo '<li>';
74091b64 81 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>');
876efbe1 82 echo "</li>\n";
83 echo "</ul>\n";
84
3ee2d2ae 85 echo '<p>';
876efbe1 86 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.");
87 echo "</p>\n";
88
3ee2d2ae 89 echo '<p>';
876efbe1 90 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.");
91 echo "</p>\n";
92?>
15e6162e 93 <form action="../../src/compose.php" method=post>
f03c58b6 94 <table align="center" border="0">
15e6162e 95 <tr>
96 <td>
876efbe1 97 <?php echo _("This bug involves"); ?>: <select name="send_to">
98 <option value="squirrelmail-users@lists.sourceforge.net">
99 <?php echo _("the general program"); ?></option>
100 <option value="squirrelmail-plugins@lists.sourceforge.net">
101 <?php echo _("a specific plugin"); ?></option>
15e6162e 102 </select>
103 </td>
104 </tr>
105 <tr>
f03c58b6 106 <td align="center">
42a73e49 107 <?php
108 echo addHidden("send_to_cc","");
109 echo addHidden("send_to_bcc","");
110 echo addHidden("subject","Bug Report");
111 echo addHidden("body",$body);
112 echo addSubmit(_("Start Bug Report Form"));
113 ?>
15e6162e 114 </td>
115 </tr>
116 </table>
117 </form>
c64dbf73 118 <br />
119 <?php
120 // special forms that allow searching for bugs in mailing list and bugtracker
121 echo html_tag('table',
122 html_tag('tr',
123 html_tag('th',_("Search Mailing List Archives"),'center',$color[0])
124 ) .
125 html_tag('tr',
126 html_tag('td', add_gmane_form())
127 ) .
128 html_tag('tr',
129 html_tag('td', '&nbsp;<br />')
130 ) .
131 html_tag('tr',
132 html_tag('th',_("Search SourceForge Bugtracker"),'center',$color[0])
133 ) .
134 html_tag('tr',
135 html_tag('td', add_sf_bug_form())
136 )
137 ,'center','','width="95%"');
138 ?>
dcc1cc82 139</body></html>