From 2e716bd95b4884ddfb10c4ad27782d9147733ecf Mon Sep 17 00:00:00 2001 From: kink Date: Thu, 26 Sep 2002 08:53:01 +0000 Subject: [PATCH] Rollback previous commit... seems move complicated git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3745 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/mailbox_display.php | 9 +++++---- src/move_messages.php | 11 +++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/functions/mailbox_display.php b/functions/mailbox_display.php index b007c0ac..fa5c3b6a 100644 --- a/functions/mailbox_display.php +++ b/functions/mailbox_display.php @@ -677,9 +677,11 @@ function mail_message_listing_beginning ($imapConnection, $source_url = $PHP_SELF; } - $moveURL = 'move_messages.php'; - $moveFields = ''. - ''; + if (!isset($msg)) { + $msg = ''; + } + $moveURL = "move_messages.php?msg=$msg&mailbox=$urlMailbox" + . "&startMessage=$start_msg"; /* * This is the beginning of the message list table. @@ -687,7 +689,6 @@ function mail_message_listing_beginning ($imapConnection, */ echo "
\n" - . $moveFields . html_tag( 'table' ,'' , '', '', 'border="0" width="100%" cellpadding="1" cellspacing="0"' ) . html_tag( 'tr', html_tag( 'td' , diff --git a/src/move_messages.php b/src/move_messages.php index 65df6178..d43c3b10 100644 --- a/src/move_messages.php +++ b/src/move_messages.php @@ -119,11 +119,11 @@ $onetimepad = $_SESSION['onetimepad']; $base_uri = $_SESSION['base_uri']; $delimiter = $_SESSION['delimiter']; -if (isset($_POST['mailbox'])) { - $mailbox = $_POST['mailbox']; +if (isset($_GET['mailbox'])) { + $mailbox = $_GET['mailbox']; } -if (isset($_POST['startMessage'])) { - $startMessage = $_POST['startMessage']; +if (isset($_GET['startMessage'])) { + $startMessage = $_GET['startMessage']; } if (isset($_POST['moveButton'])) { $moveButton = $_POST['moveButton']; @@ -131,6 +131,9 @@ if (isset($_POST['moveButton'])) { if (isset($_POST['msg'])) { $msg = $_POST['msg']; } +elseif (isset($_GET['msg'])) { + $msg = $_GET['msg']; +} if (isset($_POST['expungeButton'])) { $expungeButton = $_POST['expungeButton']; } -- 2.25.1