thread);
if (time() > $post->timestamp + MAXIMUM_EDIT_TIME){
echo "You can no longer edit this post.
Posts can only be edited at most ".(MAXIMUM_EDIT_TIME/60)." minutes after they have been created.";
exit();
}
if ($logged_in_user->id != $post->user) {
// Can't edit other's posts.
echo "You are not authorized to edit this post.";
exit();
}
updatePost($post->id, $_POST['content']);
if ($post->parent_post==0 and $thread->owner==$logged_in_user->id){
updateThread($thread->id, $_POST['title']);
}
header('Location: forum_thread.php?id='.$thread->id);
}
page_head('Forum');
$thread = getThread($post->thread);
$forum = getForum($thread->forum);
$category = getCategory($forum->category);
if (time() > $post->timestamp + MAXIMUM_EDIT_TIME){
echo "You can no longer edit this post.
Posts can only be edited at most ".(MAXIMUM_EDIT_TIME/60)." minutes after they have been created.";
exit();
}
if ($logged_in_user->id != $post->user) {
// Can't edit other's posts.
echo "You are not authorized to edit this post.";
exit();
}
show_forum_title($forum, $thread, $category->is_helpdesk);
echo "