<?php
/************************************************************************
	UebiMiau is a GPL'ed software developed by 
	 - Aldoir Ventura - aldoir@users.sourceforge.net
	 - http://uebimiau.sourceforge.net SåÐ Paulo - Brasil
   		
	***********************************************************************
	Version 3.2.0 Upgrades and templates developed by
	 - Todd Henderson - Lead Developer - http://tdah.us 
	 - Dave Rodgers - Developer - http://www.manvel.net 
	 - Laurent (AdNovea) - Developer - http://adnovea.free.fr
	 
	***********************************************************************
	 - Special thanks to the developers at 
	codeworxtech.com, tinymce.moxiecode.com
	telaen.org, phptoys.com, winged.info, ngcoders.com
	without help this project wouldn't be possible 
	
	***********************************************************************
	- File:			headers.php
	- Developer: 	Todd Henderson / Laurent (AdNovea)
	- Date:			November 4, 2008
	- version:		(3.2.0) 1.0
	- Description:  Display mail header

*************************************************************************/
 
require('./inc/inc.php');
	
	if(!isset($folder) || !isset($ix)) die("Expected parameters");
	
	$mail_info = $sess["headers"][base64_encode($folder)][$ix];
	
// Set SMARTY variables for templates and display
	$smarty->assign("umPageTitle",jcodeconvert($mail_info["subject"],0,1));
	$smarty->assign("umHeaders",preg_replace("/\t/","&nbsp;&nbsp;&nbsp;&nbsp;",nl2br(htmlspecialchars($mail_info["header"]))));
	
	$smarty->display("$selected_theme/".HTML_HEADERS_WINDOW);

?>
