Subversion Repositories taios

Rev

Rev 118 | Rev 120 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
113 freddie 1
<?php
2
 
3
require '../_taios.php';
4
 
5
$page = new Taios_Page('Blog Posts', '../');
6
 
119 freddie 7
if (isset($_GET['id']))
8
{
9
    if ($page->isUserAdmin($page->getLoggedInUser()) || $page->getLoggedInUser == $page->getBlogPost($_GET['id'])->author->ID)
10
        $page->delBlogPost($_GET['id']);
11
}
113 freddie 12
$page->redirect("index.php");
13
 
14
?>