doaction.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. $enews=$_POST['enews'];
  11. if(empty($enews))
  12. {
  13. $enews=$_GET['enews'];
  14. }
  15. //导入文件
  16. if($enews=='DownSoft'||$enews=='GetSofturl')
  17. {
  18. $enews=='DownSoft'?eCheckCloseMods('down'):eCheckCloseMods('movie');//关闭模块
  19. include('class/DownSysFun.php');
  20. }
  21. if($enews=="DownSoft")//下载软件
  22. {
  23. $classid=$_GET['classid'];
  24. $id=$_GET['id'];
  25. $pathid=$_GET['pathid'];
  26. $p=$_GET['p'];
  27. $pass=$_GET['pass'];
  28. DownSoft($classid,$id,$pathid,$p,$pass);
  29. }
  30. elseif($enews=="GetSofturl")//取得软件地址
  31. {
  32. $classid=$_GET['classid'];
  33. $id=$_GET[id];
  34. $pathid=$_GET[pathid];
  35. $p=$_GET[p];
  36. $pass=$_GET['pass'];
  37. $onlinetime=$_GET['onlinetime'];
  38. $onlinepass=$_GET['onlinepass'];
  39. $movtime=20;
  40. GetSofturl($classid,$id,$pathid,$p,$pass,$onlinetime,$onlinepass);
  41. }
  42. else
  43. {printerror("ErrorUrl","history.go(-1)",1);}
  44. db_close();
  45. $empire=null;
  46. ?>