moved imap_test function to right place
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Dec 2004 11:25:23 +0000 (11:25 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Tue, 28 Dec 2004 11:25:23 +0000 (11:25 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@8482 7612ce4b-ef26-0410-bec9-ea0150e637f0

plugins/info/options.php

index 6a8db4ae04191e8fcfaee769d0ee43e3f5d5f902..421a16ee70c8fe34489dce5f8a794571bcf3b4ce 100644 (file)
@@ -166,20 +166,21 @@ if ($submit == 'submit') {
         }
     }
     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