/styles.css |
---|
3,7 → 3,7 |
color: #000000; |
font-family: Droid Sans, Tahoma, sans-serif; |
font-size: 11pt; |
font-size: 10pt; |
margin: 0px; |
padding: 0px; |
46,7 → 46,7 |
} |
p, table, span { |
font-size: 11pt; |
font-size: 10pt; |
margin: 8px; |
margin-left: 16px; |
} |
92,7 → 92,7 |
.sidebar { |
float: left; |
width: 146px; |
width: 156px; |
padding: 0px; |
padding-left: 32px; |
border-right: 0px solid #000089; |
128,7 → 128,7 |
.content { |
top: 0px; |
left: 180px; |
left: 190px; |
position: absolute; |
margin-right: 32px; |
} |
147,9 → 147,13 |
} |
.code { |
border: 1px solid #333333; |
border-top: 2px solid #999999; |
border-bottom: 2px solid #999999; |
margin: 14px; |
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); |
196,7 → 197,10 |
'/\[url\](.+?)\[\/url\]/is', |
'/\[url=(.+?)\](.+?)\[\/url\]/is', |
'/\[code\](.+?)\[\/code\]/is', |
'/\[img\](.+?)\[\/img\]/is' |
'/\[img\](.+?)\[\/img\]/is', |
'/\[ul\](.+?)\[\/ul\]/is', |
'/\[ol\](.+?)\[\/ol\]/is', |
'/\[li\](.+?)\[\/li\]/is' |
); |
$html = array( |
206,7 → 210,10 |
'<a href="$1">$1</a>', |
'<a href="$1">$2</a>', |
'<div class="code">$1</div>', |
'<img src="$1" />' |
'<img src="$1" />', |
'<ul>$1</ul>', |
'<ol>$1</ol>', |
'<li>$1</li>' |
); |
$newstr = preg_replace($bbcode, $html, $newstr); |
539,6 → 546,7 |
public $parent; |
public $title; |
public $description; |
} |
class ForumPost |
/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); |
/blog/index.php |
---|
5,6 → 5,8 |
$page = new Taios_Page('Blog Posts', '../'); |
$page->drawHeader(); |
$page->drawBlogCategoriesMenu(); |
write('<br /><h3>RSS</h3>'); |
$page->drawMenuItem('RSS Feed', 'blog/rss.php'); |
$page->drawMiddle(); |
if ($page->isUserGM($page->getLoggedInUser())) |
/blog/rss.php |
---|
0,0 → 1,32 |
<?php |
require '../_taios.php'; |
$page = new Taios_Page('Blog RSS Feed', '../'); |
write('<?xml version="1.0" encoding="UTF-8" ?>'); |
write('<rss version="2.0">'); |
write('<channel>'); |
write('<title>Tim32 Blog RSS</title>'); |
write('<description>This is the RSS feed for the Tim32 Blog.</description>'); |
write('<link>http://tim32.org/blog/</link>'); |
$ids = $page->findIDs('BlogPosts', 'WHERE ParentID = -1 ORDER BY DatePosted DESC'); |
for ($i = 0; $i < count($ids); $i++) |
{ |
$id = $ids[$i]; |
$post = $page->getBlogPost($id); |
write('<item>'); |
write('<title>' . $post->title . '</title>'); |
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('</item>'); |
} |
write('</channel>'); |
write('</rss>'); |
?> |
/photos/album.php |
---|
95,7 → 95,7 |
} |
$filename = $directory . $file; |
$size = getImageSizes($filename, 300, 300); |
$size = getImageSizes($filename, 280, 260); |
write('<td><a href="' . str_replace(" ", "%20", $filename) . '"><img width="' . $size[0] . '" height="' . $size[1] . '" src="' . str_replace(" ", "%20", $filename) . '" /></a></td>'); |
/register.php |
---|
59,7 → 59,7 |
</tr> |
</table> |
<p style="text-align: center;">By registering for this blog, you agree to be reasonable in all your suggestion/accusations and advoid subjectivity. Suvbjective posts/comments are subject to removal by a Subject of the Tim32 Admins. Please only put forward thought-through arguments with evidence or logic to support them.</p> |
<p style="text-align: center; color: #666666">By registering to Tim32, you agree to be reasonable in all your suggestion/accusations and advoid subjectivity. Suvbjective posts/comments are subject to removal by a Subject of the Tim32 Admins.</p> |
</form> |
<?php |