rendered paste body<?
// Initialize session data
session_start();
// Don't allow guests
if( empty($_SESSION['id']) ) {
header( 'Location: index.php' );
exit();
}
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title>Guerilla Warfare</title>
</head>
<body bgcolor="#000000">
<table width="998" height="20" bgcolor="#246824">
<tr>
<th><a href="index.php">Home</a></th>
<th><a href="register.php">Register</a></th>
<th><a href="guide.php">Guide</a></th>
<th><a href="forgot.php">Forgot Pass?</a></th>
<th><a href="contact.php">Contact Us</a></th>
<th><a href="about.php">About Us</a></th>
</tr>
</table>
<table width="998" height="400" bgcolor="#123456">
<tr>
<td>
<?
include ("config.php");
include_once("class_db_mysql.php");
$db->query( 'SELECT COUNT(user_id) AS c FROM users WHERE commander="'.$_SESSION['user_id'].'" AND state="'.STATE_ACTIVE.'" AND rank>0' );
$row = $db->fetch();
$db->free();
$b = $result['username'];
?>
Player Information
</td>
<td>Stats</td>
</tr>
<tr>
<td>
Username:<?= $b; ?></td><td></td></tr></table>
<table width="998" height="40" bgcolor="#246824">
<tr>
<td align="center">© 2007-2008 Lord Warriors</td>
</tr></table>
</body>
</html>