<?phpusemystic\forum\orm\Topic;$formId="addpost";$topicId=$_GET["topic"]??thrownewException(__("Missing topic id"));$topic=newTopic();$topic->id=$topicId;if(!$db->fetch($topic)){http_response_code(404);msg_error(__("No topic exists with this id"));exit;}