Remove unused globals
[squirrelmail.git] / plugins / message_details / setup.php
index 085c541dc69b4e6f9cea8f33f4879da70a87c092..a090bf9c8ec6daab447c0812f3a321948841792d 100644 (file)
@@ -1,26 +1,35 @@
 <?php
-/** Message Source  
-*
-* Plugin to view the RFC822 raw message output and the bodystructure of a message
-*
-* Copyright (c) 2002 Marc Groot Koerkamp, The Netherlands
-* Licensed under the GNU GPL. For full terms see the file COPYING.
-* 
-* $Id$
-**/
-
-
+/**
+ * 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
+ * @license http://opensource.org/licenses/gpl-license.php GNU Public License
+ * @version $Id$
+ * @package plugins
+ * @subpackage message_details
+ **/
+
+/**
+ * Initialize the plugin
+ * @access private
+ */
 function squirrelmail_plugin_init_message_details()
 {
   global $squirrelmail_plugin_hooks;
 
-  do_hook("read_body_header_right");
-  $squirrelmail_plugin_hooks['read_body_header_right']['message_details'] = "show_message_details";
+  $squirrelmail_plugin_hooks['read_body_header_right']['message_details'] = 'show_message_details';
 }
 
+/**
+ * Add message details link in message view
+ * @access private
+ */
 function show_message_details() {
-    global $passed_id, $mailbox, $ent_num, $color,
-           $pf_subtle_link,
+    global $passed_id, $mailbox, $ent_num,
            $javascript_on;
 
     if (strlen(trim($mailbox)) < 1) {
@@ -33,20 +42,20 @@ function show_message_details() {
 
     $print_text = _("View Message details");
 
-
     $result = '';
     /* Output the link. */
     if ($javascript_on) {
-        $result = '<script language="javascript">' . "\n" .
+        $result = '<script type="text/javascript" language="javascript">' . "\n" .
                 '<!--' . "\n" .
                 "  function MessageSource() {\n" .
                 '    window.open("../plugins/message_details/message_details_main.php' .
-                        $params . '","Print","width=800,height=600");' . "\n".
+                        $params . '","MessageDetails","width=800,height=600");' . "\n".
                 "  }\n" .
                 "// -->\n" .
                 "</script>\n" .
-                "&nbsp;|&nbsp;<A HREF=\"javascript:MessageSource();\">$print_text</A>\n";
+                "&nbsp;|&nbsp;<a href=\"javascript:MessageSource();\">$print_text</a>\n";
     } 
     echo $result;
 }
\ No newline at end of file
+?>
\ No newline at end of file