Created
September 27, 2018 11:16
-
-
Save fannyhasbi/0a1a52d66cf820c1085e98e5e788e913 to your computer and use it in GitHub Desktop.
An ordinary dashboard page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
if(!isset($_SESSION['login'])){ | |
header('Location: ./login.php'); | |
} | |
?> | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dashboard</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous"> | |
</head> | |
<body> | |
<div class="container-fluid"> | |
<div class="jumbotron alert-warning text-center"> | |
<h1>Dashboard</h1> | |
<h2>This is secret page</h2> | |
<a href="./logout.php" class="btn btn-default btn-lg">Logout</a> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment