X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fprinter_friendly_main.php;h=24d10e222b8f6384e9d58fb7dc9da7d535bfc567;hb=0f4f003efb4cdeeb7574cd4218c552b38a4e1e71;hp=aae4e169eb8335134071089e58f22926a78a6fde;hpb=355861846a51d35efe50848869d680fd3b4a5316;p=squirrelmail.git diff --git a/src/printer_friendly_main.php b/src/printer_friendly_main.php index aae4e169..24d10e22 100644 --- a/src/printer_friendly_main.php +++ b/src/printer_friendly_main.php @@ -3,40 +3,34 @@ /** * printer_friendly_main.php * - * Copyright (c) 1999-2001 The SquirrelMail Development Team + * Copyright (c) 1999-2003 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * $Id$ */ -/*****************************************************************/ -/*** THIS FILE NEEDS TO HAVE ITS FORMATTING FIXED!!! ***/ -/*** PLEASE DO SO AND REMOVE THIS COMMENT SECTION. ***/ -/*** + Base level indent should begin at left margin, as ***/ -/*** the require_once below looks. ***/ -/*** + All identation should consist of four space blocks ***/ -/*** + Tab characters are evil. ***/ -/*** + all comments should use "slash-star ... star-slash" ***/ -/*** style -- no pound characters, no slash-slash style ***/ -/*** + FLOW CONTROL STATEMENTS (if, while, etc) SHOULD ***/ -/*** ALWAYS USE { AND } CHARACTERS!!! ***/ -/*** + Please use ' instead of ", when possible. Note " ***/ -/*** should always be used in _( ) function calls. ***/ -/*** Thank you for your help making the SM code more readable. ***/ -/*****************************************************************/ +/* Path for SquirrelMail required files. */ +define('SM_PATH','../'); -require_once('../src/validate.php'); -require_once('../functions/page_header.php'); +/* SquirrelMail required files. */ +require_once(SM_PATH . 'include/validate.php'); +require_once(SM_PATH . 'functions/page_header.php'); - displayHtmlHeader( _("Printer Friendly"), '', FALSE ); +displayHtmlHeader( _("Printer Friendly"), '', FALSE ); - echo "\n". - "". - '". - "\n". - "\n"; +/* get those globals into gear */ +$passed_ent_id = $_GET['passed_ent_id']; +$passed_id = (int) $_GET['passed_id']; +$mailbox = $_GET['mailbox']; +/* end globals */ + +echo "\n". + ''. + ''. + "\n\n". + "\n"; ?>