UserAction.class.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | Fanwe 方维直播系统
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Author: 云淡风轻(1956838968@qq.com)
  8. // +----------------------------------------------------------------------
  9. class UserAction extends CommonAction{
  10. public function __construct()
  11. {
  12. require_once APP_ROOT_PATH."/admin/Lib/Action/UserCommonAction.class.php";
  13. parent::__construct();
  14. }
  15. //认证用户
  16. public function index()
  17. {
  18. $common = new UserCommon();
  19. $data = $_REQUEST;
  20. $data['is_authentication'] = 2;
  21. $data['is_robot'] = 0;
  22. $common->index($data);
  23. }
  24. public function edit() {
  25. $common = new UserCommon();
  26. $data = $_REQUEST;
  27. $common->edit($data);
  28. }
  29. public function delete() {
  30. $common = new UserCommon();
  31. $data = $_REQUEST;
  32. $common->delete($data);
  33. }
  34. public function update() {
  35. $common = new UserCommon();
  36. $data = $_REQUEST;
  37. $common->update($data);
  38. }
  39. public function set_effect()
  40. {
  41. $common = new UserCommon();
  42. $data = $_REQUEST;
  43. $n_is_effect = $common->set_effect($data);
  44. $this->ajaxReturn($n_is_effect,l("SET_EFFECT_".$n_is_effect),1);
  45. }
  46. public function set_ban()
  47. {
  48. $common = new UserCommon();
  49. $data = $_REQUEST;
  50. $n_is_effect = $common->set_ban($data);
  51. $this->ajaxReturn($n_is_effect,l("SET_BAN_".$n_is_effect),1);
  52. }
  53. //新增关注
  54. public function add_focus(){
  55. $common = new UserCommon();
  56. $data = $_REQUEST;
  57. $common->add_focus($data);
  58. }
  59. //新增关注
  60. public function set_follow(){
  61. $common = new UserCommon();
  62. $data = $_REQUEST;
  63. $common->set_follow($data);
  64. }
  65. //关注列表
  66. public function focus_list(){
  67. $common = new UserCommon();
  68. $data = $_REQUEST;
  69. $common->focus_list($data);
  70. }
  71. //新增粉丝
  72. public function add_fans(){
  73. $common = new UserCommon();
  74. $data = $_REQUEST;
  75. $common->add_fans($data);
  76. }
  77. //新增粉丝
  78. public function set_follower(){
  79. $common = new UserCommon();
  80. $data = $_REQUEST;
  81. $common->set_follower($data);
  82. }
  83. //粉丝列表
  84. public function fans_list(){
  85. $common = new UserCommon();
  86. $data = $_REQUEST;
  87. $common->fans_list($data);
  88. }
  89. //删除关注
  90. public function del_focus_list(){
  91. $common = new UserCommon();
  92. $data = $_REQUEST;
  93. $common->del_focus_list($data);
  94. }
  95. //删除粉丝
  96. public function del_fans_list(){
  97. $common = new UserCommon();
  98. $data = $_REQUEST;
  99. $common->del_fans_list($data);
  100. }
  101. //印票贡献榜
  102. public function contribution_list(){
  103. $common = new UserCommon();
  104. $data = $_REQUEST;
  105. $common->contribution_list($data);
  106. }
  107. /**
  108. * 删除印票贡献榜
  109. */
  110. /*public function del_contribution_list()
  111. {
  112. $ajax = intval($_REQUEST['ajax']);
  113. $id = $_REQUEST ['id'];
  114. if (isset ( $id )) {
  115. $common = new UserCommon();
  116. $data = $_REQUEST;
  117. $status = $common->del_contribution_list($data);
  118. if ($status!==false) {
  119. $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
  120. } else {
  121. $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
  122. }
  123. } else {
  124. $this->error (l("INVALID_OPERATION"),$ajax);
  125. }
  126. }*/
  127. //消息推送
  128. public function push(){
  129. $common = new UserCommon();
  130. $data = $_REQUEST;
  131. $common->push($data);
  132. }
  133. //删除推送消息
  134. public function del_push(){
  135. $ajax = intval($_REQUEST['ajax']);
  136. $id = $_REQUEST ['id'];
  137. if (isset ( $id )) {
  138. $common = new UserCommon();
  139. $data = $_REQUEST;
  140. $status = $common->del_push($data);
  141. if ($status!==false) {
  142. $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
  143. } else {
  144. $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
  145. }
  146. } else {
  147. $this->error (l("INVALID_OPERATION"),$ajax);
  148. }
  149. }
  150. public function account()
  151. {
  152. $common = new UserCommon();
  153. $data = $_REQUEST;
  154. $status = $common->account($data);
  155. }
  156. public function modify_account()
  157. {
  158. $common = new UserCommon();
  159. $data = $_REQUEST;
  160. $status = $common->modify_account($data);
  161. $this->success(L("UPDATE_SUCCESS"));
  162. }
  163. public function account_detail()
  164. {
  165. $common = new UserCommon();
  166. $data = $_REQUEST;
  167. $common->account_detail($data);
  168. }
  169. public function exchange_log()
  170. {
  171. $common = new UserCommon();
  172. $data = $_REQUEST;
  173. $common->exchange_log($data);
  174. }
  175. public function foreverdelete_account_detail()
  176. {
  177. //彻底删除指定记录
  178. $ajax = intval($_REQUEST['ajax']);
  179. $id = $_REQUEST ['id'];
  180. $data = $_REQUEST;
  181. if (isset ( $id )) {
  182. $common = new UserCommon();
  183. $status = $common->foreverdelete_account_detail($data);
  184. if ($status!==false) {
  185. $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
  186. } else {
  187. $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
  188. }
  189. } else {
  190. $this->error (l("INVALID_OPERATION"),$ajax);
  191. }
  192. }
  193. public function foreverdelete_exchange_log()
  194. {
  195. //彻底删除指定记录
  196. $ajax = intval($_REQUEST['ajax']);
  197. $id = $_REQUEST ['id'];
  198. $data = $_REQUEST;
  199. if (isset ( $id )) {
  200. $common = new UserCommon();
  201. $status = $common->foreverdelete_exchange_log($data);
  202. if ($status!==false) {
  203. $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
  204. } else {
  205. $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
  206. }
  207. } else {
  208. $this->error (l("INVALID_OPERATION"),$ajax);
  209. }
  210. }
  211. public function check_user(){
  212. $common = new UserCommon();
  213. $user_id = $_REQUEST['id'];
  214. admin_ajax_return($common->check_user($user_id));
  215. }
  216. }
  217. ?>