X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fprinter_friendly_main.php;h=45050fabdd89b5f2b8200f242afb6fea17763e2a;hb=7111b0daa5f74c1c96d3bcf87da7a05e4ba6e189;hp=2a1d78d72d8902badfe480d9f548bd5daa6af30a;hpb=15e6162eacc97158393bc75aed3afeb7b19c24a6;p=squirrelmail.git diff --git a/src/printer_friendly_main.php b/src/printer_friendly_main.php index 2a1d78d7..45050fab 100644 --- a/src/printer_friendly_main.php +++ b/src/printer_friendly_main.php @@ -1,42 +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"; +} ?> +