<?php 
/**
* @version		$Id: offline.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 = $elxis->secureBase().'/templates/system/css/';
$csslink .= ($eLang->getinfo('DIR') == 'rtl') ? 'exit-rtl.css' : 'exit.css';

echo $page->doctype."\n";
?>
<html<?php echo $page->htmlattributes; ?>>
<head>
	<base href="<?php echo $elxis->getConfig('URL'); ?>/" />
	<?php echo $page->extrahead; ?>
	<meta http-equiv="content-type" content="<?php echo $page->contenttype; ?>; charset=utf-8" />
	<meta http-equiv="content-language" content="<?php echo $eLang->getinfo('LANGUAGE'); ?>" />
	<meta name="generator" content="Elxis - Open Source CMS" />
	<meta name="distribution" content="global" />
	<meta name="robots" content="index, follow" />
	<title><?php echo $page->title.' - '.$elxis->getConfig('SITENAME'); ?></title>
	<meta name="description" content="<?php echo $eLang->get('WEBSITE_OFFLINE'); ?>" />
	<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 $elxis->secureBase(); ?>/templates/system/images/exit/offline.png" alt="offline" />
				</div>
			</div>
			<div id="rcol">
				<div class="inner">
					<h3><?php echo $page->msgtitle; ?></h3>
					<div class="msg"><?php echo $page->message; ?></div>
<?php if ($elxis->getConfig('ONLINE') == 2) { ?>
					<div class="msg"><?php echo $eLang->get('OWN_ADMIN_LOGIN'); ?></div>
					<div id="loginform">
						<form name="fmelxislogin" method="post" action="<?php echo $page->loginaction; ?>">
							<label for="uname"><?php echo $eLang->get('USERNAME'); ?></label>
							<input type="text" name="uname" id="uname" value="" dir="ltr" class="login" />
							<label for="pword"><?php echo $eLang->get('PASSWORD'); ?></label>
							<input type="password" name="pword" id="pword" value="" dir="ltr" class="login" />
							<input type="hidden" name="remember" dir="ltr" value="1" />
							<input type="hidden" name="auth_method" dir="ltr" value="elxis" />
							<button type="submit" ><span class="loginimg"><?php echo $eLang->get('LOGIN'); ?></span></button>
						</form>
					</div>
<?php 
	}

				if ($page->loginerror != '') {
					echo '<div class="loginerr">'.$page->loginerror."</div>\n";
					
				}
?>
				</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 $elxis->getConfig('SITENAME'); ?>">
						<?php echo $elxis->getConfig('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>