/** * xml for edit post * @param $post_id post id * @param $topic_id topic id */ function editPostXml($post_id, $topic_id) { $cu = $this->getUrlsXml(); if (!$topic_id && $post_id) { $db = new DbForum(); $a = $db->getPostIds($post_id); $topic_id = $a['topic_id']; } return <<<EOS <root> \t{$cu} \t<edit_post> \t\t<post_id>{$post_id}</post_id> \t\t<topic_id>{$topic_id}</topic_id> \t</edit_post> </root> EOS; }