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', '');
* The third prints the results of the IMAP command
* to options.php.
* by: Jason Munro jason@stdbev.com
+ *
+ * $Id$
+ *
*/
function get_caps($imap_stream) {
*
* Written by: Jason Munro
* jason@stdbev.com
+ *
+ * $Id$
+ *
*/
define('SM_PATH','../../');
$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 (
* 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');
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',