gbook.php 923 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. require("../../class/connect.php");
  3. require("../../class/q_functions.php");
  4. require("../../class/db_sql.php");
  5. require("../class/user.php");
  6. require "../".LoadLang("pub/fun.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. eCheckCloseMods('member');//关闭模块
  11. $user=islogin();
  12. $line=12;
  13. $page_line=10;
  14. $start=0;
  15. $page=(int)$_GET['page'];
  16. $page=RepPIntvar($page);
  17. $offset=$page*$line;
  18. $totalquery="select count(*) as total from {$dbtbpre}enewsmembergbook where userid='$user[userid]'";
  19. $num=$empire->gettotal($totalquery);
  20. $query="select gid,isprivate,uid,uname,ip,addtime,gbtext,retext,eipport from {$dbtbpre}enewsmembergbook where userid='$user[userid]'";
  21. $query.=" order by gid desc limit $offset,$line";
  22. $sql=$empire->query($query);
  23. $returnpage=page1($num,$line,$page_line,$start,$page,$search);
  24. //导入模板
  25. require(ECMS_PATH.'e/template/member/mspace/gbook.php');
  26. db_close();
  27. $empire=null;
  28. ?>