include 'posts-table.php' ?>
function startpost($title, $date, $author) {
print "
";
print "
$title
";
}
function endpost() {
print "";
print "
";
print "";
}
function printpost($PostName)
{
global $postsdir, $posts;
startpost($posts[$PostName]['title'],$posts[$PostName]['date'],$posts[$PostName]['author']);
include "$postsdir/$PostName";
endpost();
}
function viewpost($PostName, $SideBar)
{
global $postsdir, $posts;
if ($SideBar == "off") {
print "
\n";
endpost();
}
function includepost($PostName)
{
global $postsdir, $posts;
$title = $posts[$PostName]['title'];
print "
";
print "
$title
";
include "$postsdir/$PostName";
print "
";
}
function viewpostsummary($PostName)
{
global $postsdir, $posts;
startpost($posts[$PostName]['title'],$posts[$PostName]['date'],$posts[$PostName]['author']);
include "$postsdir/$PostName.s";
print "