2020-02-24 04:43:53 +01:00
|
|
|
<?php
|
|
|
|
session_start();
|
2020-03-02 14:18:26 +01:00
|
|
|
%PLEAZE_NO_CACHE%
|
2020-03-08 04:16:27 +01:00
|
|
|
$navbar = "login";
|
2020-03-06 10:46:06 +01:00
|
|
|
if (isset($_SESSION['user_id'])){
|
2021-09-02 06:38:21 +02:00
|
|
|
%FORCE_LOGOUT%
|
2020-03-06 10:46:06 +01:00
|
|
|
}
|
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>
|
2020-03-05 04:56:06 +01:00
|
|
|
%STYLESHEET%
|
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-26 19:03:55 +01:00
|
|
|
%NAVBAR%
|
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-03-08 04:08:45 +01:00
|
|
|
<div class="item-2">
|
|
|
|
<section>
|
|
|
|
<p>
|
|
|
|
<?php
|
|
|
|
if (isset($_GET['error'])){
|
|
|
|
if ($_GET['error'] == "credentials"){
|
|
|
|
echo "Invalid credentials. Try again:";
|
|
|
|
}
|
|
|
|
if ($_GET['error'] == "session"){
|
2020-03-08 17:47:20 +01:00
|
|
|
echo "You are not logged in or your session has been closed. We are sorry for the inconvenience.";
|
2020-03-08 04:08:45 +01:00
|
|
|
}
|
|
|
|
} else {
|
|
|
|
echo "Login:";
|
2020-02-20 21:43:41 +01:00
|
|
|
}
|
2020-03-08 04:08:45 +01:00
|
|
|
?></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>
|
2020-02-19 14:48:09 +01:00
|
|
|
<p></p>
|
2020-03-08 04:08:45 +01:00
|
|
|
</section>
|
2020-02-19 14:48:09 +01:00
|
|
|
</div>
|
2020-03-08 04:16:27 +01:00
|
|
|
<div class="item-3 margin">
|
2020-02-19 14:48:09 +01:00
|
|
|
<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>
|
|
|
|
</div>
|
2020-03-09 12:21:36 +01:00
|
|
|
%BANNER_COOKIES%
|
2020-02-17 08:54:30 +01:00
|
|
|
</body>
|
2020-02-18 20:04:27 +01:00
|
|
|
</html>
|