Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 104 → Rev 110

/admin/all-blog-posts.php
15,11 → 15,11
write('<table>');
write('<tr>');
write('<td class="bold">ID</td>');
write('<td class="bold">ParentID</td>');
write('<td class="bold">AuthorID</td>');
write('<td class="bold">Parent</td>');
write('<td class="bold">Author</td>');
write('<td class="bold">Title</td>');
write('<td class="bold">Content</td>');
write('<td class="bold">DatePosted</td>');
write('<td class="bold">Date Posted</td>');
write('<td class="bold">Category</td>');
write('<td class="bold">Spam</td>');
write('</tr>');
32,16 → 32,16
write('<td><a href="../blog/edit-post.php?id=' . $post->ID . '">' . $post->ID . '</a></td>');
if ($post->parent == -1)
{
write('<td>' . $post->parent . '</td>');
write('<td>No Parent</td>');
}
else
{
write('<td>' . $post->parent->ID . '</td>');
write('<td>' . $post->parent->title . '</td>');
}
write('<td>' . $post->user->ID . '</td>');
write('<td><a href="account.php?id=' . $post->author->ID . '">' . $post->author->name . '</a></td>');
write('<td>' . $post->title . '</td>');
write('<td>' . $post->content . '</td>');
write('<td>' . $post->datePosted . '</td>');
write('<td>' . date('j/m/Y H:i', $post->datePosted) . '</td>');
write('<td>' . $post->category . '</td>');
write('<td>' . $post->spam . '</td>');
write('</tr>');
/blog/add-post.php
4,7 → 4,8
 
$page = new Taios_Page('Blog Posts', '../');
 
if ($this->
if (!$page->isUserGM($page->getLoggedInUser()))
$page->redirect("index.php");
 
if (isset($_POST['title']) && isset($_POST['content']) && isset($_POST['catagory']) && isset($_POST['parentID']))
{
/_taios.php
312,7 → 312,7
$post->parent = $this->getBlogPost($row['ParentID']);
}
$post->author = $this->getUserByID($row['AuthorID']);
$post-user = $this->getUserByID($row['AuthorID']); // For some older pages
$post->user = $this->getUserByID($row['AuthorID']); // For some older pages
$post->title = $row['Title'];
$post->content = $row['Content'];
$post->datePosted = strtotime($row['DatePosted']);