<?php session_start(); include "dbconnection.php"; if (isset($_SESSION['user_loged_id'])) { $session_id = $_SESSION['user_loged_id']; $user_detail = getUserById($_SESSION['user_loged_id']); $user = mysql_fetch_array($user_detail); $user_points = countUserPointByUserId($_SESSION['user_loged_id']); $user_point = mysql_fetch_array($user_points); } else { header("location:maverick-game-user-login"); } ?> <!DOCTYPE HTML> <html> <head> <title><?php echo $_SESSION['loged_fullname']; ?> 's Profile</title> <meta name="description" content="" /> <meta name="keywords" content="" /> <link rel="shortcut icon" href="favicon.png" type="image/x-icon"/> <link href='http://fonts.googleapis.com/css?family=PT+Sans:400,700' rel='stylesheet' type='text/css' /> <link href='http://fonts.googleapis.com/css?family=Didact+Gothic' rel='stylesheet' type='text/css'> <link rel="stylesheet" type="text/css" href="assets/css/style.css"/> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<div class="col-md-8"><ul class="gamepoint"> <li><a href="game-point-leader-board">All Time </a></li> <li><a href="game-point-weekly-leader-board">This Week</a></li> <li><a href="game-point-daily-leader-board">Today </a></li> </ul></div> <div class="clearfix"></div> <div class="highscore"> <div class="row"> <div class="col-md-12"> <h3>All Time Leaderboard</h3> </div> <?php if (isset($_SESSION['user_loged_id'])) { $user_information = getUserById($_SESSION['user_loged_id']); $u_info = mysql_fetch_array($user_information); $current_user = countUserPointByUserId($_SESSION['user_loged_id']); if ($current_user > 0) { $user_current_score = mysql_fetch_array($current_user); } $utilize = countUtilizeUserPointByUserId($_SESSION['user_loged_id']); $utilize_point = mysql_fetch_array($utilize); ?> <?php if ($user_current_score['user_id'] > 0) { ?> <div class="bdr-bot-red"> <div class="col-md-1 nopad-right"> <img src="user_images/<?php echo $u_info['photo']; ?> " width="39" height="39" alt=""> </div>