Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 41 → Rev 43

/_taios.php
119,11 → 119,11
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>');
 
$ids = $this->findIDs('BlogPosts', 'WHERE ParentID = ' . $id);
$ids = $this->findIDs('BlogPosts', 'WHERE ParentID=' . $id);
for ($i = 0; $i < count($ids); $i++)
{
write('<p class="indent">');
$this->drawBlogPostTree($i);
$this->drawBlogPostTree($ids[$i]);
write('</p>');
}
 
/blog/post-add.php
6,7 → 6,7
 
if (isset($_POST['title']) && isset($_POST['content']) && isset($_POST['catagory']) && isset($_POST['parentID']))
{
$page->query('insert into BlogPosts VALUES(0, "' . $page->getLoggedInUser. '", "' . $_POST['title'] . '", "' . $_POST['content'] . '", NOW(), "' . $_POST['catagory'] . '", ' . $_POST['parentID'] . ', 0)');
$page->query('insert into BlogPosts VALUES(0, ' . $_POST['parentID'] . ', "' . $page->getLoggedInUser. '", "' . $_POST['title'] . '", "' . $_POST['content'] . '", NOW(), "' . $_POST['catagory'] . '", 0)');
$page->redirect("index.php");
}