Subversion Repositories taios

Compare Revisions

Ignore whitespace Rev 40 → Rev 42

/blog/post-add.php
6,7 → 6,7
 
if (isset($_POST['title']) && isset($_POST['content']) && isset($_POST['catagory']) && isset($_POST['parentID']))
{
$page->query('insert into BlogPosts VALUES(0, "' . $page->getLoggedInUser. '", "' . $_POST['title'] . '", "' . $_POST['content'] . '", NOW(), "' . $_POST['catagory'] . '", ' . $_POST['parentID'] . ', 0)');
$page->query('insert into BlogPosts VALUES(0, ' . $_POST['parentID'] . ', "' . $page->getLoggedInUser. '", "' . $_POST['title'] . '", "' . $_POST['content'] . '", NOW(), "' . $_POST['catagory'] . '", 0)');
$page->redirect("index.php");
}
 
/_taios.php
308,7 → 308,7
function getPostID()
{
$id = $_POSt['id'];
$id = $_POST['id'];
if (empty($id))
{
$id = 1;