ShowFeedback.php 868 B

1234567891011121314151617181920212223242526272829
  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. $fid=(int)$_GET['fid'];
  12. $r=$empire->fetch1("select fid,name,company,phone,fax,email,address,zip,title,ftext,userid,ip,uid,uname,addtime,eipport from {$dbtbpre}enewsmemberfeedback where fid='$fid' and userid='$user[userid]'");
  13. if(!$r['fid'])
  14. {
  15. printerror('ErrorUrl','',1);
  16. }
  17. if($r['uid'])
  18. {
  19. $r['uname']="<a href='../../space/?userid=$r[uid]' target='_blank'>$r[uname]</a>&nbsp;&nbsp;(<a href='../msg/AddMsg/?username=$r[uname]' target='_blank'>消息回复</a>)";
  20. }
  21. else
  22. {
  23. $r['uname']='游客';
  24. }
  25. //导入模板
  26. require(ECMS_PATH.'e/template/member/mspace/ShowFeedback.php');
  27. db_close();
  28. $empire=null;
  29. ?>