-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.php
41 lines (36 loc) · 959 Bytes
/
home.php
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
<?php
session_start();
if (isset($_SESSION['id']) && isset($_SESSION['user_name'])) {
?>
<!DOCTYPE html>
<html>
<head>
<link rel="icon" type="image/ico" href="/favicon.ico"/>
<title>Your Profile</title>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<div class="top">
<img src="/channels4_profile.jpg" alt="">
<div>
<h1>Programing</h1>
</div>
</div>
<div class="main">
<h1>Hello, <?php echo $_SESSION['name']; ?></h1>
</div>
<div class="side">
<ul>
<li><a href="pages/About.html" target="_blank">About</a></li>
<li><a href="pages/Contact us.html" target="_blank">Contact us</a></li>
<li><a href="pages/Videos.html" target="_blank">Videos</a></li>
</ul>
</div>
</body>
</html>
<?php
}else{
header("Location: index.php");
exit();
}
?>