index.php 877 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. require("../../class/connect.php");
  3. require("../../class/db_sql.php");
  4. require("../../class/q_functions.php");
  5. require("../class/user.php");
  6. require("../../data/dbcache/MemberLevel.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. eCheckCloseMods('member');//关闭模块
  11. //是否登陆
  12. $user=islogin();
  13. $r=ReturnUserInfo($user[userid]);
  14. $userdate=0;
  15. //时间
  16. if($r[userdate])
  17. {
  18. $userdate=$r[userdate]-time();
  19. if($userdate<=0)
  20. {
  21. $userdate=0;
  22. }
  23. else
  24. {
  25. $userdate=round($userdate/(24*3600));
  26. }
  27. }
  28. //是否有短消息
  29. $havemsg="无";
  30. if($user[havemsg])
  31. {
  32. $havemsg="<a href='".$public_r['newsurl']."e/member/msg/' target=_blank><font color=red>您有新消息</font></a>";
  33. }
  34. //注册时间
  35. $registertime=eReturnMemberRegtime($r['registertime'],"Y-m-d H:i:s");
  36. //导入模板
  37. require(ECMS_PATH.'e/template/member/my.php');
  38. db_close();
  39. $empire=null;
  40. ?>