2019-11-09 22:44:32 +01:00
|
|
|
<?php
|
|
|
|
require_once("./assets/php/utils.php");
|
|
|
|
|
|
|
|
// Check if the user is logged in, if not then redirect him to login page
|
2019-11-11 14:33:54 +01:00
|
|
|
if (!is_connected()) {
|
2019-11-09 22:44:32 +01:00
|
|
|
header("location: login.php");
|
|
|
|
exit;
|
|
|
|
}
|
|
|
|
?>
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-09 22:44:32 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-09 22:44:32 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Welcome</title>
|
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.css">
|
|
|
|
<style type="text/css">
|
2019-11-11 14:33:54 +01:00
|
|
|
body {
|
|
|
|
font: 14px sans-serif;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2019-11-09 22:44:32 +01:00
|
|
|
</style>
|
|
|
|
</head>
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-09 22:44:32 +01:00
|
|
|
<body>
|
|
|
|
<div class="page-header">
|
2019-11-11 14:33:54 +01:00
|
|
|
<h1>Hi, <b><?php echo htmlspecialchars(get_user_info_from_session_id("first_name")); ?></b>. Welcome to food-inventory.</h1>
|
2019-11-09 22:44:32 +01:00
|
|
|
</div>
|
|
|
|
<p>
|
|
|
|
<a href="reset-password.php" class="btn btn-warning">Reset Your Password</a>
|
|
|
|
<a href="logout.php" class="btn btn-danger">Sign Out of Your Account</a>
|
|
|
|
</p>
|
2019-11-11 14:33:54 +01:00
|
|
|
<p>
|
|
|
|
<a href="list-cupboards.php" class="btn btn-info">List cupboards</a>
|
|
|
|
<a href="list-products.php" class="btn btn-info">List products</a>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<a href="add-cupboard.php" class="btn btn-info">Add cupboard</a>
|
|
|
|
<a href="add-product.php" class="btn btn-info">Add product</a>
|
|
|
|
</p>
|
2019-11-09 22:44:32 +01:00
|
|
|
</body>
|
2019-11-11 14:33:54 +01:00
|
|
|
|
2019-11-09 22:44:32 +01:00
|
|
|
</html>
|