/blog/rss.php |
---|
22,7 → 22,7 |
write('<link>http://tim32.org/blog/post.php?id=' . $id . '</link>'); |
write('<guid>' . $id . '</guid>'); |
write('<pubDate>' . date('D, d M Y H:i:s O', $post->datePosted). '</pubDate>'); |
write('<description>' . $page->replaceBBCode($post->content) . '</description>'); |
write('<description>' . str_replace(">", ">", str_replace("<", "<", $page->replaceBBCode($post->content))) . '</description>'); |
write('</item>'); |
} |
/blog/index.php |
---|
5,7 → 5,7 |
$page = new Taios_Page('Blog Posts', '../'); |
$page->drawHeader(); |
$page->drawBlogCategoriesMenu(); |
write('<h3>RSS</h3>'); |
write('<br /><h3>RSS</h3>'); |
$page->drawMenuItem('RSS Feed', 'blog/rss.php'); |
$page->drawMiddle(); |
/styles.css |
---|
153,6 → 153,7 |
background-color: #DDDDDD; |
font-family: Droid Sans Mono, Monospace, Fixed; |
font-size: 9px; |
line-height: 80%; |
} |
.copyright { |
/_taios.php |
---|
173,6 → 173,7 |
$newstr = str_replace("<", "[", $str); |
$newstr = str_replace(">", "]", $newstr); |
$newstr = str_replace("\n", '</p><p>', $newstr); |
//$newstr = str_replace("\n", '<br />', $newstr); |
$newstr = str_replace("\\'", "'", $newstr); |
$newstr = str_replace("\\\"",'"', $newstr); |
$newstr = str_replace(' ', ' ', $newstr); |
/index.php |
---|
23,7 → 23,7 |
<?php |
$ids = $page->findIDs('BlogPosts', 'WHERE ParentID = -1 ORDER BY DatePosted DESC'); |
for ($i = 0; $i < 5 && $i < count($ids); $i++) |
for ($i = 0; $i < 4 && $i < count($ids); $i++) |
{ |
$id = $ids[$i]; |
$post = $page->getBlogPost($id); |