From 9837b0a5afee61309027869b117a406defc2f437 Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 22 Sep 2002 11:09:19 +0000 Subject: [PATCH] Keep on going... rg=0 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3709 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- src/move_messages.php | 53 ++++++++++++++++++++++++++++++++++++++++++- src/search.php | 2 +- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/src/move_messages.php b/src/move_messages.php index f5acbb9c..d43c3b10 100644 --- a/src/move_messages.php +++ b/src/move_messages.php @@ -110,6 +110,57 @@ function attachSelectedMessages($msg, $imapConnection) { } + +/* get globals */ + +$username = $_SESSION['username']; +$key = $_COOKIE['key']; +$onetimepad = $_SESSION['onetimepad']; +$base_uri = $_SESSION['base_uri']; +$delimiter = $_SESSION['delimiter']; + +if (isset($_GET['mailbox'])) { + $mailbox = $_GET['mailbox']; +} +if (isset($_GET['startMessage'])) { + $startMessage = $_GET['startMessage']; +} +if (isset($_POST['moveButton'])) { + $moveButton = $_POST['moveButton']; +} +if (isset($_POST['msg'])) { + $msg = $_POST['msg']; +} +elseif (isset($_GET['msg'])) { + $msg = $_GET['msg']; +} +if (isset($_POST['expungeButton'])) { + $expungeButton = $_POST['expungeButton']; +} +if (isset($_POST['targetMailbox'])) { + $targetMailbox = $_POST['targetMailbox']; +} +if (isset($_SESSION['lastTargetMailbox'])) { + $lastTargetMailbox = $_SESSION['lastTargetMailbox']; +} +if (isset($_POST['expungeButton'])) { + $expungeButton = $_POST['expungeButton']; +} +if (isset($_POST['undeleteButton'])) { + $undeleteButton = $_POST['undeleteButton']; +} +if (isset($_POST['markRead'])) { + $markRead = $_POST['markRead']; +} +if (isset($_POST['markUnread'])) { + $markUnread = $_POST['markUnread']; +} +if (isset($_POST['attache'])) { + $attache = $_POST['attache']; +} + +/* end of get globals */ + $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $mbx_response=sqimap_mailbox_select($imapConnection, $mailbox); @@ -123,7 +174,7 @@ if (!isset($lastTargetMailbox)) { } if ($targetMailbox != $lastTargetMailbox) { $lastTargetMailbox = $targetMailbox; - session_register('lastTargetMailbox'); + sqsession_register($lastTargetMailbox, 'lastTargetMailbox'); } // expunge-on-demand if user isn't using move_to_trash or auto_expunge diff --git a/src/search.php b/src/search.php index 229eda97..34b1bc8b 100644 --- a/src/search.php +++ b/src/search.php @@ -401,7 +401,7 @@ if ($recent_count > 0) { if (isset($newsort)) { $sort = $newsort; - session_register('sort'); + sqsession_register($sort, 'sort'); } /********************************************************************* -- 2.25.1