Fixed options_display to use functions/options.
[squirrelmail.git] / src / folders_rename_getname.php
index ca143f9b7fac91115e2f5f29b659d7fb79bfca55..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);
 
@@ -59,6 +49,4 @@
 
    /** Log out this session **/
    sqimap_logout($imapConnection);
-?>
-
-
+?>
\ No newline at end of file