ReGbook.php 701 B

12345678910111213141516171819202122232425
  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. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $editor=1;
  9. eCheckCloseMods('member');//关闭模块
  10. $user=islogin();
  11. $gid=(int)$_GET['gid'];
  12. $r=$empire->fetch1("select gid,isprivate,uid,uname,ip,addtime,gbtext,retext from {$dbtbpre}enewsmembergbook where gid='$gid' and userid='$user[userid]'");
  13. if(!$r['gid'])
  14. {
  15. printerror('ErrorUrl','',1);
  16. }
  17. if($r['uid'])
  18. {
  19. $r['uname']="<b><a href='../../space/?userid=$r[uid]' target='_blank'>$r[uname]</a></b>";
  20. }
  21. //导入模板
  22. require(ECMS_PATH.'e/template/member/mspace/ReGbook.php');
  23. db_close();
  24. $empire=null;
  25. ?>