Removed body formatting when saving as a draft. This is OK with IMAP but
[squirrelmail.git] / src / empty_trash.php
index d46280142f853dbe3fbf1acea732e481517396de..279af75eaac657ce58fdcb86035153e5f5b4f3ac 100644 (file)
     **  $Id$
     **/
 
-   session_start();
-
-   include("../functions/strings.php");
-   include("../config/config.php");
-   include("../functions/page_header.php");
-   include("../functions/display_messages.php");
-   include("../functions/imap.php");
-   if (!function_exists("ary_sort"))
-      include("../functions/array.php");
-
-   if (!isset($tree_php))
-      include("../functions/tree.php");
-
-   include("../src/load_prefs.php");
+   require_once('../src/validate.php');
+   require_once('../functions/display_messages.php');
+   require_once('../functions/imap.php');
+   require_once('../functions/array.php');
+   require_once('../functions/tree.php');
 
    $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 
@@ -63,4 +54,4 @@
    header ("Location: $location/left_main.php");
 
    sqimap_logout($imap_stream);
-?>
+?>
\ No newline at end of file