mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-04-04 05:52:58 +00:00
98 lines
3.4 KiB
PHP
98 lines
3.4 KiB
PHP
<?php
|
|
include_once "include/MessageCookie.php";
|
|
include_once "include/SessionManager.php";
|
|
$register_msg = MessageCookie::getMsg("register");
|
|
$user = SessionManager::get();
|
|
?>
|
|
|
|
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<title>Home - Much Assembly Required</title>
|
|
<meta charset="utf-8"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<!--[if lte IE 8]>
|
|
<script src="assets/js/ie/html5shiv.js"></script><![endif]-->
|
|
<link rel="stylesheet" href="assets/css/main.css"/>
|
|
<!--[if lte IE 8]>
|
|
<link rel="stylesheet" href="assets/css/ie8.css"/><![endif]-->
|
|
</head>
|
|
<body>
|
|
<div id="page-wrapper">
|
|
|
|
<!-- Nav -->
|
|
<nav id="nav">
|
|
<ul>
|
|
<li><a href="index.php">Home</a></li>
|
|
<li><a href="game.php">Game</a></li>
|
|
<li><a href="leaderboard.php">Leaderboard</a></li>
|
|
<li class="current">
|
|
<a href="#">Account</a>
|
|
<ul>
|
|
<?php if ($user) { ?>
|
|
<li><a href="account.php"><?php echo $user["username"] ?></a></li>
|
|
<li><a href="logout.re.php">Logout</a></li>
|
|
<?php } else { ?>
|
|
<li><a href="login.php">login</a></li>
|
|
<?php } ?>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<div id="main" class="container">
|
|
<div class="row 200%">
|
|
<div class="12u">
|
|
<div class="container">
|
|
<!-- Account information -->
|
|
<section>
|
|
<p>You are logged in as <span style="font-style: italic"><?php echo $user["username"] ?></span>
|
|
</p>
|
|
|
|
<?php
|
|
if ($register_msg) {
|
|
echo "<span style='color:#ff4943'>" . $register_msg . "</span></div>";
|
|
}
|
|
?>
|
|
|
|
<!-- Password reset form -->
|
|
<form action="changePassword.re.php" method="post">
|
|
<div class="row uniform">
|
|
<div class="6u 12u(xsmall)">
|
|
<label for="password">Current password</label>
|
|
<input id="password" name="password" type="password">
|
|
</div>
|
|
|
|
<div class="6u 12u(xsmall)">
|
|
<label for="new_password">New Password</label>
|
|
<input id="new_password" name="new_password" type="password">
|
|
</div>
|
|
|
|
<div class="6u 12u(xsmall)">
|
|
<input type="submit" value="Reset password">
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
</section>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<?php // include "footer.inc.html" ?>
|
|
|
|
|
|
</div>
|
|
|
|
<!-- Scripts -->
|
|
<script src="assets/js/jquery.min.js"></script>
|
|
<script src="assets/js/jquery.dropotron.min.js"></script>
|
|
<script src="assets/js/skel.min.js"></script>
|
|
<script src="assets/js/util.min.js"></script>
|
|
<!--[if lte IE 8]>
|
|
<script src="assets/js/ie/respond.min.js"></script><![endif]-->
|
|
<script src="assets/js/main.min.js"></script>
|
|
|
|
</body>
|
|
</html>
|