-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
23 lines (23 loc) · 934 Bytes
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<header>
<h1 class="header">
<a class="header" href="/">ue8d's Videos</a>
</h1 class="header">
<nav class="pc-nav">
<ul class="header">
<li class="header"><a class="header" href="/about.php">ABOUT</a></li>
<li class="header"><a class="header" href="/contact.php">CONTACT</a></li>
<?php
if ($_SESSION["role"] == 999) {
echo '<li class="header"><a class="header" href="/dbInsert.php">DBINSERT</a></li>';
}
if($_SESSION["id"] != null) {
echo '<li class="header"><a class="header" href="/mypage.php">MYPAGE</a></li>';
echo '<li class="header"><a class="header" href="/logout.php">LOGOUT</a></li>';
}else {
echo '<li class="header"><a class="header" href="/login.php">LOGIN</a></li>';
echo '<li class="header"><a class="header" href="/register.php">SIGN UP</a></li>';
}
?>
</ul>
</nav>
</header>