Code: Select all
<?php
include_once 'connect.php';
include_once 'bannerbox.php';
?>
<link href="style.css" rel="stylesheet" type="text/css" />
<?php
$playerinfo="SELECT * from player where name='Bryan'";
$playerinfo2=mysql_query($playerinfo) or die((mysql_error()));
$playerinfo3=mysql_fetch_array($playerinfo2);
$experienceneeded = ($playerinfo3['level'] * 30) * 1.5;
$experience2 = $experienceneeded - $playerinfo3['experience'];
if ($playerinfo3['experience'] >= $experienceneeded){
echo "<meta http-equiv='refresh' content='0;url=http://www.immortal.x10.mx/levelplayer.php'>";
}
?>
if ($playerinfo3['statadd'] > 0){
?>
<div id="profile">;
<?php
echo "<table border='1' width='330' height='470' cellspacing='1' bordercolor=green><tr><td bgcolor='2e652e' align='left' valign='top' style='vertical-align:top'><img src='hacker.jpg' width='330' height='470' align='top'></td></tr></table>";
?>
</div>
<div id="statbar">
<?php
echo "<table border='1' width='350' height='20' cellspacing='1' bordercolor=green><tr><td width='30%' bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b>Energy " . $playerinfo3['maxenergy'] . "</b></td><td background='home.jpg'><a href='energy.php' style='text-decoration: none'><font color='2bab4c'><center>Increase Energy</font></a></center></tr></table>";
echo "<table border='1' width='350' height='20' cellspacing='1' bordercolor=green><tr><td width='30%' bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b>Tech " . $playerinfo3['maxtech'] . "</b></td><td background='home.jpg'><a href='energy.php' style='text-decoration: none'><font color='2bab4c'><center>Increase Tech</font></center></tr></table>";
echo "<table border='1' width='350' height='20' cellspacing='1' bordercolor=green><tr><td width='30%' bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b>Attack " . $playerinfo3['attack'] . "</b></td><td background='home.jpg'><a href='energy.php' style='text-decoration: none'><font color='2bab4c'><center>Increase Attack</font></center></tr></table>";
echo "<table border='1' width='350' height='20' cellspacing='1' bordercolor=green><tr><td width='30%' bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b>Defense " . $playerinfo3['defence'] . "</b></td><td background='home.jpg'><a href='energy.php'style='text-decoration: none'><font color='2bab4c'><center>Increase Defense</font></center></tr></table>";
echo "<table border='1' width='350' height='20' cellspacing='1' bordercolor=green><tr><td width='30%' bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b>Health " . $playerinfo3['maxhealth'] . "</b></td><td background='home.jpg'><a href='energy.php' style='text-decoration: none'><font color='2bab4c'><center>Increase Health</font></center></tr></table>";
exit;
?>
</div>
}else{
<div id="profile">;
<?php
echo "<table border='1' width='1005' height='20' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><center>" . $playerinfo3['name'] . " -- Level: " . $playerinfo3['level'] . " -- Hacker</b></font></td></tr></table><br>";
echo "<table border='1' width='330' height='470' cellspacing='1' bordercolor=green><tr><td bgcolor='2e652e' align='left' valign='top' style='vertical-align:top'><img src='hacker.jpg' width='330' height='470' align='top'></td></tr></table>";
?>
</div>
<div id="nextlevel">
<?php
echo "<table border='1' width='400' height='20' cellspacing='1' bordercolor=green><tr><td bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b><center>You need " . $experience2 . " experience points to reach the next level</center></b></td></tr></table>";
?>
</div>
<div id="stats">
<?php
echo "<table border='1' width='400' height='20' cellspacing='1' bordercolor=green><tr><td width='400' height='20' bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b>Skill Points</b></td></tr>";
echo "<td bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b><br>Energy " . $playerinfo3['maxenergy'] . " Do more missions</b>";
echo "<font color='2bab4c'><b><br><br>Tech " . $playerinfo3['maxtech'] . " Have more fights (2 points ea.)</b>";
echo "<font color='2bab4c'><b><br><br>Attack " . $playerinfo3['attack'] . " Be more effective in combat</b>";
echo "<font color='2bab4c'><b><br><br>Defence " . $playerinfo3['defence'] . " Survive longer in combat</b>";
echo "<font color='2bab4c'><b><br><br>Health " . $playerinfo3['maxhealth'] . " Survive longer in combat<br></b></td></tr></table>";
?>
</div>
<div id="fightstats">
<?php
echo "<table width='400' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b>Fight Stats</td></tr></table>";
echo "<table width='400' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><br>Ranking<br></b><font color='2bab4c'><br><b>Wins<br></b><font color='2bab4c'><b><br>Losses<br><br></b></td>";
echo "<td width='50%' bgcolor='000000' align='left' valign='top' style='vertical-align:top'><font color='2bab4c'><b><br><center>" . $playerinfo3['ranking'] . "</center></b>";
echo "<font color='2bab4c'><b><br><center>" . $playerinfo3['win'] . "</center></b>";
echo "<font color='2bab4c'><b><br><center>" . $playerinfo3['lose'] . "</center><br></b></td></tr></table>";
?>
</div>
<div id="weapon">
<?php
echo "<table width='1005' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><center>Weapons</center></td></tr></table>";
echo "<table width='1005' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><br></b></td></tr></table>";
?>
</div>
<div id="specielitem">
<?php
echo "<table width='1005' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><center>Special Items</center></td></tr></table>";
echo "<table width='1005' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><br></b></td></tr></table>";
?>
</div>
<div id="vehicle">
<?php
echo "<table width='1005' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><center>Vehicles</center></td></tr></table>";
echo "<table width='1005' border='1' cellspacing='1' bordercolor=green><tr><td bgcolor='000000'><font color='2bab4c'><b><br></b></td></tr></table>";
}
?>
</div>