index.php 984 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. require("../../class/connect.php");
  3. $editor=1;
  4. eCheckCloseMods('fb');//关闭模块
  5. //分类id
  6. $bid=(int)$_GET['bid'];
  7. if(empty($bid))
  8. {
  9. printerror("EmptyFeedback","",1);
  10. }
  11. require("../../class/db_sql.php");
  12. $link=db_connect();
  13. $empire=new mysqlquery();
  14. $br=$empire->fetch1("select bid,bname,groupid from {$dbtbpre}enewsfeedbackclass where bid='$bid'");
  15. if(empty($br['bid']))
  16. {
  17. printerror("EmptyFeedback","",1);
  18. }
  19. //权限
  20. if($br['groupid'])
  21. {
  22. include("../../class/q_functions.php");
  23. include("../../member/class/user.php");
  24. $user=islogin();
  25. include("../../data/dbcache/MemberLevel.php");
  26. if($level_r[$br[groupid]][level]>$level_r[$user[groupid]][level])
  27. {
  28. echo"<script>alert('您的会员级别不足(".$level_r[$br[groupid]][groupname]."),没有权限提交信息!');history.go(-1);</script>";
  29. exit();
  30. }
  31. }
  32. esetcookie("feedbackbid",$bid);
  33. $bname=$br['bname'];
  34. $url="<a href=../../../>首页</a>&nbsp;>&nbsp;信息反馈";
  35. @include("temp/feedback".$bid.".php");
  36. ?>