change the index page to the index for the login

This commit is contained in:
Ismail Cadaroski 2017-01-24 19:27:44 +01:00
parent dd599083d3
commit da8efe9595
1 changed files with 20 additions and 0 deletions

20
db/index.php Normal file
View File

@ -0,0 +1,20 @@
<?php
//include auth.php file on all secure pages
include("db/auth.php");
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Welcome Home</title>
<link rel="stylesheet" href="css/loginstyle.css" />
</head>
<body>
<div class="form">
<p>Welcome <?php echo $_SESSION['username']; ?>!</p>
<p>This is secure area.</p>
<p><a href="db/dashboard.php">Dashboard</a></p>
<a href="db/logout.php">Logout</a>
</div>
</body>
</html>