<?php
/*
* Script name: Points4Prize
* Author: Soft Projects
* Date created: 15/07/2015
*/
?>
<nav id="menu" class="main-menu width-fluid">
<nav id="menu" class="main-menu">
<div class="blur-before"></div>
<a href="<?php echo $GLOBALS['site_url'];?>index.php" style="float: left;" class="header-logo">
<img src="<?php echo $GLOBALS['site_url']; ?>assets/images/logo.png" class="logo" style="padding:3px;" alt="" title="" /></a>
<ul class="load" style="float: right;" rel="Main menu">
<li>
<a href="index.php"><i class="fa fa-home"></i><strong>Home</strong></a>
</li>
<li>
<a href="/prizes"><i class="fa fa-gift"></i><strong>Prize</strong></a>
</li>
<li>
<a href="/games"><i class="fa fa-gamepad"></i><strong>Games</strong></a>
</li>
<li>
<a href="/winners"><i class="fa fa-trophy"></i><strong>Winning</strong></a>
</li>
<li><a href="/rankings"><i class="fa fa-signal"></i><strong>Rankings</strong></a></li>
<?php
if (isset($_SESSION['logged_in'])) {
if (isset($_SESSION['user'])) {
$user = str_replace(" ", "", $_SESSION['user']);
} elseif (isset($_COOKIE['user'])) {
$user = str_replace(" ", "", $_COOKIE['user']);
}
$user = sprintf("%s", mysql_real_escape_string($user));
?>
<li><a href="/cp"><i class="fa fa-user"></i><strong>
<?php echo $user;?></strong></a>
<ul class="sub-menu">
<li><a href="/cp">Profile</a></li>
<li><a href="/pm">Messages</a></li>
<li><a href="/online">Online Players</a></li>
<li><a href="/smspoints">SMS points</a></li>
<li><a href="/settings">Settings</a></li>
<li><a href="/logout">Exit</a></li>
</ul>
</li>
<?php
}else{
?>
<li><a href="#"><span><i class="fa fa-key"></i><strong>User</strong></span></a>
<ul class="sub-menu">
<li><a href="/login">Login</a></li>
<li><a href="/register">Register</a></li>
<li><a href="/lost">Forgotten password?</a></li>
</ul>
</li>
<?php } ?>
<li><a href="/contact-us"><i class="fa fa-phone"></i><strong>Contact</strong></a></li>
<!-- <li class="no-icon"><a href="#"><strong>Without icon</strong></a></li> -->
</ul>
</nav>
</nav>