XHTML fixes
[squirrelmail.git] / plugins / spamcop / spamcop.php
index 7a69bca7673e7bc6bb0042aa855b47325246d94f..1485be76187dc3f6334f1e7e2bc6a49707a4c362 100644 (file)
@@ -1,14 +1,13 @@
 <?php
-   /** 
-    **  spamcop.php -- SpamCop plugin           
-    **
-    **  Copyright (c) 1999-2004 The SquirrelMail development team
-    **  Licensed under the GNU GPL. For full terms see the file COPYING.
-    **  
-    **  $Id$
-    * @package plugins
-    * @subpackage spamcop
-    **/
+/** 
+ * spamcop.php -- SpamCop plugin -- main page
+ *
+ * @copyright (c) 1999-2004 The SquirrelMail development team
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package plugins
+ * @subpackage spamcop
+ */
 
 /** @ignore */
 define('SM_PATH','../../');
@@ -19,6 +18,7 @@ require_once(SM_PATH . 'functions/imap.php');
 
 /**
  * Stores message in attachment directory, when email based reports are used
+ * @access private
  */
 function getMessage_RFC822_Attachment($message, $composeMessage, $passed_id, 
                                       $passed_ent_id='', $imapConnection) {
@@ -140,7 +140,7 @@ if ($js_web) {
 
 
 echo "<p>";
-echo _("Sending this spam report will give you back a reply with URLs that you can click on to properly report this spam message to the proper authorities. This is a free service.  By pressing the \"Send Spam Report\" button, you agree to follow SpamCop's rules/terms of service/etc.");
+echo _("Sending this spam report will give you back a reply with URLs that you can click on to properly report this spam message to the proper authorities. This is a free service. By pressing the \"Send Spam Report\" button, you agree to follow SpamCop's rules/terms of service/etc.");
 echo "</p>";
 
 ?>
@@ -148,33 +148,33 @@ echo "</p>";
 <table align="center" width="75%" border="0" cellpadding="0" cellspacing="0">
 <tr>
 <td align="left" valign="top">
-<?PHP if (isset($js_web) && $js_web) {
+<?php if (isset($js_web) && $js_web) {
   echo '<form method="post" action="javascript:return false">';
   echo '<input type="button" value="' . _("Close Window") . "\" onClick=\"window.close(); return true;\" />\n";
 } else {
    ?><form method="post" action="../../src/right_main.php">
-  <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>" />
-  <input type="hidden" name="startMessage" value="<?PHP echo htmlspecialchars($startMessage) ?>" />
-<?PHP
+  <input type="hidden" name="mailbox" value="<?php echo htmlspecialchars($mailbox) ?>" />
+  <input type="hidden" name="startMessage" value="<?php echo htmlspecialchars($startMessage) ?>" />
+<?php
   echo '<input type="submit" value="' . _("Cancel / Done") . "\" />";
 }
   ?></form>
 </td>
 <td align="right" valign="top">
-<?PHP if ($spamcop_method == 'thorough_email' ||
+<?php if ($spamcop_method == 'thorough_email' ||
           $spamcop_method == 'quick_email') {
    if ($spamcop_method == 'thorough_email')
       $report_email = 'submit.' . $spamcop_id . '@spam.spamcop.net';
    else
       $report_email = 'quick.' . $spamcop_id . '@spam.spamcop.net';
    $form_action = SM_PATH . 'src/compose.php';
-?>  <form method="post" action="<?PHP echo $form_action?>">
-  <input type="hidden" name="mailbox" value="<?PHP echo htmlspecialchars($mailbox) ?>" />
-  <input type="hidden" name="spamcop_is_composing" value="<?PHP echo htmlspecialchars($passed_id) ?>" />
-  <input type="hidden" name="send_to" value="<?PHP echo $report_email?>" />
+?>  <form method="post" action="<?php echo $form_action?>">
+  <input type="hidden" name="mailbox" value="<?php echo htmlspecialchars($mailbox) ?>" />
+  <input type="hidden" name="spamcop_is_composing" value="<?php echo htmlspecialchars($passed_id) ?>" />
+  <input type="hidden" name="send_to" value="<?php echo htmlspecialchars($report_email)?>" />
   <input type="hidden" name="subject" value="reply anyway" />
   <input type="hidden" name="identity" value="0" />
-  <input type="hidden" name="session" value="<?PHP echo $session?>" />
+  <input type="hidden" name="session" value="<?php echo $session?>" />
 <?php
   echo '<input type="submit" name="send" value="' . _("Send Spam Report") . "\" />\n";
 } else {
@@ -198,8 +198,8 @@ echo "</p>";
    } ?>
   <input type="hidden" name="action" value="submit" />
   <input type="hidden" name="oldverbose" value="1" />
-  <input type="hidden" name="code" value="<?PHP echo $spamcop_id ?>" />
-  <input type="hidden" name="spam" value="<?PHP echo htmlspecialchars($spam_message); ?>" />
+  <input type="hidden" name="code" value="<?php echo htmlspecialchars($spamcop_id) ?>" />
+  <input type="hidden" name="spam" value="<?php echo htmlspecialchars($spam_message); ?>" />
     <?php
        echo '<input type="submit" name="x1" value="' . _("Send Spam Report") . "\" />\n";
     }