X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=src%2Fview_header.php;h=aeebe577a342da08f6d20517fedd9f77b770ca75;hb=5a56fd2877a5549ec39db5eb73c18659732a09c6;hp=d2a85ebfdbd7ae8ddf966e80731861abb6a57b14;hpb=5c4ff7bfc6e04337bd6bcf76743b1fbb92556233;p=squirrelmail.git
diff --git a/src/view_header.php b/src/view_header.php
index d2a85ebf..aeebe577 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-2006 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. */
-include_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,54 +82,37 @@ 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 '