define('DZ_DBTABLEPRE', 'discuz.cdb_'); // DUSCIZ数据库表前缀
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."memberfields SET uid='$uid'");
$tmp = $this->db->query("select count(*) from ".DZ_DBTABLEPRE."members where uid=".$uid);
if(!($userNotexist = $this->db->result($tmp))){
$sql = "insert into ".DZ_DBTABLEPRE."members (uid,username,email,groupid,timeoffset) values ({$uid},'{$username}','{$email}','10','9999')";
$sql = $this->db->query($sql);
$sql = "insert into ".DZ_DBTABLEPRE."memberfields (uid) values ({$uid})";
$sql = $this->db->query($sql);
}
新闻热点
疑难解答