Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

api的uc.php问题

[复制链接]
yangjes_discuz 发表于 2012-12-3 15:59:20 | 显示全部楼层 |阅读模式
注:BUG地址是虚拟的

文件路径:'./api/uc.php'

function deleteuser($get, $post) {
        global $_G;
        if(!API_DELETEUSER) {
            return API_RETURN_FORBIDDEN;
        }
        
        /*
         * 获取到的 $uids 是 String类型('2,7,16')
         * 而 C::t('common_member')->fetch_all($uids) 处理的参数应该是数组
         */
        $uids = str_replace("'", '', stripslashes($get['ids']));

        // 修改于:杨家二少 - 201212031536
        $uids = explode(',', $uids);
        
        $ids = array();
        $ids = array_keys(C::t('common_member')->fetch_all($uids));

        require_once DISCUZ_ROOT.'./source/function/function_delete.php';
        $ids && deletemember($ids);

        return API_RETURN_SUCCEED;
    }
mark35 发表于 2012-12-3 17:47:57 | 显示全部楼层
没明白是啥问题
回复

使用道具 举报

m.king 发表于 2012-12-6 15:07:09 | 显示全部楼层
能否详细描述下啥问题啊?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-3-1 23:08 , Processed in 0.023577 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表