65 lines
2.1 KiB
PHP
65 lines
2.1 KiB
PHP
<?php
|
|
|
|
if(!isset($_SESSION['user']) or isset($message)){ ?>
|
|
<div class="container">
|
|
<div class="section">
|
|
<?php
|
|
if(isset($message)){ ?>
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<div class="card-panel <?php echo $message['css_class']; ?>">
|
|
<span class="">Wrong email or password. Please try again.</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<div class="row">
|
|
<div class="col s12">
|
|
<div class="card z-depth-5">
|
|
<div class="card-content">
|
|
<span class="card-title">Login</span>
|
|
<form action="#" id="formLogin" name="formLogin" method="post">
|
|
<div class="row">
|
|
<div class="input-field col s12 m6">
|
|
<i class="material-icons prefix">email</i>
|
|
<input id="formLoginFieldEmail" name="formLoginFieldEmail" type="email" class="validate">
|
|
<label for="formLoginFieldEmail">Email</label>
|
|
</div>
|
|
|
|
<div class="input-field col s12 m6">
|
|
<i class="material-icons prefix">lock</i>
|
|
<input id="formLoginFieldPassword" name="formLoginFieldPassword" type="password" class="validate">
|
|
<label for="formLoginFieldPassword">Password</label>
|
|
</div>
|
|
</div>
|
|
|
|
<p>
|
|
<label>
|
|
<input id="formLoginCheckboxStayConnected" name="formLoginCheckboxStayConnected" type="checkbox" />
|
|
<span>Stay Connected</span>
|
|
</label>
|
|
</p>
|
|
|
|
<div class="row">
|
|
<div class="input-field col s6">
|
|
<button class="btn waves-effect waves-light" id="formLoginButtonSubmit" name="formLoginButtonSubmit" type="submit">Sign in <i class="material-icons right">send</i></button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<?php
|
|
} else {
|
|
header("Location:".$oConf->getURLRoot());
|
|
}
|
|
?>
|