<?php
require "../inc/config.php";
require "engine/functions.php";
require "../inc/langs/".$s40[lang].".php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $l[admintitle]; ?></title>
<meta name="robots" content="NOFOLLOW,NOINDEX" />
<link href="style/style.css" rel="stylesheet" type="text/css" />
<link href="libs/spry/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="default.ico" rel="shortcut icon" type="image/icon" />
<script type="text/javascript" src="libs/jquery.js"></script>
<script type="text/javascript" src="libs/jquery.corners.js"></script>
<script type="text/javascript" src="libs/jquery.s40.js"></script>
<script src="libs/spry/SpryValidationTextField.js" type="text/javascript"></script>
</head>

<body style="direction:<?php echo $s40[langdir];?>">
<?php echo notes($_GET[n],$s40[lang],$_GET[a]); ?>
<div id="header">
  <h1><?php echo $l[admintitle]; ?></h1>
  <h2><?php echo $s40[title]; ?></h2>
</div>
<form action="engine/entrance.php" method="post" class="roundall" id="entrance">
  <fieldset>
  <legend><?php echo $l[username];?></legend>
    <span id="sprytextfield1">
    <input name="username" type="text" class="field" <?php if(isset($_COOKIE[sfu])){
  	echo "value=\"".$_COOKIE[sfu]."\"";
  }?> />
    <span class="textfieldRequiredMsg"><?php echo $l[requiredfield]; ?></span></span>
  </fieldset>
  <fieldset>
  <legend><?php echo $l[password];?></legend>
    <span id="sprytextfield2">
    <input name="password" type="password" class="field" id="password" <?php if(isset($_COOKIE[sfp])){
  	echo "value=\"".base64_decode($_COOKIE[sfp])."\"";
  }?> />
    <span class="textfieldRequiredMsg"><?php echo $l[requiredfield]; ?></span></span>
  </fieldset>
  <fieldset>
  <legend><?php echo $l[login];?></legend>
  <div align="center">
    <input name="remember" type="checkbox" id="remember" value="true" /> <?php echo $l[rememberme]; ?>
  </div>
   <div align="center">
     <input name="button" type="submit" class="submit" id="button" value="<?php echo $l[login];?>" />
   </div>
  </fieldset>
</form>
<div id="footer">
  <ul>
    <li><a href="http://s40.biz" target="_blank">S40 CMS v. <?php echo $s40[version]; ?> (2010<?php if(date("Y")>2010){echo " - ".date("Y");} ?>)</a></li>
    <li><a href="../"><?php echo $l[backtosite]; ?></a></li>
  </ul>
</div>
<script type="text/javascript">
<!--
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
//-->
</script>
</body>
</html>