Move developer documentation to doc/Development
[squirrelmail.git] / plugins / info / options.php
index 3295c1c7e23073f4e82a6f8ede705fd44415659a..421a16ee70c8fe34489dce5f8a794571bcf3b4ce 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 /**
- * options page for IMAP info plugin 
- * 
+ * options page for IMAP info plugin
+ *
  * This is where it all happens :)
- * 
- * @copyright (c) 1999-2004 The SquirrelMail Project Team
+ *
+ * @copyright (c) 1999-2005 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @author Jason Munro jason@stdbev.com
@@ -148,12 +148,12 @@ foreach($type as $index=>$value) {
          addInput($index, $value, 60);
 }
 
-echo "</td></tr></table></center><br>\n".
+echo "</td></tr></table></center><br />\n".
      '<center>'.
      addSubmit('submit','submit').
      addSubmit('clear','submit').
      addSubmit('default','submit').
-     "</center><br></form>\n";
+     "</center><br /></form>\n";
 
 $tests = array();
 
@@ -162,24 +162,25 @@ if ($submit == 'submit') {
         $check = "CHECK_".$index;
         if (isset($$check)) {
             $type[$index] = $$index;
-            array_push($tests, $index); 
+            array_push($tests, $index);
         }
     }
     for ($i=0;$i<count($tests);$i++) {
-        $response = imap_test($imap_stream, $type[$tests[$i]]);
         echo '<center><table width="95%" border="0" bgcolor="'.$color[4]."\">\n".
              '<tr><td><b>'.$tests[$i]."</b></td></tr>\n".
              '<tr><td><small><b><font color="'.$color[7].'">'.
-             _("Request:")."</font></b></small></td></tr>\n".
-             '<tr><td><small><b><font color="'.$color[7].'">'.
+            _("Request:")."</font></b></small></td></tr>\n";
+        // imap_test function outputs imap command
+        $response = imap_test($imap_stream, $type[$tests[$i]]);
+        echo '<tr><td><small><b><font color="'.$color[7].'">'.
              _("Response:")."</font></b></small></td></tr>\n".
              '<tr><td>';
         print_response($response);
         echo "</td></tr></table></center><br />\n";
     }
 }
-    echo '</td></tr></table></center>';
-    sqimap_logout($imap_stream);
+echo '</td></tr></table></center>';
+sqimap_logout($imap_stream);
 
 /**
  * Optional hook in info plugin
@@ -188,4 +189,4 @@ if ($submit == 'submit') {
  */
 do_hook('info_bottom');
 ?>
-</body></html>
+</body></html>
\ No newline at end of file