squirrelmail-webmail  1.4.22
About: SquirrelMail is a standards-based webmail package with strong MIME support, address books, and folder manipulation (written in PHP4).
  Fossies Dox: squirrelmail-webmail-1.4.22.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

printer_friendly_main.php
Go to the documentation of this file.
1 <?php
2 
13 define('PAGE_NAME', 'printer_friendly_main');
14 
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, true );
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>
sqgetGlobalVar
sqgetGlobalVar($name, &$value, $search=SQ_INORDER)
Definition: global.php:344
$mailbox
$mailbox
Definition: options.php:28
html
Definition: html.class.php:18
$color
global $color
Definition: printer_friendly_main.php:22
SM_PATH
const SM_PATH
Definition: printer_friendly_main.php:19
SQ_GET
const SQ_GET
Definition: global.php:16
$view_unsafe_images
$view_unsafe_images
Definition: printer_friendly_main.php:33
displayHtmlHeader
displayHtmlHeader( $title='SquirrelMail', $xtra='', $do_hook=TRUE)
Definition: page_header.php:21
_
_($str)
Definition: gettext.php:160
error_box
error_box($string, $color)
Definition: display_messages.php:116