<?php
require("../../class/connect.php");
require("../../class/q_functions.php");
require("../class/user.php");
require "../".LoadLang("pub/fun.php");
$link=db_connect();
$empire=new mysqlquery();
$editor=1;
eCheckCloseMods('member');//關閉模塊
$user=islogin();
$line=12;
$page_line=10;
$start=0;
$page=(int)$_GET['page'];
$page=RepPIntvar($page);
$offset=$page*$line;
$totalquery="select count(*) as total from {$dbtbpre}enewsmembergbook where userid='".$user['userid']."'";
$num=$empire->gettotal($totalquery);
$query="select gid,isprivate,uid,uname,ip,addtime,gbtext,retext,eipport from {$dbtbpre}enewsmembergbook where userid='".$user['userid']."'";
$query.=" order by gid desc".do_dblimit($line,$offset);
$sql=$empire->query($query);
$returnpage=page1($num,$line,$page_line,$start,$page,$search);
//導入模板
include(ECMS_PATH.'e/template/member/mspace/gbook.php');
db_close();
$empire=null;
?>