1
0
mirror of https://bitbucket.org/jsuto/piler.git synced 2025-04-10 13:27:52 +02:00
2012-02-14 20:16:05 +01:00

37 lines
1.2 KiB
Smarty

<?php if(!isset($_SESSION['username'])){ ?>
<form name="login" action="login.php" method="post">
<input type="hidden" name="relocation" value="<?php if(isset($_GET['route']) && !preg_match("/^login/", $_GET['route']) ) { if(isset($_SERVER['REDIRECT_URL'])) { print $_SERVER['REDIRECT_URL']; } else { print $_SERVER['QUERY_STRING']; } } ?>" />
<div id="search">
<div id="search1">
<div class="row">
<div class="fcell"><?php print $text_email; ?>:</div>
<div class="fcell"><input type="text" class="textregular" name="username" /></div>
</div>
<div class="row">
<div class="fcell"><?php print $text_password; ?>:</div>
<div class="fcell"><input type="password" class="textregular" name="password" /></div>
</div>
<div class="row">
<div class="fcell">&nbsp;</div>
<div class="fcell"><input type="submit" value="<?php print $text_submit; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
</div>
</div>
</div>
</form>
<?php if(isset($x)){ ?><p class="loginfailed"><?php print $x; ?></p><?php } ?>
<?php } ?>