added display of plugin versions to bug report.
[squirrelmail.git] / plugins / bug_report / bug_report.php
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 *
11 * Copyright (c) 1999-2005 The SquirrelMail Project Team
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 *
16 * @version $Id$
17 * @package plugins
18 * @subpackage bug_report
19 */
20
21 /**
22 * @ignore
23 */
24 define('SM_PATH','../../');
25
26 require_once(SM_PATH . 'include/validate.php');
27
28 // loading form functions
29 require_once(SM_PATH . 'functions/forms.php');
30
31 displayPageHeader($color, 'None');
32
33 include_once(SM_PATH . 'plugins/bug_report/system_specs.php');
34 include_once(SM_PATH . 'plugins/bug_report/functions.php');
35 global $body;
36
37 $body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
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" .
50 "----------------------------------------------\n\n";
51
52 $body = htmlspecialchars($body_top) . $body;
53
54 ?>
55 <br />
56 <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0"><tr>
57 <?php echo html_tag('td','<b>'._("Submit a Bug Report").'</b>','center',$color[0]); ?>
58 </tr></table>
59
60 <?php
61 echo $warning_html;
62
63 echo '<p><a href="show_system_specs.php" target="_blank">';
64 echo _("Show System Specifications");
65 echo "</a></p>\n\n";
66 echo '<p><big>';
67 echo _("Before you send your bug report, please make sure to check this checklist for any common problems.");
68 echo "</big></p>\n";
69
70 echo '<ul>';
71 echo '<li>';
72 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);
73 echo "</li>\n";
74
75 echo '<li>';
76 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>');
77 echo "</li>\n";
78
79 echo '<li>';
80 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.");
81 echo "</li>\n";
82
83 echo '<li>';
84 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>');
85 echo "</li>\n";
86 echo "</ul>\n";
87
88 echo '<p>';
89 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.");
90 echo "</p>\n";
91
92 echo '<p>';
93 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.");
94 echo "</p>\n";
95 ?>
96 <form action="../../src/compose.php" method=post>
97 <table align="center" border="0">
98 <tr>
99 <td>
100 <?php echo _("This bug involves"); ?>: <select name="send_to">
101 <option value="squirrelmail-users@lists.sourceforge.net"><?php
102 echo _("the general program"); ?></option>
103 <option value="squirrelmail-plugins@lists.sourceforge.net"><?php
104 echo _("a specific plugin"); ?></option>
105 </select>
106 </td>
107 </tr>
108 <tr>
109 <td align="center">
110 <?php
111 echo addHidden("send_to_cc","");
112 echo addHidden("send_to_bcc","");
113 echo addHidden("subject","Bug Report");
114 echo addHidden("body",$body);
115 echo addSubmit(_("Start Bug Report Form"));
116 ?>
117 </td>
118 </tr>
119 </table>
120 </form>
121 <br />
122 <?php
123 // special forms that allow searching for bugs in mailing list and bugtracker
124 echo html_tag('table',
125 html_tag('tr',
126 html_tag('th', _("Search Mailing List Archives"), 'center', $color[0])
127 ) .
128 html_tag('tr',
129 html_tag('td', add_gmane_form())
130 ) .
131 html_tag('tr',
132 html_tag('td', '&nbsp;<br />')
133 ) .
134 html_tag('tr',
135 html_tag('th', _("Search SourceForge Bugtracker"), 'center', $color[0])
136 ) .
137 html_tag('tr',
138 html_tag('td', add_sf_bug_form())
139 ), 'center', '', 'width="95%"');
140 ?>
141 </body>
142 </html>