mirror of
https://github.com/sorenpeter/timeline.git
synced 2025-12-15 10:57:01 +00:00
29 lines
No EOL
796 B
PHP
29 lines
No EOL
796 B
PHP
<?php
|
|
require_once("partials/base.php");
|
|
|
|
$title = "Login - ".$title;
|
|
|
|
include 'partials/header.php';
|
|
?>
|
|
|
|
<?php
|
|
// Password comes from libs/session.php
|
|
if (isset($_SESSION['password'])) {
|
|
if ($_SESSION['password'] == $password) {
|
|
header("Location: .");
|
|
die();
|
|
}
|
|
}
|
|
|
|
else { ?>
|
|
<center>
|
|
<h2>Enter password or TOTP</h2>
|
|
<form method="post" action="" id="login_form">
|
|
<input type="password" name="pass" placeholder="Password" autofocus><br>
|
|
<input type="submit" name="submit_pass" value="Login">
|
|
<p><font style="color:red;"><?php if(isset($error)) {echo $error;}?></font></p>
|
|
</form>
|
|
</center>
|
|
<?php } ?>
|
|
|
|
<!-- PHP: GET FOOTER --><?php include 'partials/footer.php';?>
|