<?php
  /**************************************************************************\
  * phpGroupWare - E-Mail                                                    *
  * http://www.phpgroupware.org                                              *
  * Based on Aeromail by Mark Cushman <mark@cushman.net>                     *
  *          http://the.cushman.net/                                         *
  * --------------------------------------------                             *
  *  This program is free software; you can redistribute it and/or modify it *
  *  under the terms of the GNU General Public License as published by the   *
  *  Free Software Foundation; either version 2 of the License, or (at your  *
  *  option) any later version.                                              *
  \**************************************************************************/

  /* $Id: view_html.php,v 1.1.2.1 2001/07/06 23:25:05 angles Exp $ */

	$phpgw_info["flags"] = array(
		"currentapp" => "email",
		"enable_network_class" => True,
		"enable_browser_class" => True,
		"noheader" => True,
		"nonavbar" => True
	);
	include("../header.inc.php");

	//$phpgw->browser->content_header($name,$mime);
	if (isset($html_part))
	{
		$phpgw->browser->content_header('','');
		$html_part = $phpgw->msg->stripslashes_gpc($html_part);
		echo $phpgw->msg->base64($html_part);
	}
	elseif (isset($html_reference))
	{
		$html_reference = $phpgw->msg->stripslashes_gpc($html_reference);
		Header("Location: " . $html_reference); 
	}
?>
