X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_header.php;h=0e0b2e218901a711b90ab472364ab7017f44bbf9;hb=81cc6a1994f9097d7ca883f4ab5bfebd70b3fca1;hp=824c69f4ac1b52a31b786dd22367f3cb10617290;hpb=79df88842477e412e8f28e7dd05ea85923cd9110;p=squirrelmail.git
diff --git a/src/view_header.php b/src/view_header.php
index 824c69f4..0e0b2e21 100644
--- a/src/view_header.php
+++ b/src/view_header.php
@@ -5,23 +5,22 @@
*
* This is the code to view the message header.
*
- * @copyright © 1999-2005 The SquirrelMail Project Team
+ * @copyright © 1999-2007 The SquirrelMail Project Team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id$
* @package squirrelmail
*/
+/** This is the view_header page */
+define('PAGE_NAME', 'view_header');
+
/**
- * Path for SquirrelMail required files.
- * @ignore
+ * Include the SquirrelMail initialization file.
*/
-define('SM_PATH','../');
+require('../include/init.php');
/* SquirrelMail required files. */
-require_once(SM_PATH . 'include/validate.php');
-require_once(SM_PATH . 'functions/global.php');
require_once(SM_PATH . 'functions/imap.php');
-require_once(SM_PATH . 'functions/html.php');
require_once(SM_PATH . 'functions/url_parser.php');
function parse_viewheader($imapConnection,$id, $passed_ent_id) {
@@ -83,34 +82,6 @@ function parse_viewheader($imapConnection,$id, $passed_ent_id) {
return $header_output;
}
-function view_header($header, $mailbox, $color) {
- sqgetGlobalVar('QUERY_STRING', $queryStr, SQ_SERVER);
- $ret_addr = SM_PATH . 'src/read_body.php?'.$queryStr;
-
- displayPageHeader($color, $mailbox);
-
- echo '
' .
- '
\n";
-
- echo_template_var($header,
- array(
- '\n".'',
- '',
- '',
- '',
- ' |
'."\n"
- )
- );
- echo '