-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathhomepage.php
More file actions
45 lines (39 loc) · 1.32 KB
/
homepage.php
File metadata and controls
45 lines (39 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Seven Inc.</title>
<link rel="stylesheet" href="css/style.css">
</head>
<body bgcolor="#191919">
<h1 style="font-size:56px; color:#f7b32d"> SE7EN<img src="logo.png" alt="Logo" style="width:100px; height:115px" align="left"></h1>
<hr style="border-width:3px; border-color:#f7b32d">
<h5 align="right" style="color:#f7b32d">
<a href="index.php" style="text-decoration:none; color:#f7b32d"> HOME </a> |
<a href="register.php" style="text-decoration:none; color:#f7b32d"> REGISTRATION </a> |
<a href="index.php" style="text-decoration:none; color:#f7b32d"> LOGIN </a>
</h5>
<div id="main-wrapper">
<center>
<h2>Profile Page</h2>
<h3>Welcome
<?php echo $_SESSION['username'] ?>
</h3>
<?php echo '<img class="avatar" src="'.$_SESSION["imglink"].'">';?>
</center>
<form class="myform" action="homepage.php" method="post">
<input name="logout" type="submit" id="logout_btn" value="Log Out"/><br>
</form>
<?php
if(isset($_POST['logout']))
{
session_destroy();
header('location:index.php');
}
?>
</div>
<footer align="right" style="font-size:10px; color:#191919">© 2018 | Jubayer Alam | 1420268042 | NSU</footer>
</body>
</html>