* a button to show the bug report mail message in order to actually
* send it.
*
- * Copyright (c) 1999-2003 The SquirrelMail development team
+ * Copyright (c) 1999-2004 The SquirrelMail development team
* Licensed under the GNU GPL. For full terms see the file COPYING.
*
* This is a standard Squirrelmail-1.2 API for plugins.
*
* $Id$
+ * @package plugins
+ * @subpackage bug_report
*/
+/**
+ * @ignore
+ */
define('SM_PATH','../../');
require_once(SM_PATH . 'include/validate.php');
+// loading form functions
+require_once(SM_PATH . 'functions/forms.php');
+
displayPageHeader($color, 'None');
return $str;
}
-$browser = get_browser();
+$browscap = ini_get('browscap');
+if(!empty($browscap)) {
+ $browser = get_browser();
+}
$body_top = "I subscribe to the squirrelmail-users mailing list.\n" .
" [ ] True - No need to CC me when replying\n" .
" [ ] False - Please CC me when replying\n" .
"(Optional) I got really bored and here's a fix:\n\n\n" .
"----------------------------------------------\n" .
"\nMy browser information:\n" .
- ' '.$_SERVER['HTTP_USER_AGENT'] . "\n" .
- " get_browser() information (List)\n" .
- Show_Array((array) $browser) .
- "\nMy web server information:\n" .
+ ' '.$_SERVER['HTTP_USER_AGENT'] . "\n" ;
+ if(isset($browser)) {
+ $body_top .= " get_browser() information (List)\n" .
+ Show_Array((array) $browser);
+ }
+ $body_top .= "\nMy web server information:\n" .
" PHP Version " . phpversion() . "\n" .
" PHP Extensions (List)\n" .
Show_Array(get_loaded_extensions()) .
array_shift($list);
array_shift($list);
$read = implode(' ', $list);
- $body .= " Cabailities: $read";
+ $body .= " Capabilities: $read";
fputs ($imap_stream, "a002 LOGOUT\r\n");
fclose($imap_stream);
} else {
?>
<br>
- <table width=95% align=center border=0 cellpadding=2 cellspacing=0><tr>
+ <table width="95%" align="center" border="0" cellpadding="2" cellspacing="0"><tr>
<?php echo html_tag('td',"<b>"._("Submit a Bug Report")."</b>",'center',$color[0]); ?>
</tr></table>
<?PHP echo $warning_html;
- echo "<p><font size=\"+1\">";
+ echo '<p><big>';
echo _("Before you send your bug report, please make sure to check this checklist for any common problems.");
- echo "</font></p>";
+ echo '</big></p>';
echo "<ul>";
echo "<li>";
echo "</li>\n";
echo "<li>";
- echo _("Check to see if you bug is already listed in the <a href=\"http://sourceforge.net/bugs/?group_id=311\">Bug List</a> on SourceForge. If it is, we already know about it and are trying to fix it.");
+ echo _("Check to see if your bug is already listed in the <a href=\"http://sourceforge.net/bugs/?group_id=311\">Bug List</a> on SourceForge. If it is, we already know about it and are trying to fix it.");
echo "</li>\n";
echo "<li>";
</tr>
<tr>
<td align=center>
- <input type="hidden" name="send_to_cc" value="">
- <input type="hidden" name="send_to_bcc" value="">
- <input type="hidden" name="subject" value="Bug Report">
- <input type="hidden" name="body" value="<?PHP echo $body ?>">
- <input type="submit" value="<?php echo _("Start Bug Report Form"); ?>">
+ <?php
+ echo addHidden("send_to_cc","");
+ echo addHidden("send_to_bcc","");
+ echo addHidden("subject","Bug Report");
+ echo addHidden("body",$body);
+ echo addSubmit(_("Start Bug Report Form"));
+ ?>
</td>
</tr>
</table>