X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fprinter_friendly_main.php;h=45050fabdd89b5f2b8200f242afb6fea17763e2a;hb=1b858d863d345dc7bcc4bed0c169091b084b3a0c;hp=95a19c3074a784b4c4aa3d0793003b4a67dc34b9;hpb=895905c0f766ea03e85deab260b4bb1522dd0e3c;p=squirrelmail.git diff --git a/src/printer_friendly_main.php b/src/printer_friendly_main.php index 95a19c30..45050fab 100644 --- a/src/printer_friendly_main.php +++ b/src/printer_friendly_main.php @@ -1,26 +1,43 @@ \n". - "". - '". - "\n". - "\n"; +/* get those globals into gear */ +global $color; +if ( ! sqgetGlobalVar('passed_ent_id',$passed_ent_id,SQ_GET)) + $passed_ent_id = 0; +if ( ! sqgetGlobalVar('mailbox',$mailbox,SQ_GET) || + ! sqgetGlobalVar('passed_id',$passed_id,SQ_GET)) { + error_box(_("Invalid URL")); +} else { + $passed_id= (int) $passed_id; + $view_unsafe_images = (bool) $_GET['view_unsafe_images']; + sqgetGlobalVar('show_html_default', $show_html_default, SQ_FORM); +/* end globals */ + displayHtmlHeader( _("Printer Friendly"), '', false, true ); + echo '' . "\n"; + echo '' . "\n"; + echo '' . "\n"; + echo "\n"; +} ?> +