getPosts();
$rowIndex = 0;
if (isset($_POST["send"])) {
$form = (object) [
"title" => htmlspecialchars(trim($_POST["post-title"])),
"content" => htmlspecialchars(trim($_POST["post-content"])),
];
$post->getForm($form->title, $form->content);
$post->postUpdate();
if ($post->error == NULL) {
$post->insertPost();
header("Location: /");
}
}
?>
= $website->title; ?>: = $website->slogan; ?>
error != NULL) echo "$post->error ";
?>
|
micros
macros
gallery
|
|
getPosts()->rowCount() <= 0)
echo " There are currently no quacks in this feed. "; // rare message
foreach ($post->getPosts() as $p) {
$rowIndex++;
if ($rowIndex != $post->getPosts()->rowCount()) {
echo "";
} else {
echo "";
}
?>
= $p["author"]; ?> 
- = $p["date"]; ?>
(">Delete)
|
|
= $p["content"]; ?>
|
|
|
|