From 6a85a764b1f36c8689597cf67d6f7ce71a2c8e81 Mon Sep 17 00:00:00 2001 From: kink Date: Sun, 22 Sep 2002 11:20:50 +0000 Subject: [PATCH] rg=0 git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3710 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- plugins/fortune/setup.php | 3 +-- plugins/info/functions.php | 3 +++ plugins/info/options.php | 26 ++++++++++++++++++++++++++ plugins/info/setup.php | 4 +++- plugins/listcommands/mailout.php | 7 +++++++ 5 files changed, 40 insertions(+), 3 deletions(-) diff --git a/plugins/fortune/setup.php b/plugins/fortune/setup.php index a2bedfbb..d3073e1a 100644 --- a/plugins/fortune/setup.php +++ b/plugins/fortune/setup.php @@ -62,9 +62,8 @@ function fortune_options() { function fortune_save() { global $username,$data_dir; - global $fortune_fortune_visible; - if (isset($fortune_fortune_visible)) { + if (isset($_POST['fortune_fortune_visible'])) { setPref($data_dir, $username, 'fortune_visible', '1'); } else { setPref($data_dir, $username, 'fortune_visible', ''); diff --git a/plugins/info/functions.php b/plugins/info/functions.php index 92f666dc..40a0a69d 100644 --- a/plugins/info/functions.php +++ b/plugins/info/functions.php @@ -10,6 +10,9 @@ * The third prints the results of the IMAP command * to options.php. * by: Jason Munro jason@stdbev.com + * + * $Id$ + * */ function get_caps($imap_stream) { diff --git a/plugins/info/options.php b/plugins/info/options.php index 46b8bedb..48427e94 100644 --- a/plugins/info/options.php +++ b/plugins/info/options.php @@ -8,6 +8,9 @@ * * Written by: Jason Munro * jason@stdbev.com + * + * $Id$ + * */ define('SM_PATH','../../'); @@ -22,6 +25,29 @@ global $username, $color, $folder_prefix, $default_charset; $default_charset = strtoupper($default_charset); displayPageHeader($color, 'None'); $mailbox = 'INBOX'; + +/* GLOBALS */ +$username = $_SESSION['username']; +$key = $_COOKIE['key']; +$onetimepad = $_SESSION['onetimepad']; + +if(isset($_POST['submit'])) { + $submit = $_POST['submit']; +} + +for($i = 0; $i <= 9; $i++){ + if(isset($_POST["CHECK_TEST_$i"])) { + $var = "CHECK_TEST_$i"; + $$var = $_POST["CHECK_TEST_$i"]; + } + if(isset($_POST["TEST_$i"])) { + $var = "TEST_$i"; + $$var = $_POST["TEST_$i"]; + } +} + +/* END GLOBALS */ + $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0); $caps_array = get_caps($imap_stream); $list = array ( diff --git a/plugins/info/setup.php b/plugins/info/setup.php index 6d757c45..f31e03ef 100644 --- a/plugins/info/setup.php +++ b/plugins/info/setup.php @@ -5,7 +5,9 @@ * Licensed under the GNU GPL. For full terms see the file COPYING. * * by: Jason Munro jason@stdbev.com - * + * + * $Id$ + * */ require_once (SM_PATH . 'plugins/info/functions.php'); diff --git a/plugins/listcommands/mailout.php b/plugins/listcommands/mailout.php index bf2b51b1..7e44bdd7 100644 --- a/plugins/listcommands/mailout.php +++ b/plugins/listcommands/mailout.php @@ -18,6 +18,13 @@ include_once(SM_PATH . 'functions/html.php'); displayPageHeader($color, $mailbox); +/* get globals */ +$mailbox = $_GET['mailbox']; +$send_to = $_GET['send_to']; +$subject = $_GET['subject']; +$body = $_GET['body']; +$action = $_GET['action']; + echo html_tag('p', '', 'left' ) . html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" . html_tag( 'tr', -- 2.25.1