<?php
ob_start();
include "config.php";
if($site["maintainance"] == '1'){ header("Location: maintainance.php"); }
?>
<link rel="stylesheet" type="text/css" href="style.css">
<!--[if lt IE 8]>
<style type="text/css">
.nav{
padding:5px;
</style>
<![endif]-->
</head>
<body>
<center>
<table border="0" cellpadding="0" cellspacing="0" width="830" id="main"><tr>
<td rowspan="4" colspan="1" width="9" valign="top" id="leftshadow"> </td>
<td rowspan="1" colspan="1" valign="top">
<img width="812" height="150" src="images/banner.png"></td>
<td rowspan="4" colspan="1" width="9" valign="top" id="rightshadow"> </td>
<tr>
<td rowspan="1" colspan="1" valign="middle" class="nav center">
<a href="index.php">Home</a>
<a href="news.php">News</a>
<a href="radio.php">Radio</a>
<a href="rarevalues.php">Rare Values</a>
<a href="jobs.php">Jobs</a>
<a href="guides.php">Guides</a>
<a href="staff.php">Staff</a>
<a href="contact.php">Contact Us</a>
</td>
</tr>
<tr>
<td rowspan="1" colspan="1" valign="top" width="800" class="content padded">
<div style="float: left; padding-left: 1px;">
<div id="left">
<div id="contenttop">Contents</div>
<div class="bigcontent">
<?php
if($in["rank"] == 'Administrator'){ echo '<div class="navigation clear"><div><a href="addnews.php">add article »</a></div></div>
<br><br>'; }
$news = mysql_query("SELECT * FROM news ORDER BY `id` DESC");
if(mysql_num_rows($news) == 0){
echo 'There are currently no news articles!<br><br>Click <a href="index.php">here</a> to go home.';
}else{
echo '<ul class="archive">';
while($n = mysql_fetch_array($news)){
$id = $n["id"];
$title = $n["title"];
$author = $n["author"];
$date = $n["date"];
$comments = $n["comments"];
if($comments == '1'){
$cd = 'Comment';
}else{
$cd = 'Comments';
}
echo '<li>
<div class="post-title"><a href="news.php?id='.$id.'">'.$title.'</a></div>
<div class="post-details">Posted on '.$date.' | Posted by <a href="user.php?user='.$author.'">'.$author.'</a> | <a href="news.php?id='.$id.'#cmts">'.$comments.' '.$cd.'</a>'; if($in["rank"] == 'Administrator'){ echo '<a href="wjzignieuws.php">Wijzig
nieuws</a><br>'; } echo '
<br><br>'; }</div>
</li>';
}
echo '</ul>';
}
?>
</div>
<div class="content_bottom"></div>
</div>
<div id="right">
<div id="yellowtop">Latest News</div>
<div class="box">
<?php include "usersystem.php"; ?>
</div>
<div class="box_bottom"></div>
<div id="orangetop">Radio And Stats</div>
<div class="box">
<?php include "spotlight.php"; ?>
</div>
<div class="box_bottom"></div>
<div id="greentop">Latest Rares</div>
<div class="box">
This box can expand!
</div>
<div class="box_bottom"></div>
</div>
</div>
<center>
© Your Site Name
</center>
</td>
</tr>
</tr>
</table>
</center>
</body>
</noscript>
<div style="text-align: center;"><div style="position:relative; top:0; margin-right:auto;margin-left:auto; z-index:99999">
</div></div>