X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fprinter_friendly_main.php;h=7d877fe6613f81adfec429e35d419753c8a20453;hb=d88941c7b900f87e04674c9d61ebcf9dff8d44eb;hp=faaedc9ce8e177681305d291bd4a6bb6a0f9feaa;hpb=3bbf5974b641c19d1450a1a8063a4c7c07fb9222;p=squirrelmail.git diff --git a/src/printer_friendly_main.php b/src/printer_friendly_main.php index faaedc9c..7d877fe6 100644 --- a/src/printer_friendly_main.php +++ b/src/printer_friendly_main.php @@ -1,26 +1,47 @@ \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"),$color); +} 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"; +} -?> \ No newline at end of file +?> +