Removed the count_chars funtion (not in use, and exists in PHP4.0b4)
[squirrelmail.git] / src / folders_create.php
index 3c95663b035ad921f056efc773dad2f6c0aa81a8..e7e55049c5bf5a3fc2cea15334e8fd7b5af736c5 100644 (file)
@@ -1,13 +1,18 @@
 <?
-   include("../config/config.php");
-   include("../functions/strings.php");
-   include("../functions/page_header.php");
-   include("../functions/imap.php");
-   include("../functions/display_messages.php");
+   if (!isset($config_php))
+      include("../config/config.php");
+   if (!isset($strings_php))
+      include("../functions/strings.php");
+   if (!isset($page_header_php))
+      include("../functions/page_header.php");
+   if (!isset($imap_php))
+      include("../functions/imap.php");
+   if (!isset($display_messages_php))
+      include("../functions/display_messages.php");
 
    include("../src/load_prefs.php");
 
-   $imapConnection = sqimap_login($username, $key, $imapServerAddress, 0);
+   $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
    $dm = sqimap_get_delimiter($imapConnection);
 
    if (strpos($folder_name, "\"") || strpos($folder_name, ".") ||
@@ -32,7 +37,6 @@
 //   } else {
       echo "<html><BODY TEXT=\"$color[8]\" BGCOLOR=\"$color[4]\" LINK=\"$color[7]\" VLINK=\"$color[7]\" ALINK=\"$color[7]\">\n";
       displayPageHeader($color, "None");
-      echo "<FONT FACE=\"Arial,Helvetica\">";
       echo "<BR><BR><BR><CENTER><B>";
       echo _("Folder Created!");
       echo "</B><BR><BR>";
@@ -41,7 +45,7 @@
       echo _("Click here");
       echo "</A> ";
       echo _("to continue.");
-      echo "</CENTER></FONT>";
+      echo "</CENTER>";
       echo "</BODY></HTML>";
 //   }
 ?>