-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathheader.php
39 lines (39 loc) · 1.21 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
30
31
32
33
34
35
36
37
38
39
<?php
include("functions.php");
connect();
$uid=$_SESSION['uid'];
?>
<html>
<head>
<title>KMKingdoms</title>
<link href="style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="header"><?php if(!isset($_SESSION['uid'])){ ?> Work in progress. <?php }else{ ?> Hello your Lordship, Your ID is <?php echo $uid; }?></div>
<div id="container">
<div id="navigation"><div id="nav_div">
<?php
if(isset($_SESSION['uid'])){
include("safe.php");
?>
» <a href="main.php">Your Stats</a><br /><br />
» <a href="rankings.php">Players</a><br /><br />
» <a href="battler.php">Battle Players</a><br /><br />
» <a href="units.php">Your Units</a><br /><br />
» <a href="weapons.php">Your Weapons</a><br /><br />
» <a href="editaccount.php">Edit Account</a><br /><br />
» <a href="logout.php">Logout</a>
<?php
}else{
?>
<form action="login.php" method="post">
Username: <input type="text" name="username"/><br />
Password: <input type="password" name="password"/><br />
<input type="submit" name="login" value="login"/>
</form>
» <a href="register.php">Register</a>
<?php
}
?>
</div></div>
<div id="content"><div id="con_div">