<?php include("app_needed/config.php");
if($_SESSION[unique])
echo '<script>window.location = "'.APP_PATH.'";</script>';
?>
<!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=<?= language("CHARSET") ?>" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?= language("login_meta_title") ?> - <?= $config->get_value('platform_title') ?></title>
<link rel="shortcut icon" href="<?= $config->get_value('platform_favicon') ?>" />
<link href="app_needed/style.css" rel="stylesheet" type="text/css" />
</head>

<body>
<div id="wrapper">
 <div class="mainContent">
	<div class="login">
    <form  name="my-form" action="app_needed/ajax.functions.php" method="POST" enctype="multipart/form-data">
    <input type="hidden" name="login" value="1" />
    <div class="center"><img src="<?= $config->get_value('platform_logo')?>"  width="300" /></div>
    <div class="center"><h1><?= language("login_page_title") ?></h1></div>
      <table width="100%" border="0">
        <tr>
          <td><div id="response" class="center"></div></td>
        </tr>
        <tr>
          <td><input name="email" type="text" placeholder="<?= language("field_email") ?>" /></td>
        </tr>
        <tr>
          <td><input name="password" type="password" placeholder="<?= language("field_password") ?>" /></td>
        </tr>
        <tr>
          <td><input type="submit"  value="<?= language("submit_login") ?>" /></td>
        </tr>
      </table>
      <div class="center"></div>
      </form>
    </div>
</div>
</div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.js"></script>
<script type="text/javascript" src="app_needed/function.ajax.js"></script>
</body>
</html>
<?php mysql_close($conn); ?>