forked from ofarukcaki/dataleaks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
header.php
29 lines (29 loc) · 1.85 KB
/
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
24
25
26
27
28
29
<?php if(!isset($_SESSION)){session_start();} ?>
<nav>
<title>DataLeaks</title>
<div class="nav-wrapper">
<a href="#" data-activates="mobile-demo" class="button-collapse"><i class="material-icons">menu</i></a>
<a href="index.php" class="brand-logo">
<img id="lg" src="images/logo.png">
</a>
<ul class="right hide-on-med-and-down">
<li class="lulu"><a href="index.php">Home<i class="material-icons left" id="homeicon">home</i></a></li>
<!--<?php
// Üye girişi yapılmamışsa veya subscription yoksa Purchase sayfasını göster
if(!isset($_SESSION['sub']) || (isset($_SESSION['sub']) && $_SESSION['sub'] ==0 )){ echo '<li class="lulu"><a href="purchase.php">Purchase<i class="material-icons left" id="prchsn" >attach_money</i></a></li>';
} ?>-->
<li class="lulu"><a href="purchase.php">Purchase<i class="material-icons left" id="prchsn" >attach_money</i></a></li>
<li class="lulu"><a href="tos.php">TOS</a></li>
<li class="lulu"><a href="faq.php">FAQs</a></li>
<li class="lulu"><a href="home.html">Contact</a></li>
<?php if(empty($_SESSION)){
// Üye giriş yapmışsa register ve login sayfasını gizle
echo '<li class="lulu" id="reg_btn"><a href="register.php">Register</a></li>'.'<li><a id="login-btn" class="waves-effect btn" href="login.php">Login</a></li>';
}
if(!empty($_SESSION)){
echo '<li class="lulu"><a href="logout.php">Logout</a></li>';
}
?>
</ul>
</div>
</nav>