Subversion Repositories taios

Rev

Rev 75 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

require '_taios.php';

$page = new Taios_Page('Home');
$page->drawHeader();
write('<h3>Pages</h3>');
$page->drawMenuItem('Biggles', '/~biggles/');
$page->drawMenuItem('Freddie', '/~freddie/');
$page->drawMenuItem('Muzer', '/~muzer/');
$page->drawMenuItem('Sh4rk', '/~szabot/');
$page->drawMenuItem('Tom', '/~tom/');
$page->drawMiddle();

?>

<p class="bold">Welcome to Tim32!</p>
<p>Tim32 is a 10 year-old laptop running Ubuntu Server Edition 10.04.</p>
<br />

<h3>Latest Blog Posts</h3>

<?php

$ids = $page->findIDs('BlogPosts');
for ($i = 0; $i < 5 && $i < count($ids); $i++)
{
    $id = $ids[$i];
    $post = $page->getBlogPost($id);
   
    write('<h4>' . $post->title. '</h4>');
    write('<h5 style="color: #666666;">Posted On ' . date('l j F Y', $post->datePosted) . ' by ' . $post->user->name . ' (' . $post->user->username . ')</h5>');
    write('<p>' . $post->content . '</p>');
    write('<br />');
}

if ($page->isLoggedIn())
{
    write('<h3>Actions</h3>');
    write('<h4><a href="admin/account.php?id=' . $page->getLoggedInUser()->ID . '">Manage Account</a></h4>');
}

$page->drawFooter();

?>