-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
26 lines (26 loc) · 1014 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
24
25
26
<div id='header'>
<div class="left"><span class="back"><?php if($_SERVER['HTTP_REFERER']){?><a href="<?php echo $_SERVER['HTTP_REFERER']; ?>" title='Previous Page'><i class="fas fa-arrow-left"></i></a><?php } ?></span>   <a href='index.php' title='<?php echo $appname." - Home"; ?>'><?php echo $appname; ?></a></div>
<div class="right" align="right">
<?php
if(!$_SESSION['polluserid'] || !$_SESSION['polllog']){
?>
<a href='register.php'><button class="removebutton">Register</button></a>   <a href="login.php" class="logintext">Login</a>
<?php
}
else{
?>
<a href='usercp.php' title="User CP"><i class="fas fa-user-cog"></i></a>    
<?php
if($_SESSION['polladmin']==true){
?>
<a href='admin' title='Admin CP'><i class="fas fa-cog"></i></a>
<?php
}
?>
   
<a href="logout.php" title='Logout'><button class="removebutton">Logout</button></a> 
<?php
}
?>
</div>
</div>