| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249 |
- <?php
- // +----------------------------------------------------------------------
- // | Fanwe 方维直播系统
- // +----------------------------------------------------------------------
- // | Copyright (c) 2011 http://www.fanwe.com All rights reserved.
- // +----------------------------------------------------------------------
- // | Author: 云淡风轻(1956838968@qq.com)
- // +----------------------------------------------------------------------
- class UserAction extends CommonAction{
- public function __construct()
- {
- require_once APP_ROOT_PATH."/admin/Lib/Action/UserCommonAction.class.php";
- parent::__construct();
- }
- //认证用户
- public function index()
- {
- $common = new UserCommon();
- $data = $_REQUEST;
- $data['is_authentication'] = 2;
- $data['is_robot'] = 0;
- $common->index($data);
- }
- public function edit() {
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->edit($data);
- }
- public function delete() {
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->delete($data);
- }
- public function update() {
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->update($data);
- }
- public function set_effect()
- {
- $common = new UserCommon();
- $data = $_REQUEST;
- $n_is_effect = $common->set_effect($data);
- $this->ajaxReturn($n_is_effect,l("SET_EFFECT_".$n_is_effect),1);
- }
- public function set_ban()
- {
- $common = new UserCommon();
- $data = $_REQUEST;
- $n_is_effect = $common->set_ban($data);
- $this->ajaxReturn($n_is_effect,l("SET_BAN_".$n_is_effect),1);
- }
- //新增关注
- public function add_focus(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->add_focus($data);
- }
- //新增关注
- public function set_follow(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->set_follow($data);
- }
- //关注列表
- public function focus_list(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->focus_list($data);
- }
- //新增粉丝
- public function add_fans(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->add_fans($data);
- }
- //新增粉丝
- public function set_follower(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->set_follower($data);
- }
- //粉丝列表
- public function fans_list(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->fans_list($data);
- }
- //删除关注
- public function del_focus_list(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->del_focus_list($data);
- }
- //删除粉丝
- public function del_fans_list(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->del_fans_list($data);
- }
- //印票贡献榜
- public function contribution_list(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->contribution_list($data);
- }
- /**
- * 删除印票贡献榜
- */
- /*public function del_contribution_list()
- {
- $ajax = intval($_REQUEST['ajax']);
- $id = $_REQUEST ['id'];
- if (isset ( $id )) {
- $common = new UserCommon();
- $data = $_REQUEST;
- $status = $common->del_contribution_list($data);
- if ($status!==false) {
- $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
- } else {
- $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
- }
- } else {
- $this->error (l("INVALID_OPERATION"),$ajax);
- }
- }*/
- //消息推送
- public function push(){
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->push($data);
- }
- //删除推送消息
- public function del_push(){
- $ajax = intval($_REQUEST['ajax']);
- $id = $_REQUEST ['id'];
- if (isset ( $id )) {
- $common = new UserCommon();
- $data = $_REQUEST;
- $status = $common->del_push($data);
- if ($status!==false) {
- $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
- } else {
- $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
- }
- } else {
- $this->error (l("INVALID_OPERATION"),$ajax);
- }
- }
- public function account()
- {
- $common = new UserCommon();
- $data = $_REQUEST;
- $status = $common->account($data);
- }
- public function modify_account()
- {
- $common = new UserCommon();
- $data = $_REQUEST;
- $status = $common->modify_account($data);
- $this->success(L("UPDATE_SUCCESS"));
- }
- public function account_detail()
- {
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->account_detail($data);
- }
- public function exchange_log()
- {
- $common = new UserCommon();
- $data = $_REQUEST;
- $common->exchange_log($data);
- }
- public function foreverdelete_account_detail()
- {
- //彻底删除指定记录
- $ajax = intval($_REQUEST['ajax']);
- $id = $_REQUEST ['id'];
- $data = $_REQUEST;
- if (isset ( $id )) {
- $common = new UserCommon();
- $status = $common->foreverdelete_account_detail($data);
- if ($status!==false) {
- $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
- } else {
- $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
- }
- } else {
- $this->error (l("INVALID_OPERATION"),$ajax);
- }
- }
- public function foreverdelete_exchange_log()
- {
- //彻底删除指定记录
- $ajax = intval($_REQUEST['ajax']);
- $id = $_REQUEST ['id'];
- $data = $_REQUEST;
- if (isset ( $id )) {
- $common = new UserCommon();
- $status = $common->foreverdelete_exchange_log($data);
- if ($status!==false) {
- $this->success (l("FOREVER_DELETE_SUCCESS"),$ajax);
- } else {
- $this->error (l("FOREVER_DELETE_FAILED"),$ajax);
- }
- } else {
- $this->error (l("INVALID_OPERATION"),$ajax);
- }
- }
- public function check_user(){
- $common = new UserCommon();
- $user_id = $_REQUEST['id'];
- admin_ajax_return($common->check_user($user_id));
- }
- }
- ?>
|