织梦模板团_DEDECMS模板_织梦企业模板_织梦免费模板下载_DEDE仿站_织梦建站
SOSO您喜欢的模板
当前位置: 织梦模板团 > 安装使用 >
织梦DEDECMS网站的注册会员自动激活discuz会员的方法(2)
更多
admin / 2012-05-16 00:54

    include_once UC_CLIENT_ROOT.'/lib/xml.class.php';
   }
   return xml_serialize($arr, $htmlon);
} copyright www.dedecmsmuban.com

function uc_note()
{
   $this->appdir = DEDEROOT;
   $this->dbconfig = DEDEINC.'/common.inc.php';
   $this->db = $GLOBALS['dsql'];
   $this->tablepre = $GLOBALS['cfg_dbprefix'];
}

function get_uids($uids)
{
   include UC_CLIENT_ROOT.'/client.php';
  
   $members = explode(",", $uids);
   empty($members) && exit(API_RETURN_FORBIDDEN);
  
   /*$members_username = array();
  
   foreach($members as $id)
   {
    $row = uc_get_user($id,1);
    $members_username[] = $row[1];  
   }
  
   $comma_temps = implode(",", $members_username);
  
   empty($comma_temps) && exit(API_RETURN_FORBIDDEN); 本文来自织梦模板团
  
   $comma_uids = array();*/
  
   //$row = $this->db->SetQuery("SELECT mid FROM `dede_member` WHERE userid IN ($comma_temps)");
  
   $this->db->SetQuery("SELECT mid FROM `dede_member` WHERE mid IN ($uids)");
   $this->db->Execute();  
   while($row = $this->db->GetArray())
   {
    $comma_uids[] = $row['mid'];
   }
  
   empty($comma_uids) && exit(API_RETURN_FORBIDDEN);
  
   return implode(",", $comma_uids);
}

copyright www.dedecmsmuban.com

function test($get, $post)
{
   return API_RETURN_SUCCEED;
}

copyright www.dedecmsmuban.com

function deleteuser($get, $post)
{
   $uids = $this->get_uids($get['ids']);
   !API_DELETEUSER && exit(API_RETURN_FORBIDDEN);
织梦模板

   //note 用户删除 API 接口
   $rs = $this->db->ExecuteNoneQuery2("DELETE FROM `dede_member` WHERE mid IN ($uids) AND matt<>10 limit 1");
   if($rs > 0)
   {
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_tj` WHERE mid IN ($uids) limit 1");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_space` WHERE mid IN ($uids) limit 1");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_company` WHERE mid IN ($uids) limit 1");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_person` WHERE mid IN ($uids) limit 1");
  
    //删除用户相关数据
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_stow` WHERE mid IN ($uids) ");

织梦模板


    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_flink` WHERE mid IN ($uids) ");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_guestbook` WHERE mid IN ($uids) ");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_operation` WHERE mid IN ($uids) ");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_pms` WHERE toid IN ($uids) OR fromid IN ($uids) ");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_friends` WHERE mid IN ($uids) OR fid IN ($uids) ");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_member_vhistory` WHERE mid IN ($uids) OR vid IN ($uids) ");
    $this->db->ExecuteNoneQuery("DELETE FROM `dede_feedback` WHERE mid IN ($uids) ");
    $this->db->ExecuteNoneQuery("UPDATE `dede_archives` SET mid='0' WHERE mid IN ($uids)"); 织梦模板
   }
   else
   {
    exit(API_RETURN_FORBIDDEN);
   } 本文来自织梦模板团

   return API_RETURN_SUCCEED;
}
本文来自织梦模板团

function renameuser($get, $post)
{
   $uids = $this->get_uids($get['ids']);
  
  
   $usernameold = $get['oldusername'];
   $usernamenew = $get['newusername'];
   if(!API_RENAMEUSER)
   {
    return API_RETURN_FORBIDDEN;


DedeCMS(467)
  • 上一篇:织梦DEDECMS5.7网站软件登记替换成图标显示的方法
  • 下一篇:织梦DEDECMS网站怎么调用TAG关键字文章列表