Thijs Kinkhorst пре 23 година
родитељ
комит
771ff7295f

+ 1 - 2
plugins/fortune/setup.php

@@ -62,9 +62,8 @@ function fortune_options() {
 
 
 function fortune_save() {
 function fortune_save() {
     global $username,$data_dir;
     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');
         setPref($data_dir, $username, 'fortune_visible', '1');
     } else {
     } else {
         setPref($data_dir, $username, 'fortune_visible', '');
         setPref($data_dir, $username, 'fortune_visible', '');

+ 3 - 0
plugins/info/functions.php

@@ -10,6 +10,9 @@
  * The third prints the results of the IMAP command
  * The third prints the results of the IMAP command
  * to options.php.
  * to options.php.
  * by: Jason Munro jason@stdbev.com
  * by: Jason Munro jason@stdbev.com
+ *
+ * $Id$ 
+ *
  */
  */
 
 
 function get_caps($imap_stream) {
 function get_caps($imap_stream) {

+ 26 - 0
plugins/info/options.php

@@ -8,6 +8,9 @@
  *
  *
  * Written by: Jason Munro 
  * Written by: Jason Munro 
  * jason@stdbev.com
  * jason@stdbev.com
+ * 
+ * $Id$
+ * 
  */
  */
 
 
 define('SM_PATH','../../');
 define('SM_PATH','../../');
@@ -22,6 +25,29 @@ global $username, $color, $folder_prefix, $default_charset;
 $default_charset = strtoupper($default_charset);
 $default_charset = strtoupper($default_charset);
 displayPageHeader($color, 'None');
 displayPageHeader($color, 'None');
 $mailbox = 'INBOX';
 $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);
 $imap_stream = sqimap_login($username, $key, $imapServerAddress, $imapPort, 0);
 $caps_array = get_caps($imap_stream);
 $caps_array = get_caps($imap_stream);
 $list = array (
 $list = array (

+ 3 - 1
plugins/info/setup.php

@@ -5,7 +5,9 @@
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  * Licensed under the GNU GPL. For full terms see the file COPYING.
  *   
  *   
  * by: Jason Munro jason@stdbev.com
  * by: Jason Munro jason@stdbev.com
- *
+ * 
+ * $Id$
+ * 
  */
  */
 
 
 require_once (SM_PATH . 'plugins/info/functions.php');
 require_once (SM_PATH . 'plugins/info/functions.php');

+ 7 - 0
plugins/listcommands/mailout.php

@@ -18,6 +18,13 @@ include_once(SM_PATH . 'functions/html.php');
 
 
 displayPageHeader($color, $mailbox);
 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' ) .
 echo html_tag('p', '', 'left' ) .
 html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" .
 html_tag( 'table', '', 'center', $color[0], 'border="0" width="75%"' ) . "\n" .
     html_tag( 'tr',
     html_tag( 'tr',