X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_text.php;h=0aa24e99924e7da7d87f50c6ca6ed61f53627929;hb=787f3030091d4946466817cfcb6a50ab9925df4c;hp=7e856659dd3b0338e1d754cf14de29db40534338;hpb=08185f2a7631c3a12cb1ac085fec3be471b56b00;p=squirrelmail.git diff --git a/src/view_text.php b/src/view_text.php index 7e856659..0aa24e99 100644 --- a/src/view_text.php +++ b/src/view_text.php @@ -3,7 +3,7 @@ /** * view_text.php -- Displays the main frameset * - * Copyright (c) 1999-2002 The SquirrelMail development team + * Copyright (c) 1999-2003 The SquirrelMail development team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Who knows what this file does. However PUT IT HERE DID NOT PUT @@ -22,11 +22,26 @@ require_once(SM_PATH . 'functions/imap.php'); require_once(SM_PATH . 'functions/mime.php'); require_once(SM_PATH . 'functions/html.php'); -$mailbox = urldecode($mailbox); -if (!isset($passed_ent_id)) { +$mailbox = urldecode($_GET['mailbox']); +if (!isset($_GET['passed_ent_id'])) { $passed_ent_id = ''; +} else { + $passed_ent_id = $_GET['passed_ent_id']; +} +$passed_id = $_GET['passed_id']; +if (isset($_GET['ent_id'])) { + $ent_id = $_GET['ent_id']; +} else { + $ent_id = ''; } +$username = $_SESSION['username']; +$key = $_COOKIE['key']; +$delimiter = $_SESSION['delimiter']; +$onetimepad = $_SESSION['onetimepad']; +$QUERY_STRING = $_SERVER['QUERY_STRING']; +sqextractGlobalVar('messages'); + $imapConnection = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $mbx_response = sqimap_mailbox_select($imapConnection, $mailbox);