Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 8 → Rev 12

/_taios.php
51,7 → 51,7
write('<br />');
if ($this->isLoggedIn())
{
$this->drawMenuItem('Manage Account', 'admim/?id=' . $this->getLoggedInUser()->ID);
$this->drawMenuItem('Manage Account', 'admin/account.php?id=' . $this->getLoggedInUser()->ID);
$this->drawMenuItem('Logout', 'logout-do.php');
}
else
268,6 → 268,28
$this->drawError('Cannot find blog post, #' . $id);
}
function getGetID()
{
$id = $_GET['id'];
if (empty($id))
{
$id = 1;
}
return $id;
}
function getPostID()
{
$id = $_POSt['id'];
if (empty($id))
{
$id = 1;
}
return $id;
}
}
 
class User
/admin/index.php
11,6 → 11,16
 
write('<h3><a href="account.php?id=' . $user->ID. '">Manage Account</a></h3>');
 
if ($page->isUserAdmin($user))
{
write('<h3><a href="all-accounts.php">Manage All Accounts</a></h3>');
write('<h3><a href="all-blog-posts.php">Manage All Blog Posts</a></h3>');
write('<h3><a href="all-blog-comments.php">Manage All Blog Comments</a></h3>');
write('<h3><a href="all-forum-categories.php">Manage All Forum Categories</a></h3>');
write('<h3><a href="all-forum-topics.php">Manage All Forum Topics</a></h3>');
write('<h3><a href="all-forum-posts.php">Manage All Forum Posts</a></h3>');
}
 
$page->drawFooter();
 
?>
/install.sql
29,6 → 29,7
CREATE TABLE BlogComments
(
ID INT NOT NUll AUTO_INCREMENT,
ParentID INT,
AuthorID INT,
PostID INT,
Title TEXT,