ecmsmember.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. define('EmpireCMSAdmin','1');
  3. require("../class/connect.php");
  4. require("../class/db_sql.php");
  5. require("../class/functions.php");
  6. $link=db_connect();
  7. $empire=new mysqlquery();
  8. $enews=$_POST['enews'];
  9. if(empty($enews))
  10. {
  11. $enews=$_GET['enews'];
  12. }
  13. //验证用户
  14. $lur=is_login();
  15. $logininid=$lur['userid'];
  16. $loginin=$lur['username'];
  17. $loginrnd=$lur['rnd'];
  18. $loginlevel=$lur['groupid'];
  19. $loginadminstyleid=$lur['adminstyleid'];
  20. hCheckEcmsRHash();
  21. require("../member/class/user.php");
  22. require("../class/memberfun.php");
  23. if($enews=='AddMemberF')//增加会员字段
  24. {
  25. AddMemberF($_POST,$logininid,$loginin);
  26. }
  27. elseif($enews=='EditMemberF')//修改会员字段
  28. {
  29. EditMemberF($_POST,$logininid,$loginin);
  30. }
  31. elseif($enews=='DelMemberF')//删除会员字段
  32. {
  33. DelMemberF($_GET,$logininid,$loginin);
  34. }
  35. elseif($enews=='EditMemberFOrder')//修改会员字段顺序
  36. {
  37. EditMemberFOrder($_POST['fid'],$_POST['myorder'],$logininid,$loginin);
  38. }
  39. elseif($enews=='AddMemberForm')//增加会员表单
  40. {
  41. AddMemberForm($_POST,$logininid,$loginin);
  42. }
  43. elseif($enews=='EditMemberForm')//修改会员表单
  44. {
  45. EditMemberForm($_POST,$logininid,$loginin);
  46. }
  47. elseif($enews=='DelMemberForm')//删除会员表单
  48. {
  49. DelMemberForm($_GET,$logininid,$loginin);
  50. }
  51. elseif($enews=="AddMemberGroup")//增加会员组
  52. {
  53. $add=$_POST;
  54. AddMemberGroup($add,$logininid,$loginin);
  55. }
  56. elseif($enews=="EditMemberGroup")//修改会员组
  57. {
  58. $add=$_POST;
  59. EditMemberGroup($add,$logininid,$loginin);
  60. }
  61. elseif($enews=="DelMemberGroup")//删除会员组
  62. {
  63. $groupid=$_GET['groupid'];
  64. DelMemberGroup($groupid,$logininid,$loginin);
  65. }
  66. else
  67. {
  68. printerror("ErrorUrl","history.go(-1)");
  69. }
  70. db_close();
  71. $empire=null;
  72. ?>