Removed a lot of the warnings generated when PHP has all warnings enabled.
[squirrelmail.git] / src / folders_create.php
index 7d090337a16c13fae7c8c10b7206815a4278a07f..3bbe0e6667d35a7a6187177d8a0043c9d0c1bdcf 100644 (file)
@@ -7,6 +7,8 @@
     **
     **  Creates folders on the IMAP server. 
     **  Called from folders.php
+    **
+    **  $Id$
     **/
 
    session_start();
@@ -29,6 +31,7 @@
 
    if (strpos($folder_name, "\"") || strpos($folder_name, "\\") ||
        strpos($folder_name, "'") || strpos($folder_name, "$dm")) {
+               print "<html><body bgcolor=$color[4]>";
       plain_error_message(_("Illegal folder name.  Please select a different name.")."<BR><A HREF=\"../src/folders.php\">"._("Click here to go back")."</A>.", $color);
       sqimap_logout($imapConnection);
       exit;
    $location = get_location();
    header ("Location: $location/folders.php?success=create");
    sqimap_logout($imapConnection);
-   /*   
-      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>";
-   */
 ?>