if $key is set to false, sqimap_login() function will use sqauth_read_password()
[squirrelmail.git] / plugins / message_details / setup.php
index b7ec6ae5113fcc44bce99ca5308600dbeb5e8f5c..9aac54b7ed62de6b0d677096eb311abae6a56c35 100644 (file)
@@ -1,12 +1,13 @@
 <?php
+
 /**
- * Message Details plugin - main setup script  
+ * Message Details plugin - main setup script
  *
  * Plugin to view the RFC822 raw message output and the bodystructure of a message
  *
  * @author Marc Groot Koerkamp
- * @copyright Copyright &copy; 2002 Marc Groot Koerkamp, The Netherlands
- * @copyright Copyright &copy; 2004 The SquirrelMail Project Team
+ * @copyright &copy; 2002 Marc Groot Koerkamp, The Netherlands
+ * @copyright &copy; 2002-2006 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package plugins
@@ -15,6 +16,7 @@
 
 /**
  * Initialize the plugin
+ * @access private
  */
 function squirrelmail_plugin_init_message_details()
 {
@@ -28,7 +30,7 @@ function squirrelmail_plugin_init_message_details()
  * @access private
  */
 function show_message_details() {
-    global $passed_id, $mailbox, $ent_num, $color,
+    global $passed_id, $mailbox, $ent_num,
            $javascript_on;
 
     if (strlen(trim($mailbox)) < 1) {
@@ -44,7 +46,7 @@ function show_message_details() {
     $result = '';
     /* Output the link. */
     if ($javascript_on) {
-        $result = '<script type="text/javascript" language="javascript">' . "\n" .
+        $result = '<script type="text/javascript">' . "\n" .
                 '<!--' . "\n" .
                 "  function MessageSource() {\n" .
                 '    window.open("../plugins/message_details/message_details_main.php' .
@@ -53,8 +55,8 @@ function show_message_details() {
                 "// -->\n" .
                 "</script>\n" .
                 "&nbsp;|&nbsp;<a href=\"javascript:MessageSource();\">$print_text</a>\n";
-    } 
+    }
     echo $result;
 }
+
 ?>
\ No newline at end of file