forked from jackcogdill/FB-hack-attack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
36 lines (32 loc) · 798 Bytes
/
header.php
File metadata and controls
36 lines (32 loc) · 798 Bytes
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
<div id="header">
<?php
require_once($up . "secure.php");
$name = $_SESSION['user']['first_name'] . ' ' . $_SESSION['user']['last_name'];
$pts = $_SESSION['user']['points'];
/////////////////////////////////
if (trim($up) !== '') {
?>
<a class="logo" href=<?php echo '"'. $up .'"'; ?>><div> Hack<br>Attack </div></a>
<?php
}
/////////////////////////////////
?>
<div id="head-non-logo">
<div id="user-info">
<?php echo $name . ' | ' . $pts . " points";?>
</div>
<?php
if (strpos($_SERVER['REQUEST_URI'], 'challenge') !== false) {
?>
<a href="<?php echo $up . 'logout'; ?>" onclick="return confirm('Are you sure you want to logout?\nYou will leave the game.')">Logout</a>
<?php
}
else {
?>
<a href="<?php echo $up . 'logout'; ?>">Logout</a>
<?php
}
?>
</div>
</div>
<div id="wrap">