【php开源代码栏目提醒】:以下是网学会员为您推荐的php开源代码-view_post.php,希望本篇文章对您学习有所帮助。
<?php
// include function libraries
include ('include_fns.php');
$postid = $_GET['postid'];
// get post details
$post = get_post($postid);
do_html_header($post['title']);
// display post
display_post($post);
// if post has any replies, show the tree view of them
if($post['children'])
{
echo '<br /><br />';
display_replies_line();
display_tree($_SESSION['expanded'], 0, $postid);
}
do_html_footer();
?>