rendered paste body<?php
session_start();
?>
<!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" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<title>HapHazards.net</title>
<style type="text/css" media="all">@import "layout.css";</style>
</head>
<body>
<body link="black" vlink="black" alink="black">
<div id="wrapper">
<div id="content">
<div id="nav">
<h3>Navigation</h3>
<ul>
<li class="navtop"><a href="index.php" title="Home">Home</a></li>
<li><a href="oper-rules.php" title="Operator Rules">Operator Rules</a></li>
<li><a href="rules.php" title="Server Rules">Server Rules</a></li>
<li><a href="application.php" title="Apply For Staff">Apply For Staff</a></li>
<li><a href="staff.php" title="Staff Members">Staff Members</a></li>
<li><a href="quotes.php" title="Quotes">Network Quotes</a></li>
<li><a href="bug.php" title="Bug Report">Bug Report</a></li>
<li><a href="contact.php" title="Contact us">Contact Us</a></li>
</ul>
</div>
<h2 id="mainhead">HapHazards.net</h2>
<?php
require("news_cnnt.php");
$query = "SELECT id, title, author, content, lol, tag FROM gaynews";
$result = mysql_query($query);
while(list($id,$title,$author,$content,$lol,$tag) = mysql_fetch_row($result))
{
echo "<p><u><b>$title</b></u> by <i><tt>$author</tt></i> · $lol · <a href=\"/manage/delete.php\">Delete</a></p>";
echo "$content<br />$tag";
}
if (isset($_SESSION['deleted'])) {
echo '<br /><font color="red">* News deleted.</font>';
unset($_SESSION['deleted']);
}
?>
</div>
<div id="footer"><p>© Copyright 2006 HapHazards.net</p></div>
</div>
</body>
</html>