had to edit your version you was using echo " on line 179 and also " inside the echo tested should work now dominic
<?php
/*-----------------------------------------------------
-- Login Page
-- Graphics By Zero-Affect
-- Coded by Zero-Affect
-- Brought to you by Heaven-Designs
-- Made on: 26/7/2008
-----------------------------------------------------*/
session_start();
include "config.php";
global $_CONFIG;
define("MONO_ON", 1);
require "class/class_db_{$_CONFIG['driver']}.php";
$db=new database;
$db->configure($_CONFIG['hostname'],
$_CONFIG['username'],
$_CONFIG['password'],
$_CONFIG['database'],
$_CONFIG['persistent']);
$db->connect();
$c=$db->connection_id;
$set=array();
$settq=$db->query("SELECT * FROM settings");
while($r=$db->fetch_row($settq))
{
$set[$r['conf_name']]=$r['conf_value'];
}
print <<<EOF
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$set['game_name']}</title>
<script language="JavaScript">
<!--
function getCookieVal (offset) {
var endstr = document.cookie.indexOf (";", offset);
if (endstr == -1)
endstr = document.cookie.length;
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {
var arg = name + "=";
var alen = arg.length;
var clen = document.cookie.length;
var i = 0;
while (i < clen) {
var j = i + alen;
if (document.cookie.substring(i, j) == arg)
return getCookieVal (j);
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return null;
}
function SetCookie (name,value,expires,path,domain,secure) {
document.cookie = name + "=" + escape (value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
}
function DeleteCookie (name,path,domain) {
if (GetCookie(name)) {
document.cookie = name + "=" +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
"; expires=Thu, 01-Jan-70 00:00:01 GMT";
}
}
// -->
</script>
<head>
<style type="text/css">
<!--
body {
background-color: #000000;
background-image:url(images/lgridb.png);
margin-top: 0px;
margin-bottom: 0px;
font-family:Palatino Linotype;font-size:12px;color: white;
scrollbar-base-color: black;
scrollbar-arrow-color: red;
scrollbar-DarkShadow-Color: black;
}
a:visited,a:active,a:link { color: gray;text-decoration: none; }
a:hover { color: silver;text-decoration: overline underline;background: none; }
table,tr,td { font-family:Palatino Linotype;font-size: 12px; }
.button
{
font-family:Palatino Linotype;
font-size:12;
color:#ffffff;
background-color: red;
}
input,textarea,dropdown{
font-family:Palatino Linotype;
font-size:12;
color:#ffffff;
background-color: black;
}
..submit{
font-family:Palatino Linotype;
font-size:12;
color:#000000;
background-color: red;
}
img { border:none; }
textarea { font-family:Palatino Linotype;font-size:12px;color: black; }
.table2 {
}
.center {
width:932px;
// background-color:#ffffff;
background-image:url(images/lgridb.png);
vertical-align:top;
text-align:center;
}
.table {
background-color:#000000;
}
.table3 {
background-color:#000000;
}
.table td {
background-color:#000000;
height:22px;
}
.table3 td {
background-color:#000000;
}
td .alt {
background-color:#000000;
height:22px;
}
td .h {
background-image:url(header.jpg);
background-repeat:repeat-x;
font-weight: bold;
background-color:#222;
}
.table th {
background-image:url(header.jpg);
background-repeat:repeat-x;
font-weight: bold;
background-color:#000000;
}
.linegrad2 {
background-image:url(linegrad.PNG);
background-repeat:repeat-y;
background-align: right;
width:2px;
}
.navi {
background-image:url(header.jpg);
background-repeat:repeat-x;
font-weight: bold;
background-color:#000000;
}
-->
</style>
</head>
<body onload="getme();">
<center>
<table width="1005" border="0" cellpadding="0" cellspacing="0" class="table2" height=100%>
<tr>
<td class="center">[img=/images/lheader.png]
EOF;
$IP = ($_SERVER['REMOTE_ADDR']);
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>");
}
$year=date('Y');
echo "
<table width='100%' valign='center' align='center'>
<tr bgcolor='black'>
<th width='20%'><a href='register.php' target='_blank'>Register</a></th>
<th width='20%'><a href='fpass.php' target='_blank'>Forgot Password</a></th>
<th width='20%'><a href='Screenshots' target='_blank'>Screenshots</a></th>
<th width='20%'><a href='Rules' target='_blank'>Rules</a></th>
<th width='20%'><a href='Terms Of Service' target='_blank'>Terms Of Service</a></th>
</tr>
</table>
<table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbc.png' align='left'>
<tr>
<td height='76' colspan='3' valign='top'><table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbt.png'>
<tr>
<td width='184' height='10'></td>
</tr><tr>
<td height='33' align='center' valign='bottom'><font face='Arial, Helvetica, sans-serif'><b>Login</b></font></td>
</tr><tr>
<td height='26'> </td>
</tr></table></td></tr><tr>
<td width='17' height='114'> </td>
<td width='374' height='50' valign='top'><font face='Arial, Helvetica, sans-serif'><center>
<form action='authenticate.php' method='post'>
<table border=0 width=20%>
<td>Username:</td><td><input type='text' name='username' id='username'></td><tr>
<td>Password:</td><td><input type='password' name='password' id='password'></td><tr>
<tr align=right><td colspan='2' align='right' valigh='right'><input type=image src=/images/Login.png class=submit name=submit></form></td></tr>
</table>
</center></font>
</td>
<td width='19'> </td></tr><tr>
<td height='62' colspan='3' valign='top'>[img=images/lbb.png]</td>
</tr></table>";
echo "
<table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbc.png' align='right'>
<tr>
<td height='76' colspan='3' valign='top'><table width='374' border='0' cellpadding='0' cellspacing='0' background='images/lbt.png'>
<tr>
<td width='184' height='10'></td>
</tr><tr>
<td height='33' align='center' valign='bottom'><font face='Arial, Helvetica, sans-serif'><b>About {$set['game_name']}</b></font></td>
</tr><tr>
<td height='26'> </td>
</tr></table></td></tr><tr>
<td width='17' height='114'> </td>
<td width='374' height='50' valign='top'><font face='Arial, Helvetica, sans-serif'><center>
<table border=0>
<tr align=center>
<td width=20%>{$set['game_description']}</td>
</tr></table>
</center></font>
</td>
<td width='19'> </td></tr><tr>
<td height='62' colspan='3' valign='top'>[img=images/lbb.png]</td>
</tr></table>
<b>Brought to you by Zero.Affect
© Heaven-Designs™ {$year}-2009.</b>";
print <<<OUT
</td>
</tr>
</table>
OUT;
?>