70 lines
2.0 KiB
PHP
70 lines
2.0 KiB
PHP
<?php
|
|
|
|
session_start(); /* Starts the session */
|
|
|
|
if($_SESSION['Active'] == false){ /* Redirects user to Login.php if not logged in */
|
|
header("location:login.php");
|
|
exit;
|
|
}
|
|
?>
|
|
|
|
<!-- Show password protected content down here -->
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
|
|
<link rel="stylesheet" type="text/css" href="css/stylesheet.css">
|
|
<title>Logged in</title>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header clearfix">
|
|
<nav>
|
|
<ul class="nav nav-pills pull-right">
|
|
<li role="presentation" class="active"><a href="../index.php">Home</a></li>
|
|
<li role="presentation"><a href="../about.php">About</a></li>
|
|
<li role="presentation"><a href="../photo-du-mois.php">Photo du mois</a></li>
|
|
<li role="presentation"><a href="../maps.php">Maps</a></li>
|
|
</ul>
|
|
</nav>
|
|
<h3 class="text-muted">Sur-le-sentier by @clicclac</h3>
|
|
</div>
|
|
|
|
<div class="jumbotron">
|
|
<h1>Status: logged in</h1>
|
|
<p class="lead">A password protected area for admin pages!</p>
|
|
<p><a class="btn btn-lg btn-success" href="logout.php" role="button">Log out</a></p>
|
|
</div>
|
|
|
|
<div class="row marketing">
|
|
<div class="col-lg-6">
|
|
<h4>Inserting</h4>
|
|
<p><a href="../insert_bdd.php">Insert_bdd</a></p>
|
|
|
|
<h4>Viewing</h4>
|
|
<p><a href="../view_bdd.php">View_bdd</a></p>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-6">
|
|
<h4>Cleaning</h4>
|
|
<p><a href="../clean_bdd.php">Clean_bdd</a></p>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<footer class="footer">
|
|
<p>© 2013-<?php echo date('Y'); ?> sur-le-sentier.fr</p>
|
|
</footer>
|
|
|
|
</div>
|
|
|
|
<script src="../../assets/js/ie10-viewport-bug-workaround.js"></script>
|
|
</body>
|
|
</html>
|