-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
37 lines (33 loc) · 1.15 KB
/
header.php
File metadata and controls
37 lines (33 loc) · 1.15 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
<link rel="stylesheet" href="./css/global.css">
<div class=header>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<td class=h_options width="25%" onClick="location.href='./home.php'">Home <sub>[Logged
in as <?php if (isset($_SESSION['username'])) {
echo $_SESSION['username'];
} else if (isset($_SESSION['guestusername'])) {
echo $_SESSION['guestusername'];
}?>]
</sub>
</td>
<?php if (isset($_SESSION['uid'])){
?> <td class=h_options width="25%"
onClick="location.href='./profile.php?uid=<?php echo $_SESSION['uid'] ?>'">View
My Profile</td>
<?php } ?>
<td class=h_options width="25%" onClick="location.href='./logout.php'">Logout
</td>
<td class=h_options width="25%"><form method=POST
action=searchcontent.php?>
Search : <input type=text name=tagsearch><input type=hidden name=uid
value=<?php if (isset($_SESSION['uid'])){
echo $_SESSION['uid'];
}
else if (isset($_SESSION['guestid'])){
echo $_SESSION['guestid'];
}?>>
<input type=submit value="Search">
</form>
</td>
</table>
</div>
<div class=seperator></div>