-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.php
46 lines (45 loc) · 1.13 KB
/
main.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
42
43
44
45
46
<?php
session_start();
if (!isset($_SESSION["username"])){
header("location: index.php");
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style/style2.css" />
<title>Document</title>
</head>
<body id="hero">
<div id="bg">
<div class="container2">
<span id="nav-bar-comp">
<a href="main.php">Home</a>
<a href="cv.php">CV</a>
<a href="gallery.php">Gallery</a>
<a href="ContactInfo.php">Contact Me</a>
</span>
<?php
if (isset($_SESSION["username"])) {
echo '<span id ="right">Welcome, ' . $_SESSION["firstname"] ;
echo '<br><a href="be/logout.php" id = "logout">Logout</a></span>';
}
?>
</div>
<div class="hero container">
<div>
<h1>
Hi there, I'm
<span></span>
</h1>
<h1>
Nader Halawani
<span></span>
</h1>
</div>
</div>
</div>
</body>
</html>