Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 100 → Rev 103

/blog/add-post.php
4,6 → 4,8
 
$page = new Taios_Page('Blog Posts', '../');
 
if ($this->
 
if (isset($_POST['title']) && isset($_POST['content']) && isset($_POST['catagory']) && isset($_POST['parentID']))
{
$page->query('insert into BlogPosts VALUES(0, ' . $_POST['parentID'] . ', "' . $page->getLoggedInUser()->ID . '", "' . $_POST['title'] . '", "' . $_POST['content'] . '", NOW(), "' . $_POST['catagory'] . '", 0)');
22,7 → 24,7
 
?>
 
<form action="post-add.php" method="post">
<form action="add-post.php" method="post">
<table>
<tr>
<td class="bold">Title: </td>
30,7 → 32,7
</tr>
<tr>
<td class="bold">Content: </td>
<td><input type="text" name="content" /></td>
<td><textarea name="content" style="width: 523px; height: 543px">Content Here</textarea></td>
</tr>
<tr>
<td class="bold">Catagory: </td>
/admin/all-blog-posts.php
29,7 → 29,7
{
$post = $page->getBlogPost($ids[$i]);
write('<tr>');
write('<td>' . $post->ID . '</td>');
write('<td><a href="../blog/edit-post.php?id=' . $post->ID . '">' . $post->ID . '</a></td>');
if ($post->parent == -1)
{
write('<td>' . $post->parent . '</td>');
/admin/all-accounts.php
28,7 → 28,7
{
$user = $page->getUserByID($ids[$i]);
write('<tr>');
write('<td>' . $user->ID . '</td>');
write('<td><a href="account.php?id=' . $user->ID . '">' . $user->ID . '</a></td>');
write('<td>' . $user->accessID . '</td>');
write('<td>' . $user->username . '</td>');
write('<td>' . $user->password . '</td>');
/_taios.php
124,7 → 124,7
write('<br />');
if ($this->isUserNormal($this->getLoggedInUser()))
{
write('<p class="bold"><a href="post-add.php?id=' . $id . '">Add Comment</a></p>');
write('<p class="bold"><a href="add-post.php?id=' . $id . '">Add Comment</a></p>');
write('<br />');
}