Rev 427 | Rev 429 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
169 | tom | 1 | <?php |
2 | |||
3 | require '_taios.php'; |
||
4 | |||
5 | $page = new Taios_Page('Home'); |
||
6 | $page->drawHeader(); |
||
7 | write('<h3>Pages</h3>'); |
||
8 | $page->drawMenuItem('Biggles', '/~biggles/'); |
||
333 | tom | 9 | $page->drawMenuItem('Freddie (FredFace)', '/~freddie/'); |
169 | tom | 10 | $page->drawMenuItem('Muzer', '/~muzer/'); |
11 | $page->drawMenuItem('Sh4rk', '/~szabot/'); |
||
333 | tom | 12 | $page->drawMenuItem('Tom (TomMan)', '/~tom/'); |
428 | tom | 13 | write('<br /><h4>Downtime-o-meter</h4>'); |
427 | tom | 14 | write('<p>No planned down.</p>'); |
169 | tom | 15 | $page->drawMiddle(); |
16 | |||
17 | ?> |
||
18 | |||
19 | <p class="bold">Welcome to Tim32!</p> |
||
20 | <p>Tim32 is a 10 year-old laptop running Ubuntu Server Edition 10.04.</p> |
||
21 | <br /> |
||
22 | |||
393 | tom | 23 | <h3 title="Take the Tim32 challenge: http://tim32.org/challenge/">Latest Blog Posts</h3> |
427 | tom | 24 | <p><a href="blog/rss.php">Rss Feed</a></p> |
169 | tom | 25 | |
26 | <?php |
||
27 | |||
28 | $ids = $page->findIDs('BlogPosts', 'WHERE ParentID = -1 ORDER BY DatePosted DESC'); |
||
417 | tom | 29 | for ($i = 0; $i < 4 && $i < count($ids); $i++) |
169 | tom | 30 | { |
31 | $id = $ids[$i]; |
||
32 | $post = $page->getBlogPost($id); |
||
33 | |||
187 | tom | 34 | write('<h4><a href="blog/post.php?id=' . $post->ID . '">' . $post->title. '</a></h4>'); |
169 | tom | 35 | write('<h5 style="color: #666666;">Posted On ' . date('l j F Y', $post->datePosted) . ' by ' . $post->user->name . ' (' . $post->user->username . ')</h5>'); |
175 | tom | 36 | write('<p>' . $page->replaceBBCode($post->content) . '</p>'); |
169 | tom | 37 | write('<br />'); |
38 | } |
||
39 | |||
40 | $page->drawFooter(); |
||
41 | |||
42 | ?> |