index.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. require("../../class/connect.php");
  3. require("../../class/q_functions.php");
  4. require("../../class/db_sql.php");
  5. require("../../member/class/user.php");
  6. require("../../data/dbcache/MemberLevel.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. eCheckCloseMods('member');//关闭模块
  11. if($public_r['showinfolevel'])
  12. {
  13. $user=islogin();
  14. if($level_r[$user[groupid]]['level']<$level_r[$public_r[showinfolevel]]['level'])
  15. {
  16. printerror("NotLevelShowInfo","",1);
  17. }
  18. }
  19. $userid=(int)$_GET['userid'];
  20. if($userid)
  21. {
  22. $where=egetmf('userid')."='$userid'";
  23. $username='';
  24. }
  25. else
  26. {
  27. $username=RepPostVar($_GET['username']);
  28. if(empty($username))
  29. {
  30. printerror("NotUsername","",1);
  31. }
  32. $utfusername=$username;
  33. $where=egetmf('username')."='$username'";
  34. }
  35. $r=$empire->fetch1("select ".eReturnSelectMemberF('userid,username,email,groupid,userfen,userdate,registertime')." from ".eReturnMemberTable()." where ".$where." limit 1");
  36. if(empty($r['userid']))
  37. {
  38. printerror("NotUsername","",1);
  39. }
  40. if(empty($username))
  41. {
  42. $username=$r['username'];
  43. }
  44. $registertime=eReturnMemberRegtime($r['registertime'],'Y-m-d H:i:s');
  45. $email=$r['email'];
  46. $addr=$empire->fetch1("select * from {$dbtbpre}enewsmemberadd where userid='".$r['userid']."' limit 1");
  47. //取得表单
  48. $formid=GetMemberFormId($r['groupid']);
  49. $formr=$empire->fetch1("select filef,imgf,tobrf,viewenter from {$dbtbpre}enewsmemberform where fid='$formid'");
  50. //导入模板
  51. require(ECMS_PATH.'e/template/member/ShowInfo.php');
  52. db_close();
  53. $empire=null;
  54. ?>