FreeSTAR-Status-Engine/admin/login-form.php
2017-11-24 00:09:36 +01:00

32 lines
1.5 KiB
PHP

<?php
render_header("Login");
?>
<div class="text-center">
<h1>Login</h1>
</div>
<div id="login-form" class="center">
<?php if (isset($message)){?>
<p class="alert alert-danger"><?php echo $message?></p>
<?php }else{?>
<p class="alert alert-info">Please login to continue.</p>
<?php }?>
<form action="/admin/" method="post">
<div class="form-group">
<label for="email">Email</label>
<input placeholder="Email" class="form-control" name="email" id="email" type="email" tabindex="1" value="<?php echo htmlspecialchars((isset($_POST['email'])?$_POST['email']:''),ENT_QUOTES);?>" required>
</div>
<div class="form-group" style="margin-bottom: 8px">
<label for="pass">Password</label>
<input placeholder="Password" class="form-control" name="pass" id="pass" type="password" tabindex="2" required>
<div style="padding-top: 8px; position: relative;">
<a href="?do=lost-password" class="pull-right noselect" tabindex="5">Forgotten password?</a>
<input name="remember" id="remember" type="checkbox" tabindex="3"> <label class="lbl-login noselect" style="color: black;" for="remember">Remember me</label>
</div>
</div>
<div class="form-group clearfix">
<button type="submit" class="btn btn-success pull-right" tabindex="4">Login</button>
</div>
</form>
</div>
<?php
render_footer();