html cleanups
[squirrelmail.git] / src / printer_friendly_main.php
index 81c65a9b45148258ab1bc92682fb592c640d1a24..4d5a703b1d1dd3fcb3825689e467bfbe7ace3ba7 100644 (file)
@@ -3,7 +3,7 @@
 /**
  * printer_friendly frameset
  *
- * @copyright (c) 1999-2004 The SquirrelMail Project Team
+ * @copyright (c) 1999-2005 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -27,16 +27,18 @@ if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET) ||
     error_box(_("Invalid URL"),$color);
 } else {
     $passed_id= (int) $passed_id;
+    $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
 /* end globals */
     displayHtmlHeader( _("Printer Friendly"), '', false, true );
     echo '<frameset rows="60, *">' . "\n";
     echo '<frame src="printer_friendly_top.php" name="top_frame" '
         . 'scrolling="no" noresize="noresize" frameborder="0" />' . "\n";
     echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
-        . urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox) 
+        . urlencode($passed_ent_id) . '&amp;mailbox=' . urlencode($mailbox)
         . '&amp;passed_id=' . $passed_id
+        . '&amp;view_unsafe_images='.$view_unsafe_images
         . '" name="bottom_frame" frameborder="0" />' . "\n";
     echo "</frameset>\n";
 }
 ?>
-</html>
+</html>
\ No newline at end of file