Moving HTML out of strings and updating some tags to XHTML
[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');
34global $body;
d3190325 35
07aeb697 36$body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
d79e01f5 37 " [ ] True - No need to CC me when replying\n" .
38 " [ ] False - Please CC me when replying\n" .
39 "\n" .
40 "This bug occurs when I ...\n" .
41 " ... view a particular message\n" .
42 " ... use a specific plugin/function\n" .
43 " ... try to do/view/use ....\n" .
44 "\n\n\n" .
45 "The description of the bug:\n\n\n" .
46 "I can reproduce the bug by:\n\n\n" .
47 "(Optional) I got bored and found the bug occurs in:\n\n\n" .
48 "(Optional) I got really bored and here's a fix:\n\n\n" .
595848f9 49 "----------------------------------------------\n\n";
d79e01f5 50
595848f9 51$body = htmlspecialchars($body_top) . $body;
15e6162e 52
53?>
74091b64 54 <br />
42a73e49 55 <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0"><tr>
876efbe1 56 <?php echo html_tag('td',"<b>"._("Submit a Bug Report")."</b>",'center',$color[0]); ?>
57 </tr></table>
58
59 <?PHP echo $warning_html;
60
42a73e49 61 echo '<p><big>';
876efbe1 62 echo _("Before you send your bug report, please make sure to check this checklist for any common problems.");
f03c58b6 63 echo "</big></p>\n";
876efbe1 64
65 echo "<ul>";
66 echo "<li>";
74091b64 67 printf(_("Make sure that you are running the most recent copy of %s.") . '<a href="http://www.squirrelmail.org/">SquirrelMail</a>');
68 printf(_("You are currently using version %s."),$version);
876efbe1 69 echo "</li>\n";
70
71 echo "<li>";
74091b64 72 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">', '</a>');
876efbe1 73 echo "</li>\n";
74
75 echo "<li>";
76 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.");
77 echo "</li>\n";
78
79 echo "<li>";
74091b64 80 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 81 echo "</li>\n";
82 echo "</ul>\n";
83
84 echo "<p>";
85 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.");
86 echo "</p>\n";
87
88 echo "<p>";
89 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.");
90 echo "</p>\n";
91?>
15e6162e 92 <form action="../../src/compose.php" method=post>
f03c58b6 93 <table align="center" border="0">
15e6162e 94 <tr>
95 <td>
876efbe1 96 <?php echo _("This bug involves"); ?>: <select name="send_to">
97 <option value="squirrelmail-users@lists.sourceforge.net">
98 <?php echo _("the general program"); ?></option>
99 <option value="squirrelmail-plugins@lists.sourceforge.net">
100 <?php echo _("a specific plugin"); ?></option>
15e6162e 101 </select>
102 </td>
103 </tr>
104 <tr>
f03c58b6 105 <td align="center">
42a73e49 106 <?php
107 echo addHidden("send_to_cc","");
108 echo addHidden("send_to_bcc","");
109 echo addHidden("subject","Bug Report");
110 echo addHidden("body",$body);
111 echo addSubmit(_("Start Bug Report Form"));
112 ?>
15e6162e 113 </td>
114 </tr>
115 </table>
116 </form>
dcc1cc82 117</body></html>