X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fprinter_friendly_main.php;h=4d5a703b1d1dd3fcb3825689e467bfbe7ace3ba7;hb=bf9e5efb35d382a8e022955e690d0c19c916c6eb;hp=95a19c3074a784b4c4aa3d0793003b4a67dc34b9;hpb=895905c0f766ea03e85deab260b4bb1522dd0e3c;p=squirrelmail.git diff --git a/src/printer_friendly_main.php b/src/printer_friendly_main.php index 95a19c30..4d5a703b 100644 --- a/src/printer_friendly_main.php +++ b/src/printer_friendly_main.php @@ -1,26 +1,44 @@ \n". - "". - '". - "\n". - "\n"; +/* SquirrelMail required files. */ +require_once(SM_PATH . 'include/validate.php'); +/* 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']; +/* end globals */ + displayHtmlHeader( _("Printer Friendly"), '', false, true ); + echo '' . "\n"; + echo '' . "\n"; + echo '' . "\n"; + echo "\n"; +} ?> + \ No newline at end of file