forked from root/threadr.lostcave.ddnss.de
70 lines
2.2 KiB
PHP
70 lines
2.2 KiB
PHP
<?php
|
|
session_start();
|
|
//todo: force log out any user if logged in on this page
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>ThreadR - Log In</title>
|
|
<link rel="stylesheet" type="text/css" href="%CONTENT_DIR%/style.css">
|
|
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
</head>
|
|
<body>
|
|
<ul class="topnav">
|
|
<li><a href="%CONTENT_DIR%/">%HOME_LINK%</li>
|
|
<li><a href="%CONTENT_DIR%/news/">News</a></li>
|
|
<!--<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>-->
|
|
<div class="dropdown">
|
|
<button class="dropbtn">Boards
|
|
<i class="fa fa-caret-down"></i>
|
|
</button>
|
|
<div class="dropdown-content">
|
|
<a href="%CONTENT_DIR%/boards/">Board 1</a>
|
|
<a href="#">Board 2</a>
|
|
<a href="#">Board 3</a>
|
|
</div>
|
|
</div>
|
|
|
|
<li><a href="%CONTENT_DIR%/about/">About</a></li>
|
|
<li class="right">%LOGIN_LINK%</li>
|
|
</ul>
|
|
<br />
|
|
<div class="container">
|
|
<div class="item-1">
|
|
<h1> <center>Log in to your ThreadR account</center> </h1>
|
|
</div>
|
|
<div class="item-2 form">
|
|
<p>
|
|
<?php
|
|
if (isset($_GET['error'])){
|
|
if ($_GET['error'] == "credentials"){
|
|
echo "Invalid credentials. Try again:";
|
|
}
|
|
if ($_GET['error'] == "session"){
|
|
echo "Your session has been closed. We are sorry for the inconvenience.";
|
|
}
|
|
} else {
|
|
echo "Login:";
|
|
}
|
|
?></p>
|
|
<form action="%CONTENT_DIR%/login/redirect.php" method="post">
|
|
<input type="text" name="username" maxlength="20" placeholder="Username" />
|
|
<input type="password" name="password" maxlength="256" placeholder="Password" />
|
|
<p></p>
|
|
<input type="submit" value="Log in" />
|
|
</form>
|
|
<p></p>
|
|
</div>
|
|
<div class="item-3">
|
|
<p></p>
|
|
<a href="%CONTENT_DIR%/signup/"> <button> Register </button> </a>
|
|
<p></p>
|
|
</div>
|
|
<!-- <div class="item-4">
|
|
<center><a href="https://lostcave.ddnss.de%CONTENT_DIR%/about/">About</a></center>
|
|
</div> -->
|
|
</div>
|
|
</body>
|
|
</html>
|