whoops.. forgot to add these files
[squirrelmail.git] / src / folders_create.php
index 79b0224cbdaf13a0278265601101be0d90d5da24..d23b46f3b5296a973ec8c8f794e21715036063a2 100644 (file)
@@ -5,15 +5,10 @@
    include("../functions/imap.php");
 
    $imapConnection = loginToImapServer($username, $key, $imapServerAddress);
-
-   if ($subfolder == "INBOX")
-      fputs($imapConnection, "1 create \"user.$username.$folder_name\"\n");
-   else
-      fputs($imapConnection, "1 create \"user.$username.$subfolder.$folder_name\"\n");
-
+   fputs($imapConnection, "1 create \"$subfolder.$folder_name\"\n");
    fputs($imapConnection, "1 logout\n");
 
-   echo "<BR><BR><A HREF=\"folders.php\">Return</A>";
+   echo "<BR><BR><A HREF=\"webmail.php?right_frame=folders.php\" TARGET=_top>Return</A>";
 ?>