<?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 
	
	***********************************************************************/

require('./inc/functions.php');

	$metadata = "<meta http-equiv=\"Cache-Control\" content=\"no-cache\">
	<meta http-equiv=\"Expires\" content=\"-1\">";
	
// Set SMARTY variables for templates and display
	$smarty->assign("pageMetas",$metadata);
	
	
		// with ie4+/mozilla/ns6+ use iframe for display body  
	if($ie4up || $ns6moz) {
		$sess["adminframe"] = $frame;;
		$frame = "<iframe src=\"FRAME_ADMIN?folder=".htmlspecialchars($folder)."&ix=$ix\"></iframe>";
	
	} 
	// with ns4 use ilayer
	elseif($ns4) {
		$sess["adminframe"] = $frame;;
		$frame = "<ilayer width=\"100%\" left=\"0\" top=\"0\">$frame</ilayer>";
	}
	
	$smarty->assign("umAdminFrame",$frame);

	$smarty->display("$selected_theme/".HTML_ADMIN);

?>
