- fputs($imapConnection, "1 logout\n");
-
-// if ($auto_forward == true) {
-// header ("Location: webmail.php?right_frame=folders.php");
-// } else {
- echo "<html><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
- displayPageHeader($color, "None");
- echo "<BR><BR><BR><CENTER><B>";
- echo _("Folder Created!");
- echo "</B><BR><BR>";
- echo _("The folder has been successfully created.");
- echo "<BR><A HREF=\"webmail.php?right_frame=folders.php\" TARGET=_top>";
- echo _("Click here");
- echo "</A> ";
- echo _("to continue.");
- echo "</CENTER>";
- echo "</BODY></HTML>";
-// }
+
+ $location = get_location();
+ header ("Location: $location/folders.php?success=create");
+ sqimap_logout($imapConnection);