ecmsshop.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../../class/connect.php");
  4. require("../../class/db_sql.php");
  5. require("../../class/functions.php");
  6. require("../../data/dbcache/class.php");
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $editor=1;
  10. $enews=$_POST['enews'];
  11. if(empty($enews))
  12. {
  13. $enews=$_GET['enews'];
  14. }
  15. //验证用户
  16. $lur=is_login();
  17. $logininid=$lur['userid'];
  18. $loginin=$lur['username'];
  19. $loginrnd=$lur['rnd'];
  20. $loginlevel=$lur['groupid'];
  21. $loginadminstyleid=$lur['adminstyleid'];
  22. hCheckEcmsRHash();
  23. require("class/hShopSysFun.php");
  24. if($enews=="SetShopSys")//商城参数设置
  25. {
  26. ShopSys_set($_POST,$logininid,$loginin);
  27. }
  28. elseif($enews=="DdRetext")//后台订单备注
  29. {
  30. ShopSys_DdRetext($_POST,$logininid,$loginin);
  31. }
  32. elseif($enews=='EditPretotal')//修改订单优惠价格
  33. {
  34. ShopSys_EditPretotal($_POST,$logininid,$loginin);
  35. }
  36. elseif($enews=='DoCutMaxnum')//减少或还原库存
  37. {
  38. Shopsys_DoCutMaxnum($_POST,$logininid,$loginin);
  39. }
  40. else
  41. {printerror("ErrorUrl","history.go(-1)");}
  42. db_close();
  43. $empire=null;
  44. ?>