made more tolerant to malformed from field in message header
[squirrelmail.git] / src / folders_rename_getname.php
index 087391bc130c0d2223f394679a07aeb7742cb0e9..0af0f529c1873eefa18ca0c4901c14081f2b6e96 100644 (file)
     **  $Id$
     **/
 
-   session_start();
-
-   if (!isset($strings_php))
-      include("../functions/strings.php");
-   if (!isset($config_php))
-      include("../config/config.php");
-   if (!isset($page_header_php))
-      include("../functions/page_header.php");
-   if (!isset($imap_php))
-      include("../functions/imap.php");
-
-   include("../src/load_prefs.php");
+   require_once('../src/validate.php');
+   require_once('../functions/imap.php');
 
    $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
@@ -40,8 +30,6 @@
       $old_parent = "";
    }
 
-   $old_name = sqStripSlashes($old_name);
-
    displayPageHeader($color, "None");
    echo "<br><TABLE align=center border=0 WIDTH=95% COLS=1>";
    echo "<TR><TD BGCOLOR=\"$color[0]\" ALIGN=CENTER><B>";
@@ -61,6 +49,4 @@
 
    /** Log out this session **/
    sqimap_logout($imapConnection);
-?>
-
-
+?>
\ No newline at end of file