<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<?php
$adminStr = '';
$titleStr = $this->translate("Timed out") . " - Webmail";
if ($this->admin == true)
{
	$adminStr = "index.php/admin";
	$titleStr = $this->translate("Timed out") . " - Webadmin";
}
?>
<html xmlns="http://www.w3.org/1999/xhtml">
	<link rel="stylesheet" type="text/css" href="<?php echo $this->siteBaseUrl; ?>css/ie6.css" />
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
		<title><?php echo $titleStr; ?></title>
		<link rel="stylesheet" href="<?php echo $this->siteBaseUrl; ?>css/ui.css" type="text/css" media="screen" />
	</head>
	<body>
		<div id="center-ie6">
			<div id="content-ie6">
				<div id="contain-ie6">
					<div id="hold-ie6">
						<h1 class="ie6-unsupport"><?php echo $this->translate("Session Timeout"); ?></h1>
						<br>
							<p><?php echo $this->translate("Sorry, your session has expired."); ?></p>
							<p><?php echo $this->translate("This can be caused by a number of things:"); ?></p>
							<ul>
							<?php if(preg_match('/i(phone|pad|pod)/i', $_SERVER['HTTP_USER_AGENT'])) :?>
								<li>When accessing via your iOS device you cannot simultaneously access the same<br>
								account in your browser. This will cause the session to timeout on the iOS device.<br>
								<li>If your device has had a long period of inactivity the session will expire</li>
							<?php else :?>
								<li><?php echo $this->translate('Long period of inactivity.') ?></li>
								<li><?php echo $this->translate("Only one user can log into an account at a time."); ?></li>
							<?php endif ?>
							
							</ul>
							<?php echo $this->translate("To protect your identity and security you must sign in again."); ?>
						</br>
						<img style="position:absolute; top: 70px; right: 40px;" src="<?php echo $this->siteBaseUrl ?>images/clock.png"></img>
						<p>
							<a href="<?php echo $this->siteBaseUrl . $adminStr; ?>"><?php echo $this->translate("Sign in"); ?></a> <?php echo $this->translate('again or wait 10 seconds to be automatically taken to the sign in page.'); ?>
						</p>
					</div>
					<div id="footer-ie6"></div>
					<div id="foot-info-ie6">
						<a href="http://www.atmail.com/" target="_blank"><?php echo $this->translate('Powered by Atmail') . " " . generateVersionString($this->version) ?></a> - Next Generation Atmail Platform
					</div>
				</div>
			</div>
		</div>
	</body>

	<script type="text/javascript">
		setTimeout( function() {
			window.location = '<?php echo $this->siteBaseUrl . $adminStr; ?>';
		},10000);
	</script>

</html>
