<?php
require("../../class/connect.php");
require("../../class/q_functions.php");
require("../class/user.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
eCheckCloseMods('member');//關閉模塊
$user=islogin();
$gid=(int)$_GET['gid'];
$r=$empire->fetch1("select gid,isprivate,uid,uname,ip,addtime,gbtext,retext from {$dbtbpre}enewsmembergbook where gid='$gid' and userid='".$user['userid']."'");
if(!$r['gid'])
{
	printerror('ErrorUrl','',1);
}
if($r['uid'])
{
	$r['uname']="<b><a href='../../space/?userid=".$r['uid']."' target='_blank'>".$r['uname']."</a></b>";
}
//導入模板
include(ECMS_PATH.'e/template/member/mspace/ReGbook.php');
db_close();
$empire=null;
?>