Начат запил страницы отображающей пост

This commit is contained in:
2024-04-27 20:47:41 +03:00
parent 62b7b68976
commit e538a76b09
9 changed files with 237 additions and 17 deletions

View File

@@ -26,10 +26,10 @@ if (isset($_POST) && $_POST) {
$result = Post_Create_Method($_POST, $_FILES);
if ($result->IsError()) { // Something happened
NTFY_AddNotice("Failed to create post! Reason:<br>" . $result->GetError());
} /*else { // All OK
header("Location: .");
} else { // All OK
header("Location: ./?do=view_post&id=" + strval($result->GetData()));
exit();
} TODO: redirect to page with new post */
}
} else {
NTFY_AddNotice("You must supply image and tags for post");
}