Move sqm_array_merge to arrays.php and subsequently move inclusion of arrays.php...
[squirrelmail.git] / src / empty_trash.php
index a099d66782fca0c856efe635e59e7b823bdbb751..c467a8bf03a38cf6940d2e1beac43e7fe6d0d713 100644 (file)
@@ -23,14 +23,11 @@ require(SM_PATH . 'functions/tree.php');
 
 /* get those globals */
 
-sqgetGlobalVar('username', $username, SQ_SESSION);
-sqgetGlobalVar('key', $key, SQ_COOKIE);
 sqgetGlobalVar('delimiter', $delimiter, SQ_SESSION);
-sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION);
 
 /* finished globals */
 
-$imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
+$imap_stream = sqimap_login($username, false, $imapServerAddress, $imapPort, 0);
 
 $mailbox = $trash_folder;
 $boxes = sqimap_mailbox_list($imap_stream);
@@ -74,4 +71,4 @@ session_write_close();
 $location = get_location();
 header ("Location: $location/left_main.php");
 
-?>
\ No newline at end of file
+?>