Subversion Repositories taios

Rev

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

<?php

require '../_taios.php';

$page = new Taios_Page('Blog Posts', '../');

if (isset($_GET['id']))
{
    if ($page->isUserAdmin($page->getLoggedInUser()) || $page->getLoggedInUser == $page->getBlogPost($_GET['id'])->author->ID)
        $page->delBlogPost($_GET['id']);
}
$page->redirect("index.php");

?>