X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fprinter_friendly_bottom.php;h=3fa0c95b82e2d081c857fd587cb5e8475eca25ba;hb=eb6d43d846c146b37bc0e5ad6d024e352a47b05e;hp=c334b0d2f4b6279cece562a7026c39b4c66a849c;hpb=a48eba8f9a66dfe0aca3b22ac14bbdbeaedf80bf;p=squirrelmail.git diff --git a/src/printer_friendly_bottom.php b/src/printer_friendly_bottom.php index c334b0d2..3fa0c95b 100644 --- a/src/printer_friendly_bottom.php +++ b/src/printer_friendly_bottom.php @@ -27,18 +27,16 @@ require_once(SM_PATH . 'functions/page_header.php'); require_once(SM_PATH . 'functions/html.php'); /* get some of these globals */ -$key = $_COOKIE['key']; -$username = $_SESSION['username']; -$onetimepad = $_SESSION['onetimepad']; +sqgetGlobalVar('username', $username, SQ_SESSION); +sqgetGlobalVar('key', $key, SQ_COOKIE); +sqgetGlobalVar('onetimepad', $onetimepad, SQ_SESSION); -$passed_id = (int) $_GET['passed_id']; -$mailbox = $_GET['mailbox']; +sqgetGlobalVar('passed_id', $passed_id, SQ_GET); +sqgetGlobalVar('mailbox', $mailbox, SQ_GET); -if (!isset($_GET['passed_ent_id'])) { +if (! sqgetGlobalVar('passed_ent_id', $passed_ent_id, SQ_GET) ) { $passed_ent_id = ''; -} else { - $passed_ent_id = $_GET['passed_ent_id']; -} +} /* end globals */ $pf_cleandisplay = getPref($data_dir, $username, 'pf_cleandisplay'); @@ -115,7 +113,7 @@ $subject = decodeHeader($subject); /* --start browser output-- */ displayHtmlHeader( _("Printer Friendly"), '', FALSE ); -echo "\n" . +echo ''."\n" . /* headers (we use table because translations are not all the same width) */ html_tag( 'table', '', 'center', '', 'cellspacing="0" cellpadding="0" border="0" width="100%"' ) . html_tag( 'tr',