doaction.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. <?php
  2. require('../class/connect.php');
  3. require('../class/db_sql.php');
  4. require('class/user.php');
  5. require('../data/dbcache/MemberLevel.php');
  6. require LoadLang('pub/fun.php');
  7. $link=db_connect();
  8. $empire=new mysqlquery();
  9. $enews=$_POST['enews'];
  10. if(empty($enews))
  11. {
  12. $enews=$_GET['enews'];
  13. }
  14. eCheckCloseMods('member');//关闭模块
  15. //绑定帐号
  16. $tobind=(int)$_POST['tobind'];
  17. if($tobind&&($enews=='login'||$enews=='register'))
  18. {
  19. eCheckCloseMods('mconnect');//关闭模块
  20. eCheckCloseMemberConnect();//验证开启的接口
  21. session_start();
  22. include('../memberconnect/memberconnectfun.php');
  23. }
  24. if($enews=='login'||$enews=='exit')
  25. {
  26. include('class/member_loginfun.php');
  27. }
  28. elseif($enews=='register')
  29. {
  30. include('class/member_registerfun.php');
  31. include('class/member_modfun.php');
  32. }
  33. elseif($enews=='EditSafeInfo'||$enews=='EditInfo')
  34. {
  35. include('class/member_editinfofun.php');
  36. include('class/member_modfun.php');
  37. }
  38. elseif($enews=='AddFava'||$enews=='DelFava_All'||$enews=='DelFava'||$enews=='AddFavaClass'||$enews=='EditFavaClass'||$enews=='DelFavaClass'||$enews=='MoveFava_All')
  39. {
  40. include('../data/dbcache/class.php');
  41. include('class/favfun.php');
  42. }
  43. elseif($enews=='AddMsg'||$enews=='DelMsg'||$enews=='DelMsg_all')
  44. {
  45. include('class/msgfun.php');
  46. }
  47. elseif($enews=='AddFriend'||$enews=='EditFriend'||$enews=='DelFriend'||$enews=='AddFriendClass'||$enews=='EditFriendClass'||$enews=='DelFriendClass')
  48. {
  49. include('class/friendfun.php');
  50. }
  51. elseif($enews=='CardGetFen')
  52. {
  53. include('class/membercomfun.php');
  54. }
  55. elseif($enews=='SendPassword'||$enews=='DoGetPassword'||$enews=='DoActUser'||$enews=='RegSend')
  56. {
  57. include('class/member_actfun.php');
  58. }
  59. if($enews=="login")//登陆
  60. {
  61. qlogin($_POST);
  62. }
  63. elseif($enews=="exit")//退出登陆
  64. {
  65. qloginout($myuserid,$myusername,$myrnd);
  66. }
  67. elseif($enews=="register")//注册
  68. {
  69. register($_POST);
  70. }
  71. elseif($enews=="EditSafeInfo")//修改安全信息
  72. {
  73. EditSafeInfo($_POST);
  74. }
  75. elseif($enews=="EditInfo")//修改信息
  76. {
  77. EditInfo($_POST);
  78. }
  79. elseif($enews=="AddFava")//增加收藏
  80. {
  81. $cid=$_POST['cid'];
  82. $id=$_POST['id'];
  83. $classid=$_POST['classid'];
  84. $from=$_POST['from'];
  85. AddFava($id,$classid,$cid,$from);
  86. }
  87. elseif($enews=="DelFava_All")//删除收藏
  88. {
  89. $favaid=$_POST['favaid'];
  90. DelFava_All($favaid);
  91. }
  92. elseif($enews=="DelFava")//删除收藏
  93. {
  94. $favaid=$_GET['favaid'];
  95. DelFava($favaid);
  96. }
  97. elseif($enews=="CardGetFen")//点卡冲值
  98. {
  99. $username=$_POST['username'];
  100. $reusername=$_POST['reusername'];
  101. $card_no=$_POST['card_no'];
  102. $password=$_POST['password'];
  103. CardGetFen($username,$reusername,$card_no,$password);
  104. }
  105. elseif($enews=="AddFavaClass")//增加收藏夹分类
  106. {
  107. AddFavaClass($_POST);
  108. }
  109. elseif($enews=="EditFavaClass")//修改收藏夹分类
  110. {
  111. EditFavaClass($_POST);
  112. }
  113. elseif($enews=="DelFavaClass")//删除收藏夹分类
  114. {
  115. $cid=$_GET['cid'];
  116. DelFavaClass($cid);
  117. }
  118. elseif($enews=="MoveFava_All")//移动收藏夹
  119. {
  120. $favaid=$_POST['favaid'];
  121. $cid=$_POST['cid'];
  122. MoveFava_All($favaid,$cid);
  123. }
  124. elseif($enews=="AddMsg")//发送短消息
  125. {
  126. AddMsg($_POST);
  127. }
  128. elseif($enews=="DelMsg")//删除短消息
  129. {
  130. DelMsg($_GET['mid']);
  131. }
  132. elseif($enews=="DelMsg_all")//批量删除短消息
  133. {
  134. DelMsg_all($_POST['mid']);
  135. }
  136. elseif($enews=="AddFriend")//添加好友
  137. {
  138. AddFriend($_POST);
  139. }
  140. elseif($enews=="EditFriend")//修改好友
  141. {
  142. EditFriend($_POST);
  143. }
  144. elseif($enews=="DelFriend")//删除好友
  145. {
  146. DelFriend($_GET);
  147. }
  148. elseif($enews=="AddFriendClass")//添加好友分类
  149. {
  150. AddFriendClass($_POST);
  151. }
  152. elseif($enews=="EditFriendClass")//修改好友分类
  153. {
  154. EditFriendClass($_POST);
  155. }
  156. elseif($enews=="DelFriendClass")//删除好友分类
  157. {
  158. DelFriendClass($_GET['cid']);
  159. }
  160. elseif($enews=='SendPassword')//发送取回密码邮件
  161. {
  162. SendGetPasswordEmail($_POST);
  163. }
  164. elseif($enews=='DoGetPassword')//重设密码
  165. {
  166. DoGetPassword($_POST);
  167. }
  168. elseif($enews=='DoActUser')//激活帐号
  169. {
  170. DoActUser($_GET);
  171. }
  172. elseif($enews=='RegSend')//重发激活邮件
  173. {
  174. DoRegSend($_POST);
  175. }
  176. else
  177. {printerror("ErrorUrl","history.go(-1)",1);}
  178. db_close();
  179. $empire=null;
  180. ?>