Firstly I didn't make this I just McCoded it. ^^
Here is a demo..
http://www.clantemplates.com/templates/default_informatik/#
Please leave a link back or something.
Header.php
<?php
class headers {
function startheaders() {
global $ir;
echo <<<EOF
<html>
<head>
<title>Game</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script language="JavaScript1.2">
function high(which2){
theobject=which2
highlighting=setInterval("highlightit(theobject)",50)
}
function low(which2){
clearInterval(highlighting)
if (which2.style.MozOpacity)
which2.style.MozOpacity=0.3
else if (which2.filters)
which2.filters.alpha.opacity=25
}
function highlightit(cur2){
if (cur2.style.MozOpacity<1)
cur2.style.MozOpacity=parseFloat(cur2.style.MozOpacity)+0.1
else if (cur2.filters&&cur2.filters.alpha.opacity<100)
cur2.filters.alpha.opacity+=10
else if (window.highlighting)
clearInterval(highlighting)
}
</script>
<script language="JavaScript">
function FT_PreloadImages()
{
if (document.images) {
if (typeof(document.FT) == 'undefined') {
document.FT = new Object();
}
document.FT.loaded_images = new Array();
var argc = FT_PreloadImages.arguments.length;
for (i=0; i<argc; i++) {
document.FT.loaded_images[i] = new Image();
document.FT.loaded_images[i].src = FT_PreloadImages.arguments[i];
}
}
}
function msover(img,ref,desc) { if (document.images) { document.images[img].src = ref; window.status = desc; } return true; }
function msout(img,ref) { if (document.images) { document.images[img].src = ref; window.status = ""; } return true; }
</script>
</head>
EOF;
}
function userdata($ir,$lv,$fm,$dosessh=1)
{
global $c,$userid;
$IP = $_SERVER['REMOTE_ADDR'];
$IP = mysql_real_escape_string($IP);
mysql_query("UPDATE users SET laston=unix_timestamp(),lastip='$ip' WHERE userid=$userid",$c);
if(!$ir['email'])
{
die ("<body>Your account may be broken. Please mail [email]
[email protected][/email] stating your username and player ID.");
}
if($dosessh && $_SESSION['attacking'])
{
print "You lost all your EXP for running from the fight.";
mysql_query("UPDATE users SET exp=0 WHERE userid=$userid",$c);
$_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'];
print "<body bgcolor='#6A6A6A' style='background-image:url('images/bg.png');' topmargin='0' bgproperties='fixed'
onLoad='FT_PreloadImages("images/top/quiknav/buttons/index_on.jpg", "images/top/quiknav/buttons/forums_on.jpg",
"images/top/quiknav/buttons/roster_on.jpg", "images/top/quiknav/buttons/links_on.jpg",
"images/top/quiknav/buttons/matches_on.jpg")'>
<div align='center'><center>
<table border='0' cellpadding='0' cellspacing='0' width='100'>
<tr>
<td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%'>
<tr>
<td width='33%' valign='top' background='images/border_left.jpg'>[img=images/border_left.jpg]</td>
<td width='33%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%'>
<tr>
<td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%'>
<tr>
<td width='50%' valign='top'>[img=images/top/topleft.jpg]</td>
<td width='50%' valign='top'>[img=images/top/topright.jpg]</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%'>[img=images/top/quiknav/left.jpg][url='#'][img=images/top/quiknav/buttons/index_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/roster_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/matches_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/forums_off.jpg][/url][url='#'][img=images/top/quiknav/buttons/links_off.jpg][/url][img=images/top/quiknav/right.jpg]</td>
</tr>
<tr>
<td width='700' height='34' style='background-image:url(images/top/bottom.jpg); '></td>
</tr>
<tr>
<td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%' height='311'>
<tr>
<td width='18%' valign='top' background='images/nav/bg2.jpg' height='311'><table
border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='100%' background='images/nav/bg.bmp' valign='top'><table border='0'
cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='147' height='15' style='background-image:url(images/top/bottom.jpg); '>[img=images/nav/bar_menu.jpg]</td>
</tr>
<tr>
<td width='100%'><table border='0' cellpadding='8' cellspacing='0' width='100%'>
<tr>
<td width='100%'>[b]Name:[/b] {$u} [{$ir['userid']}]
[b]Money:[/b] {$fm}
[b]Level:[/b] {$ir['level']}
[b]Energy:[/b] {$enperc}%
<img src=bargreen.gif width=$enperc height=10><img src=barred.gif width=$enopp height=10>
[b]Will:[/b] {$wiperc}%
<img src=bargreen.gif width=$wiperc height=10><img src=barred.gif width=$wiopp height=10>
[b]Brave:[/b] {$ir['brave']}/{$ir['maxbrave']}
<img src=bargreen.gif width=$brperc height=10><img src=barred.gif width=$bropp height=10>
[b]EXP:[/b] {$experc}%
<img src=bargreen.gif width=$experc height=10><img src=barred.gif width=$exopp height=10>
[b]Health:[/b] {$hpperc}%
<img src=bargreen.gif width=$hpperc height=10><img src=barred.gif width=$hpopp height=10>
";
if($ir['fedjail'])
{
$q=mysql_query("SELECT * FROM fedjail WHERE fed_userid=$userid",$c);
$r=mysql_fetch_array($q);
die("[b]<font color=red size=+1>You have been put in the Your 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, there is no way around this.</font>[/b]</body></html>");
}
}
function menuarea()
{
include "mainmenu.php";
global $ir,$c;
print "</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width='2%' valign='top' background='images/spacer_bg.jpg' height='311'>[img=images/spacer_top.jpg]</td>
<td width='80%' valign='top' background='images/content/box/bg.jpg' height='311'><table
border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='100%'>[img=images/content/top.jpg]</td>
</tr>
<tr>
<td width='100%' background='images/content/bg.jpg' valign='top'><table border='0'
cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='2%'>[img=images/spacer1.gif]</td>
<td width='19%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%'>
<tr>
<td width='100%'>[img=images/minibox_l/top.jpg]</td>
</tr>
<tr>
<td width='100%' background='images/minibox_l/bg.jpg'><table border='0' cellpadding='0'
cellspacing='0' width='100%'>
<tr>
<td width='6%'></td>
<td width='87%' valign='top'>Last Match Results:
</td>
<td width='7%'></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%'>[img=images/minibox_l/bottom.jpg]</td>
</tr>
<tr>
<td width='100%' height='4'></td>
</tr>
</table>
</td>
<td width='2%'>[img=images/spacer2.gif]</td>
<td width='57%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%' height='1'>
<tr>
<td width='100%' height='1'>[img=images/minibox_r/top.jpg]</td>
</tr>
<tr>
<td width='100%' background='images/minibox_r/bg.jpg' height='1' valign='top'><table
border='0' cellpadding='0' cellspacing='0' width='100%'>
<tr>
<td width='3%'></td>
<td width='94%'>Maximum of 8 lines of text in these boxes.
</td>
<td width='4%'></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%' height='1'>[img=images/minibox_r/bottom.jpg]</td>
</tr>
<tr>
<td width='100%' height='4'></td>
</tr>
</table>
</td>
<td width='20%'>[img=images/spacer3.gif]</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%'>
<tr>
<td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%' background='images/content/box/topbg.jpg'>
</table>
</td>
</tr>
<td width='91%' valign='top' height='3' colspan='2'></td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0'
width='100%'>
<tr>
<td width='100%' valign='top'><table border='0' cellpadding='0' cellspacing='0' width='100%'
background='images/content/box/topbg.jpg'>
<tr>
<td width='50%'>[img=images/content/box/topleft.jpg]</td>
<td width='50%'></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%' style='padding: 5px;'>";
}
function endpage()
{
print "</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width='34%' valign='top' background='images/border_right.jpg'>[img=images/border_right.jpg]</td>
</tr>
</table>
</td>
</tr>
<tr>
<td width='100%'></td>
</tr>
</table>
</center>
</div>
</body>
</html>";
}
}
?>
Download the template http://='http://www.clantemplates.com/?module=templates&action=license&id=129']here and upload the images to your server. :)
Enjoy.
Note: You need to sign in to download.