<?php 
/**
* @version		$Id: fatal.php 1034 2012-04-14 20:40:01Z datahell $
* @package		Elxis
* @subpackage	Templates / System
* @copyright	Copyright (c) 2006-2012 Elxis CMS (http://www.elxis.org). All rights reserved.
* @license		Elxis Public License ( http://www.elxis.org/elxis-public-license.html )
* @author		Elxis Team ( http://www.elxis.org )
* @description 	Elxis CMS is free software. Read the license for copyright notices and details
*/

defined('_ELXIS_') or die ('Direct access to this location is not allowed');


$csslink = $page->secure_sitelink.'/templates/system/css/exit.css';

echo $page->doctype."\n";
?>
<html<?php echo $page->htmlattributes; ?>>
<head>
	<base href="<?php echo $cfg->get('URL'); ?>/" />
	<?php echo $page->extrahead; ?>
	<meta http-equiv="content-type" content="<?php echo $page->contenttype; ?>; charset=utf-8" />
	<meta http-equiv="content-language" content="en" />
	<meta name="generator" content="Elxis - Open Source CMS" />
	<meta name="distribution" content="global" />
	<meta name="robots" content="noindex, follow" />
	<title>Fatal error - <?php echo $cfg->get('SITENAME'); ?></title>
	<meta name="description" content="<?php echo $page->message; ?>" />
	<link rel="shortcut icon" href="<?php echo $page->favicon; ?>" />
	<link rel="stylesheet" href="<?php echo $csslink; ?>" type="text/css" media="all" />
</head>
<body>
	<div class="exit_wrapper">	
		<div class="exit_header"></div>
		<div id="exit_content">
			<div id="lcol">
				<div class="inner cimg center">
					<h2><?php echo $page->title; ?></h2>
					<img src="<?php echo $page->secure_sitelink; ?>/templates/system/images/exit/warning.png" alt="warning" />
				</div>
			</div>
			<div id="rcol">
				<div class="inner">
					<h3><?php echo $page->msgtitle; ?></h3>
					<div class="msg"><?php echo $page->message; ?></div>
					<div class="refcode">Reference code: <span><?php echo $page->refcode; ?></span></div>
					<div class="msg">Sorry for the inconvenience.</div>
					<div class="exit_horlinks">
						<a href="<?php echo $page->sitelink; ?>" title="Home">Home</a> 
						<a href="javascript:window.history.go(-1);" title="Back">Back</a>
						<div class="clear"></div>
					</div>
				</div>
			</div>	
		</div>
		<div class="clear"></div>
		<div id="footer">
			<div id="fcontainer">
				<div id="sitename">
					<a href="<?php echo $page->sitelink; ?>" title="<?php echo $cfg->get('SITENAME'); ?>">
						<?php echo $cfg->get('SITENAME'); ?>
					</a>
				</div>
				<div id="copy">
					<a href="http://www.elxis.org" title="Elxis Open Source CMS">Elxis</a> 
					&#169; 2006-<?php echo date('Y'); ?> All Rights Reserved.<span class="logo">&#160;</span>
				</div>
			</div>
		</div>
	</div>
</body>
</html>