125,8 → 125,6 |
if ($this->isUserNormal($this->getLoggedInUser())) |
{ |
write('<p class="bold"><a href="add-post.php?id=' . $id . '">Add Comment</a></p>'); |
if ($this->isUserAdmin($this->getLoggedInUser())) |
write(' | <p class="bold"><a href="del-post.php?id=' . $id . '">Delete Post</a></p>'); |
write('<br />'); |
} |
|
327,15 → 325,6 |
$this->drawError('Cannot find blog post, #' . $id); |
} |
|
function delBlogPost($id) |
{ |
$ids = $this->findIDs('BlogPosts', 'WHERE ParentID=' . $id); |
for ($i = 0; $i < count($ids); $i++) |
$this->delBlogPost($ids[$i]); |
|
$this->query('delete from BlogPosts where ID=' . $id); |
} |
|
function getGetID() |
{ |
$id = $_GET['id']; |