forked from AswinPG/FossLab
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhomepage.php
More file actions
43 lines (37 loc) · 1.16 KB
/
homepage.php
File metadata and controls
43 lines (37 loc) · 1.16 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
<?php
session_start();
?>
<!DOCTYPE html>
<html>
<head>
<title>Login page</title>
<link rel="stylesheet" href="css/styles1.css">
<script async src="https://static.addtoany.com/menu/page.js"></script>
</head>
<body style="background-color:#ffffff">
<div id="main-box">
<center>
<img src="https://png.icons8.com/color/1600/circled-user-male-skin-type-5.png" class="avatar">
<h2>Home page</h2>
<h2>Welcome....<big> <?php echo $_SESSION['username'] ?></big></h2>
</center>
<form class="myform"action="homepage.php" method="post">
<input name="logout" type="submit" id="logout_btn" value="Log Out" /><br>
</form>
<div class="a2a_kit a2a_kit_size_32 a2a_default_style" id="my_centered_buttons">
<a class="a2a_button_facebook"></a>
<a class="a2a_button_twitter"></a>
<a class="a2a_button_google_plus"></a>
<a class="a2a_button_pinterest"></a>
<a class="a2a_dd" href="https://www.addtoany.com/share"></a>
</div>
<?php
if(isset($_POST['logout']))
{
session_destroy();
header('location:index.php');
}
?>
</div>
</body>
</html>