<?php
/* checklogin.php
Copyright 2006, 2007 Elmar Wenners
Support site: http://www.chaozz.nl
This file is part of FreeWebshop.org.
FreeWebshop.org is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
FreeWebshop.org is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with FreeWebshop.org; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
?>
<?php if ($index_refer <> 1) { exit(); } ?>
<?php
//Check if cookie is set
if (LoggedIn() == false) {
$pagetoload = $_SERVER['QUERY_STRING'];
?>
<table width="60%" class="datatable">
<caption><?php echo $txt['checklogin1'] ?></caption>
<tr><td>
<form name="login" method="POST" action="login.php">
<input type="hidden" value="<?php echo $pagetoload; ?>" name="pagetoload">
<table class="borderless" width="100%">
<tr><td class="borderless"><?php echo $txt['checklogin2'] ?></td>
<td class="borderless"><input type="text" name="name" size="20"></td>
</tr>
<tr><td class="borderless"><?php echo $txt['checklogin3'] ?></td>
<td class="borderless"><input type="password" name="pass" size="20"></td>
</tr>
</table>
<br />
<div style="text-align:center;"><input type="submit" value="<?php echo $txt['checklogin4'] ?>" name="sub"></div>
<br />
<div style="text-align:right;"><a href="?page=login&lostlogin=1"><?php echo $txt['checklogin11'] ?></a></div>
</form>
</td>
</tr>
</table>
<br />
<div style="text-align:center;"><a href="index.php?page=customer&action=new"><?php echo $txt['checklogin5'] ?></a></div>
<br />
<br />
<br />
<?php
PutWindow($gfx_dir, $txt['checklogin6'], $txt['checklogin7'], "personal.jpg", "90");
}
?>