threadr.lostcave.ddnss.de/threadr/login/index.php

70 lines
2.2 KiB
PHP
Raw Normal View History

2020-02-24 04:43:53 +01:00
<?php
session_start();
//todo: force log out any user if logged in on this page
2020-02-24 04:43:53 +01:00
?>
2020-02-17 08:54:30 +01:00
<!DOCTYPE html>
<html>
<head>
2020-02-19 14:48:09 +01:00
<title>ThreadR - Log In</title>
<link rel="stylesheet" type="text/css" href="%CONTENT_DIR%/style.css">
2020-02-23 20:14:28 +01:00
<link rel="icon" type="image/png" href="%CONTENT_DIR%/img/favicon-32x32.png" sizes="32x32" />
2020-02-17 09:04:49 +01:00
<meta name="viewport" content="width=device-width, initial-scale=1.0">
2020-02-17 08:54:30 +01:00
</head>
<body>
2020-02-17 09:04:49 +01:00
<ul class="topnav">
<li><a href="%CONTENT_DIR%/">%HOME_LINK%</li>
2020-02-19 22:49:13 +01:00
<li><a href="%CONTENT_DIR%/news/">News</a></li>
2020-02-24 08:36:22 +01:00
<!--<li><a href="%CONTENT_DIR%/boards/">Boards</a></li>-->
<div class="dropdown">
<button class="dropbtn">Boards
2020-02-24 08:36:22 +01:00
<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>
2020-02-24 08:36:22 +01:00
2020-02-19 14:48:09 +01:00
<li><a href="%CONTENT_DIR%/about/">About</a></li>
<li class="right">%LOGIN_LINK%</li>
2020-02-19 14:48:09 +01:00
</ul>
2020-02-19 23:17:12 +01:00
<br />
2020-02-19 14:48:09 +01:00
<div class="container">
2020-02-17 08:54:30 +01:00
<div class="item-1">
2020-02-24 08:24:55 +01:00
<h1> <center>Log in to your ThreadR account</center> </h1>
2020-02-19 14:48:09 +01:00
</div>
2020-02-24 21:12:28 +01:00
<div class="item-2 form">
2020-02-20 21:43:41 +01:00
<p>
<?php
if (isset($_GET['error'])){
2020-02-20 21:56:15 +01:00
if ($_GET['error'] == "credentials"){
2020-02-20 21:43:41 +01:00
echo "Invalid credentials. Try again:";
}
2020-02-20 21:56:15 +01:00
if ($_GET['error'] == "session"){
2020-02-20 21:57:25 +01:00
echo "Your session has been closed. We are sorry for the inconvenience.";
2020-02-20 21:43:41 +01:00
}
} else {
echo "Login:";
}
?></p>
<form action="%CONTENT_DIR%/login/redirect.php" method="post">
<input type="text" name="username" maxlength="20" placeholder="Username" />
2020-02-19 14:48:09 +01:00
<input type="password" name="password" maxlength="256" placeholder="Password" />
<p></p>
<input type="submit" value="Log in" />
</form>
2020-02-17 08:54:30 +01:00
<p></p>
2020-02-19 14:48:09 +01:00
</div>
<div class="item-3">
<p></p>
2020-02-20 21:43:41 +01:00
<a href="%CONTENT_DIR%/signup/"> <button> Register </button> </a>
2020-02-19 14:48:09 +01:00
<p></p>
</div>
2020-02-17 09:19:06 +01:00
<!-- <div class="item-4">
2020-02-19 14:48:09 +01:00
<center><a href="https://lostcave.ddnss.de%CONTENT_DIR%/about/">About</a></center>
</div> -->
</div>
2020-02-17 08:54:30 +01:00
</body>
</html>