<?php

/**
 * Enter description here...
 *
 * @author Administrator
 * @package defaultPackage
 * @rcsfile 	$RCSfile: book.php,v $
 * @revision 	$Revision: 1.2 $
 * @date 	$Date: 2009/02/13 09:37:04 $
 */

require_once(dirname(__FILE__)."/../include/common.inc.php");
require_once(dirname(__FILE__).'/include/story.view.class.php');
$id = (empty($id) ? 0 : intval($id));
if($id==0)
{
	ParamError();
}
$bv = new BookView($id,'book');
$ischeck = $bv->Fields['ischeck'];
if($ischeck == 0)
{
	require_once(DEDEINC."/../include/memberlogin.class.php");
	$ml = new MemberLogin();
	if($bv->Fields['mid'] != $ml->M_ID)
	{
		showmsg('ΝΌΚιΞ΄Ύ­ΙσΊΛ', $cfg_mainsite.$cfg_cmspath.'/book');
		exit();
	}
}
$bv->Display();
$bv->Close();
?>