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.14.2.8 2006/04/14 22:27:08 jervfors Exp $
  9.  * @package squirrelmail
  10.  */
  11.  
  12. /**
  13.  * Path for SquirrelMail required files.
  14.  * @ignore
  15.  */
  16. define('SM_PATH','../');
  17.  
  18. /* SquirrelMail required files. */
  19. require_once(SM_PATH 'include/validate.php');
  20.  
  21. /* get those globals into gear */
  22. global $color;
  23. if sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
  24.     $passed_ent_id 0;
  25. if sqgetGlobalVar('mailbox',$mailbox,SQ_GET||
  26.      sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) {
  27.     error_box(_("Invalid URL"),$color);
  28. else {
  29.     $passed_id= (int) $passed_id;
  30.     $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
  31. /* end globals */
  32.     displayHtmlHeader_("Printer Friendly")''falsetrue );
  33.     echo '<frameset rows="60, *">' "\n";
  34.     echo '<frame src="printer_friendly_top.php" name="top_frame" '
  35.         . 'scrolling="no" noresize="noresize" frameborder="0" />' "\n";
  36.     echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
  37.         . urlencode($passed_ent_id'&amp;mailbox=' urlencode($mailbox)
  38.         . '&amp;passed_id=' $passed_id
  39.         . '&amp;view_unsafe_images='.$view_unsafe_images
  40.         . '" name="bottom_frame" frameborder="0" />' "\n";
  41.     echo "</frameset>\n";
  42. }
  43. ?>
  44. </html>

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