Ok help from djkanna
Header.php
<?php
class headers {
function startheaders() {
global $ir, $set;
echo <<<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>{$set['game_name']}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.over {
background-image: url(images/nav2.gif);
}
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: xxx-small;
color: #FFFFFF;
font-family:calibri, helvetica, arial, geneva, sans-serif; font-size: xxx-small;;color: black;
}
table,tr,td { font-family:helvetica, arial, geneva, sans-serif;font-size: 12px; }
img { border:none; }
textarea { font-family:helvetica, arial, geneva, sans-serif;font-size:12px;color: black; }
a:link {
font-weight: bold;
color: 5A9F00;
text-decoration: none;
}
a:hover {
font-weight: bold;
color: #FFFFFF;
}
a:visited {
color: 5A9F00;
}
.table {
background-color:#000000;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#DEDEDE;
height:22px;
}
.table3 td {
background-color:#CCCCCC;
}
td .alt {
background-color:#EEEEEE;
height:22px;
}
td .h {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
.table th {
background-image:url(tablehgrad.png);
background-repeat:repeat-x;
font-weight: bold;
background-color: #D6D6D6;
}
-->
</style>
<style type="text/css">
<!--
input {
font-family: Verdana, Arial, Helvetica, sans-serif;
color: #FFFFFF;
border: 1px;
background-color: #4A4A4A;
}
-->
</style>
</head>
<body bgcolor="#262626" onLoad="MM_preloadImages('images/showshoutboxover.gif')">
<table width="407" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>[img=images/topleftheader.jpg]</td>
<td>[img=images/topdigitanimated.gif]
[img=images/topbaranimated.gif]</td>
<td>[img=images/toprightheader.jpg]</td>
</tr>
</table></td>
</tr>
<tr>
<td>[img=images/header_blank.jpg]</td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>[img=images/tleftm.gif]</td>
<td valign="top">[img=images/bottombaranimated.gif]
[url="#"][img=images/showshoutbox_blank.gif][/url]
</td>
<td>[img=images/tlrightm.gif]</td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="172" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/bgleftnav.gif">
<tr>
<td>[img=images/navigation.gif]</td>
</tr>
<tr>
<td><table width="90%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><font size="1">[b]
EOF;
}
function userdata($ir,$lv,$fm,$cm,$dosessh=1)
{
global $db,$c,$userid, $set;
$IP = $_SERVER['REMOTE_ADDR'];
$IP = mysql_real_escape_string($IP);
$db->query("UPDATE users SET laston=unix_timestamp(),lastip='$IP' WHERE userid=$userid");
if(!$ir['email'])
{
global $domain;
die ("<body>Your account may be broken. Please mail help@{$domain} stating your username and player ID.");
}
if($dosessh && ($_SESSION['attacking'] || $ir['attacking']))
{
print "You lost all your EXP for running from the fight.";
$db->query("UPDATE users SET exp=0,attacking=0 WHERE userid=$userid");
$_SESSION['attacking']=0;
}
$enperc=(int) ($ir['energy']/$ir['maxenergy']*100);
$wiperc=(int) ($ir['will']/$ir['maxwill']*100);
$experc=(int) ( $ir['exp']/$ir['exp_needed']*100);
$brperc=(int) ($ir['brave']/$ir['maxbrave']*100);
$hpperc=(int) ($ir['hp']/$ir['maxhp']*100);
$enopp=100-$enperc;
$wiopp=100-$wiperc;
$exopp=100-$experc;
$bropp=100-$brperc;
$hpopp=100-$hpperc;
$d="";
$u=$ir['username'];
if($ir['donatordays']) { $u = "<font color=red>{$ir['username']}</font>";$d="[img=donator.gif]"; }
$gn="";
global $staffpage;
print <<<OUT
[b]Name:[/b] $gn{$u} [{$ir['userid']}] $d
[b]Money:[/b] {$fm}
[b]Level:[/b] {$ir['level']}
[b]Crystals:[/b] {$ir['crystals']}
[[url='logout.php']Emergency Logout[/url]]
<hr />
[b]Energy:[/b] {$enperc}%
<img src=greenbar.png width=$enperc height=10><img src=redbar.png width=$enopp height=10>
[b]Will:[/b] {$wiperc}%
<img src=bluebar.png width=$wiperc height=10><img src=redbar.png width=$wiopp height=10>
[b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']}
<img src=yellowbar.png width=$brperc height=10><img src=redbar.png width=$bropp height=10>
[b]EXP:[/b] {$experc}%
<img src=navybar.png width=$experc height=10><img src=redbar.png width=$exopp height=10>
[b]Health:[/b] {$hpperc}%
<img src=greenbar.png width=$hpperc height=10><img src=redbar.png width=$hpopp height=10>
<hr />
OUT;
}
function menuarea()
{
include "mainmenu.php";
print <<<OUT
[/b]</font></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>[img=images/bleft.gif]</td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/mcbg.gif">
<tr>
<td>[img=images/maincontent_blank.gif]</td>
</tr>
<tr>
<td><table width="95%" height="100%" border="0" align="top" cellpadding="0" cellspacing="1">
<tr>
<td width="10%" ><div align="center"><font size="1">
OUT;
global $ir,$c;
if($ir['fedjail'])
{
$q=$db->query("SELECT * FROM fedjail WHERE fed_userid=$userid");
$r=$db->fetch_row($q);
die("[b]<font color=red size=+1>You have been put in the {$set['game_name']} Federal Jail for {$r['fed_days']} day(s).
Reason: {$r['fed_reason']}</font>[/b]</body></html>");
}
if(file_exists('ipbans/'.$IP))
{
die("[b]<font color=red size=+1>Your IP has been banned from {$set['game_name']}, there is no way around this.</font>[/b]</body></html>");
}
if($ir['hospital'])
{
print "[b]NB:[/b] You are currently in hospital for {$ir['hospital']} minutes.
";
}
if($ir['jail'])
{
print "[b]NB:[/b] You are currently in jail for {$ir['jail']} minutes.
";
}
print "[url='donator.php'][b]Donate to {$set['game_name']} now for game benefits![/b][/url]
";
global $ir,$c;
$bgcolor = 'FFFFFF';
}
function smenuarea()
{
include "smenu.php";
print <<<OUT
[/b]</font></div></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>[img=images/bleft.gif]</td>
</tr>
</table></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/mcbg.gif">
<tr>
<td>[img=images/maincontent_blank.gif]</td>
</tr>
<tr>
<td><table width="95%" height="100%" border="0" align="top" cellpadding="0" cellspacing="1">
<tr>
<td width="10%" ><div align="center"><font size="1">
OUT;
}
function endpage()
{
global $db;
print <<<OUT
</td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center">[img=images/copyright_do_not_remove.gif]</div></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
<map name="Map">
<area shape="rect" coords="304,4,531,41" href="http://www.zymic.com" target="_blank" alt="Zymic.com - Free templates, tutorials and much more free webmaster resources!">
</map>
</body>
</html>
</html>
OUT;
}
}
?>
LInk to Download Image : http://www.zshare.net/download/60901137e0e5cb25/
Note: use this header.php and replace the one in the file
Screeny ? www.velocity-islands.co.uk Login page but as a layout for inside