Ok, den kommer her:
<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>GameReport - A Danish Community site</title>
<style type="text/css">
body, td {
font: 10px Verdana;
color: #4f4f4f;
line-height: 14px;
}
a:link {color: #4f4f4f; text-decoration: none;}
a:actiev {color: #4f4f4f; text-decoration: none;}
a:visited {color: #4f4f4f; text-decoration: none;}
a:hover {color: #1f1f1f; text-decoration: none;}
.box {
border-color: #182d3a;
border-style: solid;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
background-color: white;
color: #9b9b9b;
font: 10px Verdana;
line-height: 15px;
}
#pic {
float:left;
}
.bottompics {
position:relative;
bottom: 6px;
right: 10px;
}
</style>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0">
<table cellspacing="0" cellpadding="0" height="100%" width="964" background="images/2table_overbottom.jpg" align="center">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" style="background: url(images/2table_body.jpg) no-repeat fixed;" width="100%" height="100%">
<tr>
<td colspan="5" height="141" valign="top"></td>
</tr>
<tr>
<td width="10" valign="top">
</td>
<td width="190" valign="top">
<table cellspacing="0" cellpadding="0">
<tr>
<td height="125" valign="top"></td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top"></td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top"></td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top"></td>
</tr>
</table>
</td>
<td width="343" valign="top" rowspan="3"></td>
<td width="228" valign="top" rowspan="3">
</td>
<td width="193" valign="top">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td height="125" valign="top"></td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top"></td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top"></td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25" valign="bottom" background="images/2table_bottom.jpg" align='right'></td>
</tr>
</table>
</body>
</html>
her er hele koden:
<?php session_start(); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>GameReport - A Danish Community site</title>
<style type="text/css">
body, td {
font: 10px Verdana;
color: #4f4f4f;
line-height: 14px;
}
a:link {color: #4f4f4f; text-decoration: none;}
a:actiev {color: #4f4f4f; text-decoration: none;}
a:visited {color: #4f4f4f; text-decoration: none;}
a:hover {color: #1f1f1f; text-decoration: none;}
.box {
border-color: #182d3a;
border-style: solid;
border-top-width: 1px;
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
background-color: white;
color: #9b9b9b;
font: 10px Verdana;
line-height: 15px;
}
#pic {
float:left;
}
.bottompics {
position:relative;
bottom: 6px;
right: 10px;
}
</style>
</head>
<body topmargin="0" bottommargin="0" leftmargin="0">
<table cellspacing="0" cellpadding="0" height="100%" width="964" background="images/2table_overbottom.jpg" align="center">
<tr>
<td valign="top">
<table border="0" cellspacing="0" cellpadding="0" style="background: url(images/2table_body.jpg) no-repeat fixed;" width="100%" height="100%">
<tr>
<td colspan="5" height="141" valign="top"></td>
</tr>
<tr>
<td width="10" valign="top">
</td>
<td width="190" valign="top">
<!-- Navigation Bar -->
<table cellspacing="0" cellpadding="0">
<tr>
<td height="125" valign="top">
<!-- Navigation Bar -->
<font color="orange">»</font> <a href="index.php">Nyheder</a><br>
<font color="orange">»</font> <a href="news.php?action=archive">Nyhedsarkiv</a><br>
<font color="orange">»</font> <a href="interviews.php?action=archive">Interviews</a><br>
<font color="orange">»</font> <a href="articles.php?action=archive.php">Artikler</a><br>
<font color="orange">»</font> <a href="redaktionen.php">Redaktion</a><br>
<font color="orange">»</font> <a href="seek.php">Søg</a><br>
<font color="orange">»</font> <a href="jobs.php">Jobs</a><br>
<font color="orange">»</font> <a href="server.php">Server</a><br>
<font color="orange">»</font> <a href="contact.php">Kontakt</a>
</td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top">
<!-- Forums -->
<font color="orange">»</font> <a href="forum/default.php">Alle Forums</a><br>
<font color="orange">»</font> <a href="forum/forum.php?id=2">GameReport.dk</a><br>
<font color="orange">»</font> <a href="forum/forum.php?id=4">Counter-Strike</a><br>
<font color="orange">»</font> <a href="forum/forum.php?id=5">BattleField 1942</a><br>
<font color="orange">»</font> <a href="forum/forum.php?id=6">Warcraft III</a><br>
<font color="orange">»</font> <a href="forum/forum.php?id=7">Quake III</a><br>
<font color="orange">»</font> ---------- <b>Offtopics:</b><br>
<font color="orange">»</font> <a href="forum/forum.php?id=15">Hardware</a><br>
<font color="orange">»</font> <a href="forum/forum.php?id=14">Software</a><br>
</td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top">
<!-- Login -->
<?php
include("inc_menu_login.php");
?>
</td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top">
<!-- Reklame -->
</td>
</tr>
</table>
</td>
<td width="343" valign="top" rowspan="3">
<!-- Content -->
<table cellspacing='0' cellpadding='0' width='100%'>
<tr>
<td colspan='6' height='8'></td>
</tr>
<tr>
<td height='15' background='images/dotted_bg.jpg'>Hovedkategorier:</td>
<td height='15' background='images/dotted_bg.jpg'><a href='index.php'><img border='0' src='images/icon_gr.gif' alt='Vis alle nyheder'></a></td>
<td height='15' background='images/dotted_bg.jpg'><a href='index.php?action=1'><img border='0' src='images/icon_cs.gif' alt='Counter-Strike'></a></td>
<td height='15' background='images/dotted_bg.jpg'><a href='index.php?action=2'><img border='0' src='images/icon_battlefield.gif' alt='BattleField 1942'></a></td>
<td height='15' background='images/dotted_bg.jpg'><a href='index.php?action=3'><img border='0' src='images/icon_warcraft3.gif' alt='Warcraft III'></a></td>
<td height='15' background='images/dotted_bg.jpg'><a href='index.php?action=4'><img border='0' src='images/icon_quake3.gif' alt='Quake III'></a></td>
</tr>
<tr>
<td colspan='6' height='6'></td>
</tr>
</table>
<?php
if(!$_GET['action']) {
include("inc_connection.php");
include("inc_tables.php");
$query = mysql_query("Select * from $Tnews order by ID desc limit 10");
$i = 1;
while($row = mysql_fetch_array($query)) {
if($i == 1) {
print "<table cellspacing='0' cellpadding='0' width='338'>
<tr>
<td width='88' align='center'><img src='$row[picture]' height='80' width='80' border='1'></td>
<td width='248'><font color='#0268a6' size='2'><b>$row[heading]</b></font><br><b>$row[author]</b> @ $row[date]<br>".substr($row[news], 0, 140)."... <a href='news.php?action=full&id=$row[ID]'><u>Læs mere</u></a></td>
</tr>
</table>";
} else {
print "<table cellspacing='0' cellpadding='0' width='338'>
<tr>
<td width='4'></td>
<td width='244'><font color='#0268a6' size='2'><b>$row[heading]</b></font><br><b>$row[author]</b> @ $row[date]<br>".substr($row[news], 0, 140)."... <a href='news.php?action=full&id=$row[ID]'><u>Læs mere</u></a></td>
<td width='90' align='center'><img src='$row[picture]' height='80' width='80' border='1'></td>
</tr>
</table>";
}
print "<center>--------------------------------------------------------------------</center><br>";
if($i == 1) { $i++; } else { $i--; };
}
} else {
include("inc_connection.php");
include("inc_tables.php");
$query = mysql_query("Select * from $Tnews where catID = $_GET[action] order by ID desc limit 10");
$i = 1;
while($row = mysql_fetch_array($query)) {
if($i == 1) {
print "<table cellspacing='0' cellpadding='0' width='338'>
<tr>
<td width='88' align='center'><img src='$row[picture]' height='80' width='80' border='1'></td>
<td width='248'><font color='#0268a6' size='2'><b>$row[heading]</b></font><br><b>$row[author]</b> @ $row[date]<br>".substr($row[news], 0, 140)."... <a href='news.php?action=full&id=$row[ID]'><u>Læs mere</u></a></td>
</tr>
</table>";
} else {
print "<table cellspacing='0' cellpadding='0' width='338'>
<tr>
<td width='4'></td>
<td width='244'><font color='#0268a6' size='2'><b>$row[heading]</b></font><br><b>$row[author]</b> @ $row[date]<br>".substr($row[news], 0, 140)."... <a href='news.php?action=full&id=$row[ID]'><u>Læs mere</u></a></td>
<td width='90' align='center'><img src='$row[picture]' height='80' width='80' border='1'></td>
</tr>
</table>";
}
print "<center>--------------------------------------------------------------------</center><br>";
if($i == 1) { $i++; } else { $i--; };
}
}
?>
</td>
<td width="228" valign="top" rowspan="3">
<!-- Headlines og Sponsors -->
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td height="213" valign="top">
<table cellspacing="0" cellpadding="0" width="100%">
<tr><td height="8" valign="top"></td></tr>
<?php
$query = mysql_query("Select * from $Tnews where head=1 order by ID desc limit 7");
while($row = mysql_fetch_array($query)) {
if(strlen($row['heading']) > 27) {
$heading = substr($row['heading'], 0, 27)."...";
} else {
$heading = $row['heading'];
}
print "<tr><td height='26' valign='top'> <font color='orange'>»</font> <a href='news.php?action=full&id=$row[ID]'>$heading</a></td></tr>";
}
?>
</table>
</td>
</tr>
<tr>
<td valign="top">
<table cellspacing="0" cellpadding="0" width="100%">
<tr><td height="12" valign="top"></td></tr>
<?php
$query = mysql_query("Select * from $Tnews where head=2 order by ID desc limit 7");
while($row = mysql_fetch_array($query)) {
if(strlen($row['heading']) > 27) {
$heading = substr($row['heading'], 0, 27)."...";
} else {
$heading = $row['heading'];
}
print "<tr><td height='26' valign='top'> <font color='orange'>»</font> <a href='news.php?action=full&id=$row[ID]'>$heading</a></td></tr>";
}
?>
</table>
</td>
</tr>
</table>
</td>
<td width="193" valign="top">
<!-- Latest New Bar -->
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td height="125" valign="top">
<!-- Latest News -->
<?php
include("inc_connection.php");
include("inc_tables.php");
$query = mysql_query("Select ID,catID,head,heading from $Tnews where head=0 order by ID desc limit 9");
while($row = mysql_fetch_array($query)) {
if(strlen($row['heading']) > 27) {
$heading = substr($row['heading'], 0, 23)."...";
} else {
$heading = $row['heading'];
}
print "<font color='orange'>»</font> <a href='news.php?action=full&id=$row[ID]'>$heading</a><br>";
}
?>
</td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top">
<!-- Latest Intervies -->
<?php
include("inc_connection.php");
include("inc_tables.php");
$query = mysql_query("Select ID,heading from $Tinterviews order by ID desc limit 9");
while($row = mysql_fetch_array($query)) {
if(strlen($row['heading']) > 27) {
$heading = substr($row['heading'], 0, 23)."...";
} else {
$heading = $row['heading'];
}
print "<font color='orange'>»</font> <a href='interviews.php?action=full&id=$row[ID]'>$heading</a><br>";
}
?>
</td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top">
<!-- Latest Articles -->
<?php
include("inc_connection.php");
include("inc_tables.php");
$query = mysql_query("Select ID,heading from $Tarticles order by ID desc limit 9");
while($row = mysql_fetch_array($query)) {
if(strlen($row['heading']) > 27) {
$heading = substr($row['heading'], 0, 23)."...";
} else {
$heading = $row['heading'];
}
print "<font color='orange'>»</font> <a href='articles.php?action=full&id=$row[ID]'>$heading</a><br>";
}
?>
</td>
</tr>
<tr>
<td height="37"></td>
</tr>
<tr>
<td height="125" valign="top">
<!-- Sponsors -->
<?php include("inc_menu_sponsors.php"); ?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="25" valign="bottom" background="images/2table_bottom.jpg" align='right'>
<span class='bottompics'>
<a href="irc:///#gamereport"><img src='images/icon_mirc.gif' width='14' height='14' border='0'></a>
<a href="#" onClick="this.style.behavior='url(#default#homepage)'; this.setHomePage('http://www.gamereport.dk');"><img src='images/icon_home.gif' width='14' height='14' border='0'></a>
<a href="#" onClick="window.external.AddFavorite(top.location.href, document.title);"><img src='images/icon_bookmark.gif' width='14' height='14' border='0'></a>
</span>
</td>
</tr>
</table>
<!-- Start på ZIP Stat kode -->
<script language="JavaScript" type="text/javascript">
<!--
far="Andre"; jav="Ved ikke"; skh="Andre"; jav=navigator.javaEnabled();
ref=""+escape(top.document.referrer); nav=navigator.appName;
if (navigator.appName == "Netscape" && (navigator.appVersion.charAt(0) == "2" || navigator.appVersion.charAt(0) == "3")) {skriv=false;} else {skriv=true;}
if (skriv==true) { skh=screen.width + "x" + screen.height;
if (nav != "Netscape"){far=screen.colorDepth;} else {far=screen.pixelDepth;}
puri="brugernavn=gamereport&version=150&ssto="+skh+"&referer="+ref+"&colors="+far+"&java="+jav+"&js=true&billed=trans";
document.write("<img height=\\"1\\" width=\\"1\\" border=\\"0\\" src=\\"http://www.zipstat.dk/cgi-bin/zipstat/zipstat.cgi2?"+puri+"\\" alt=\\"\\" align=left>"); }
//-->
</script> <noscript>
<img height="1" width="1" border="0" src="http://www.zipstat.dk/cgi-bin/zipstat/zipstat.cgi2?brugernavn=gamereport&js=false&billed=trans" alt="" align=left></noscript>
<!-- Slut på ZIP Stat kode -->
</body>
</html>