fixing some strings that can't be extracted with gettext 0.10.40.
[squirrelmail.git] / plugins / bug_report / bug_report.php
index 344b093b1adecb7d3e73019ea777ae428e9ca406..9fc9c32e7407b4f550bdb66277adeefdd886ee62 100644 (file)
@@ -8,7 +8,7 @@
  * 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.
@@ -25,6 +25,9 @@ define('SM_PATH','../../');
 
 require_once(SM_PATH . 'include/validate.php');
 
+// loading form functions
+require_once(SM_PATH . 'functions/forms.php');
+
 displayPageHeader($color, 'None');
 
 
@@ -99,7 +102,7 @@ if ($imap_stream) {
     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 {
@@ -136,15 +139,15 @@ $body = htmlspecialchars($body_top . $body);
 
 ?>
    <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>";
@@ -187,14 +190,15 @@ $body = htmlspecialchars($body_top . $body);
    </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>
    </form>
-<?php noframes_bottom(); ?>
-
+</body></html>