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 1999-2020 The SquirrelMail Project Team
  7.  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  8.  * @version $Id: printer_friendly_main.php 14840 2020-01-07 07:42:38Z pdontthink $
  9.  * @package squirrelmail
  10.  */
  11.  
  12. /** This is the printer_friendly_main page */
  13. define('PAGE_NAME''printer_friendly_main');
  14.  
  15. /**
  16.  * Path for SquirrelMail required files.
  17.  * @ignore
  18.  */
  19. define('SM_PATH','../');
  20.  
  21. /* SquirrelMail required files. */
  22. require_once(SM_PATH 'include/validate.php');
  23.  
  24. /* get those globals into gear */
  25. global $color;
  26. if sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET))
  27.     $passed_ent_id 0;
  28. if sqgetGlobalVar('mailbox',$mailbox,SQ_GET||
  29.      sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) {
  30.     error_box(_("Invalid URL"),$color);
  31. else {
  32.     $passed_id= (int) $passed_id;
  33.     $view_unsafe_images = (bool) $_GET['view_unsafe_images'];
  34. /* end globals */
  35.     displayHtmlHeader_("Printer Friendly")''false );
  36.     echo '<frameset rows="60, *">' "\n";
  37.     echo '<frame src="printer_friendly_top.php" name="top_frame" '
  38.         . 'scrolling="no" noresize="noresize" frameborder="0" />' "\n";
  39.     echo '<frame src="printer_friendly_bottom.php?passed_ent_id='
  40.         . urlencode($passed_ent_id'&amp;mailbox=' urlencode($mailbox)
  41.         . '&amp;passed_id=' $passed_id
  42.         . '&amp;view_unsafe_images='.$view_unsafe_images
  43.         . '" name="bottom_frame" frameborder="0" />' "\n";
  44.     echo "</frameset>\n";
  45. }
  46. ?>
  47. </html>

Documentation generated on Mon, 13 Jan 2020 04:25:11 +0100 by phpDocumentor 1.4.3