<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<title><?php print $this->translate('Atmail')?></title>
	  	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl; ?>css/ui.css?<?php echo Zend_registry::get('config')->global['version'] ?>" type="text/css" media="screen, print" />
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl ?>css/webmail.css?<?php echo Zend_registry::get('config')->global['version'] ?>" type="text/css" media="screen, print" />
 	
		<!--[if IE]>
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl; ?>css/ie.css" type="text/css" media="screen" />
		<![endif]-->

		<!--[if lte IE 6]>
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl; ?>css/ie6.css" type="text/css" media="screen" />
		<script type="text/javascript" src="<?php echo $this->siteBaseUrl; ?>js/dd_png.js"></script>
		<script type="text/javascript" src="<?php echo $this->siteBaseUrl; ?>js/pngfix_selectors.js"></script>
		<![endif]-->
	    
	</head>
	<body id="acsearch" class="no_actions">

		<div id="header">

			<h3 class='branding'><a href="<?php echo $this->company_url; ?>" target="_blank"><?php echo $this->brandname ?></a></h3>

			<div id="sign_out">
				<a href="<?php echo $this->moduleBaseUrl ?>/auth/logout"><span><?php print $this->translate('Logout')?></span></a>
			</div>

		</div>

		<div id="actions"></div>

		<div id="secondary">

			<div id="secondary_header"></div>
			<div id="flash"></div><div id="notices"></div><div id="errors"></div>
		</div>

		<div id="primary">

			<div id="search">
	
				<div id="primary_header">
					<h1><?php print $this->translate('An error occurred')?></h1>
				</div>

				<div id="primary_content">
				    <div id="primary_content_inner" style="padding:20px;">
                    	<?php
$errorMessage = $this->exception->getMessage();
$displayThrow = true;
if(strstr($errorMessage, 'session has already been started') != null)
{
	$errorMessage = $this->translate("<br>Atmail requires <strong>session.auto_start</strong> to be set to false in your php.ini.<br>Please correct this by ensuring the following line in php configuration and restarting webserver:<br><br>session.auto_start = 0<br>");
	$displayThrow = false;
}
echo $errorMessage; 
?>
				   	</div>
				</div>     

			</div> 

		</div>  

		<div id="debug" style="position:absolute;left:0px;top:0px;padding:3px;"><pre><?php echo print_r($this->debug, true)?></pre></div>
 
	</body>
</html>
