rg=0 fix
[squirrelmail.git] / src / printer_friendly_main.php
index 2a1d78d72d8902badfe480d9f548bd5daa6af30a..f5029b6ecc08967af3263b34c0b323c42011a208 100644 (file)
@@ -9,34 +9,28 @@
  * $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 "<frameset rows=\"50, *\" noresize border=\"0\">\n".
-         "<frame src=\"printer_friendly_top.php\" name=\"top_frame\" scrolling=\"off\">".
-         '<frame src="printer_friendly_bottom.php?passed_ent_id=';
-    echo $passed_ent_id . '&mailbox=' . urlencode($mailbox) .
-         '&passed_id=' . $passed_id;
-    echo "\" name=\"bottom_frame\">".
-         "</frameset>\n".
-         "</html>\n";
+/* get those globals into gear */
+$passed_ent_id = $_GET['passed_ent_id'];
+$passed_id = $_GET['passed_id'];
+$mailbox = $_GET['mailbox'];
+/* end globals */
+
+echo "<frameset rows=\"60, *\" noresize border=\"0\">\n".
+     "<frame src=\"printer_friendly_top.php\" name=\"top_frame\" scrolling=\"no\">".
+     '<frame src="printer_friendly_bottom.php?passed_ent_id='.
+     $passed_ent_id . '&amp;mailbox=' . urlencode($mailbox) .
+     '&amp;passed_id=' . $passed_id .
+     "\" name=\"bottom_frame\">".
+     "</frameset>\n".
+     "</html>\n";
 
 ?>