doaction.php 931 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. require('../class/connect.php');
  3. require('../class/db_sql.php');
  4. require('../data/dbcache/class.php');
  5. require('../member/class/user.php');
  6. require('../data/dbcache/MemberLevel.php');
  7. require LoadLang('pub/fun.php');
  8. $link=db_connect();
  9. $empire=new mysqlquery();
  10. eCheckCloseMods('pl');//关闭模块
  11. $enews=$_POST['enews'];
  12. if(empty($enews))
  13. {
  14. $enews=$_GET['enews'];
  15. }
  16. //导入文件
  17. if($enews=='AddPl'||$enews=='DoForPl')
  18. {
  19. include('plfun.php');
  20. }
  21. if($enews=="AddPl")//增加评论
  22. {
  23. $username=$_POST['username'];
  24. $password=$_POST['password'];
  25. $saytext=$_POST['saytext'];
  26. $id=$_POST['id'];
  27. $classid=$_POST['classid'];
  28. $repid=$_POST['repid'];
  29. $nomember=$_POST['nomember'];
  30. $key=$_POST['key'];
  31. AddPl($username,$password,$nomember,$key,$saytext,$id,$classid,$repid,$_POST);
  32. }
  33. elseif($enews=='DoForPl')//评论意见
  34. {
  35. DoForPl($_GET);
  36. }
  37. else
  38. {printerror("ErrorUrl","history.go(-1)",1);}
  39. db_close();
  40. $empire=null;
  41. ?>