rendered paste body<?php
session_start();
require_once('includes/include.php');
//unset any preview info
unset_preview();
checkremember();
$result = mysql_query("SELECT * FROM content ORDER BY ID DESC")
or die(mysql_error());
$num = mysql_num_rows($result);
echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?PHP include('title.php'); ?> » Home</title>
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div id="header">
<p class="maintitle"><?PHP include('title.php') ?></p>
<p class="slogan"><?PHP include('slogan.php') ?></p>
</div>
<div id="text">
<?php
while($row=mysql_fetch_array($result)) {
?>
<div class="titleofpost"><div class="titletext"><a href="single.php?pid=<?php echo $row['ID']; ?>"><?php echo $row
["Title"]; ?></a> </div></div>
<div class="postdata">
<div class="contentwrap">
<p class="postentry">
<p class="date">Posted on the <?php echo $row['Date']; ?> at <?php echo $row['Time']; ?>
<?php
if (show_edit_link())
{ ?>
<a href="edit.php?pid=<?php echo $row['ID']; ?>">Edit this post</a>
}
?>
</p>
<?php echo $row['Postcontent']; ?></p>
</div>
</div>
<div class="spacer"> </div>
</div>
</div>
<?php
}
}
?>
</div></div>
//extra </div>s
<div id="footer"><div class="footercontent"><?PHP include('footer.php'); ?></div></div>
</body>
</html>