Source for file printer_friendly_main.php

Documentation is available at printer_friendly_main.php

  1. <?php
  2.  
  3. /**
  4.  * printer_friendly frameset
  5.  *
  6.  * @copyright &copy; 1999-2006 The SquirrelMail Project Team
  7.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  8.  * @version $Id: printer_friendly_main.php,v 1.29 2006/05/14 17:09:28 tokul Exp $
  9.  * @package squirrelmail
  10.  */
  11.  
  12. /**
  13.  * Include the SquirrelMail initialization file.
  14.  */
  15. include('../include/init.php');
  16.  
  17. /* get those globals into gear */
  18. global $color;
  19. if sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
  20.     $passed_ent_id 0;
  21. if sqgetGlobalVar('mailbox',$mailbox,SQ_GET||
  22.      sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) {
  23.     error_box(_("Invalid URL"));
  24. else {
  25.     $passed_id= (int) $passed_id;
  26.     $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
  27.     sqgetGlobalVar('show_html_default'$show_html_defaultSQ_FORM);
  28. /* end globals */
  29.     displayHtmlHeader_("Printer Friendly")''falsetrue );
  30.     echo '<frameset rows="60, *">' "\n";
  31.     echo '<frame src="printer_friendly_top.php" name="top_frame" '
  32.         . 'scrolling="no" noresize="noresize" frameborder="0" />' "\n";
  33.     echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
  34.         . urlencode($passed_ent_id'&amp;mailbox=' urlencode($mailbox)
  35.         . '&amp;passed_id=' $passed_id
  36.         . '&amp;view_unsafe_images='.$view_unsafe_images
  37.         . '&amp;show_html_default='.$show_html_default
  38.         . '" name="bottom_frame" frameborder="0" />' "\n";
  39.     echo "</frameset>\n";
  40. }
  41.  
  42. ?>
  43. </html>

Documentation generated on Sat, 07 Oct 2006 16:13:07 +0300 by phpDocumentor 1.3.0RC6