<?

if(isset($_COOKIE["usNick"]) && isset($_COOKIE["usPass"]))
{

$user=uc($_COOKIE["usNick"]);

require('config.php');
$sql = "SELECT * FROM tb_users WHERE username='$user'";
$result = mysql_query($sql);        
$row = mysql_fetch_array($result);
mysql_close($con);

include('blocks/userstats.html');

}
else
{

include('blocks/login.html');
}

?>
