本文整理汇总了PHP中uc_user_delete函数的典型用法代码示例。如果您正苦于以下问题:PHP uc_user_delete函数的具体用法?PHP uc_user_delete怎么用?PHP uc_user_delete使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了uc_user_delete函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: delete
function delete($u_arr)
{
if (empty($u_arr)) {
return false;
}
require_once R_P . 'require/writelog.php';
global $admin_name, $timestamp, $onlineip;
$udb = array();
$userService = $this->_getUserService();
foreach ($userService->getByUserIds($u_arr) as $rt) {
$log = array('type' => 'deluser', 'username1' => $rt['username'], 'username2' => $admin_name, 'field1' => 0, 'field2' => $rt['groupid'], 'field3' => '', 'descrip' => 'deluser_descrip', 'timestamp' => $timestamp, 'ip' => $onlineip);
writelog($log);
$udb[] = $rt['uid'];
}
$this->delUserByIds($udb);
require_once R_P . 'uc_client/uc_client.php';
uc_user_delete($u_arr);
}
开发者ID:jechiy,项目名称:PHPWind,代码行数:18,代码来源:ucuser.class.php
示例2: delete
function delete($u_arr)
{
if (empty($u_arr)) {
return false;
}
require_once R_P . 'uc_client/uc_client.php';
uc_user_delete($u_arr);
require_once R_P . 'require/writelog.php';
global $admin_name, $timestamp, $onlineip;
$udb = array();
$query = $this->db->query("SELECT m.uid,m.username,m.groupid FROM pw_members m LEFT JOIN pw_memberdata md ON md.uid=m.uid WHERE m.uid IN(" . pwImplode($u_arr) . ")");
while ($rt = $this->db->fetch_array($query)) {
$log = array('type' => 'deluser', 'username1' => $rt['username'], 'username2' => $admin_name, 'field1' => 0, 'field2' => $rt['groupid'], 'field3' => '', 'descrip' => 'deluser_descrip', 'timestamp' => $timestamp, 'ip' => $onlineip);
writelog($log);
$udb[] = $rt['uid'];
}
$this->delUserByIds($udb);
}
开发者ID:adi00,项目名称:wumaproject,代码行数:18,代码来源:ucuser.class.php
示例3: delete
/**
* 删除用户
* @param string {$uid:用户id;$username:用户名;$email:email}
* @return array {-1:删除失败;>0:删除成功}
*/
public function delete() {
$this->uid = isset($this->data['uid']) ? $this->data['uid'] : '';
$this->email = isset($this->data['email']) ? $this->data['email'] : '';
if($this->uid > 0 || is_array($this->uid)) {
$where = to_sqls($this->uid, '', 'uid');
//ucenter部份
if ($this->config['ucuse']) {
pc_base::load_config('uc_config');
require_once PHPCMS_PATH.'api/uc_client/client.php';
$s = $this->db->select($where, 'ucuserid');
if ($s) {
$uc_data = array();
foreach ($s as $k=>$v) {
$uc_data[$k] = $v['ucuserid'];
}
if (!empty($uc_data)) $r = uc_user_delete($uc_data);
if (!$r) {
exit('-1');
}
} else {
exit('-1');
}
}
/*插入消息队列*/
$noticedata['uids'] = $this->uid;
messagequeue::add('member_delete', $noticedata);
$this->db->delete($where);
exit('1');
} elseif(!empty($this->username)) {
$this->db->delete(array('username'=>$this->username));
exit('2');
} elseif(!empty($this->email)) {
$this->db->delete(array('email'=>$this->email));
exit('3');
} else {
exit('-1');
}
}
开发者ID:heqishengcai,项目名称:phpcms,代码行数:48,代码来源:index.php
示例4: uc_user_delete
public function uc_user_delete($uid)
{
$uid = explode(',', $uid);
$ret = uc_user_delete($uid);
return $ret;
}
开发者ID:h3len,项目名称:Project,代码行数:6,代码来源:user.class.php
示例5: userDelete
/**
* 会员删除
* @author Vimhui Develop Team
* @param
* @return bool
*/
public function userDelete($uids)
{
return uc_user_delete($uids);
}
开发者ID:noikiy,项目名称:shopnc-minion,代码行数:10,代码来源:ucenter.model.php
示例6: foreach
foreach ($query as $comment) {
$comments[] = $comment['cid'];
}
if ($comments) {
deletecomments($comments);
} else {
$next = 0;
$nextdeleteitem = 'allitem';
}
}
if ($deleteitem == 'allitem') {
require_once libfile('function/delete');
$numdeleted = deletemember($uids);
if ($isfounder && !empty($_GET['includeuc'])) {
loaducenter();
uc_user_delete($uids);
}
if (!empty($_GET['uidarray'])) {
cpmsg('members_delete_succeed', '', 'succeed', array('numdeleted' => $numdeleted));
} else {
$allnum += $membernum < $delmemberlimit ? $membernum : $delmemberlimit;
$nextlink = "action=members&operation=clean&confirmed=yes&submit=yes&includepost=yes" . (!empty($_GET['includeuc']) ? '&includeuc=yes' : '') . "&allnum={$allnum}&deletestart=" . ($deletestart + $delmemberlimit) . $urladd;
cpmsg(cplang('members_delete_user_processing_next', array('deletestart' => $deletestart, 'nextdeletestart' => $deletestart + $delmemberlimit)), $nextlink, 'loadingform', array());
}
}
$nextlink = "action=members&operation=clean&confirmed=yes&submit=yes&includepost=yes" . (!empty($_GET['includeuc']) ? '&includeuc=yes' : '') . "¤t={$next}&pertask={$pertask}&lastprocess={$processed}&allnum={$allnum}&deletestart={$deletestart}" . $urladd;
if (empty($_GET['uidarray'])) {
$deladdmsg = cplang('members_delete_user_processing', array('deletestart' => $deletestart, 'nextdeletestart' => $deletestart + $delmemberlimit)) . '<br>';
} else {
$deladdmsg = '';
}
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:admincp_members.php
示例7: array_keys
if ($member['groupid'] == 8) {
$members[$uid] = $member;
}
}
$alluids = array_keys($members);
if ($_GET['apply_all']) {
$moderation[$_GET['apply_all']] = array_merge($alluids, $moderation[$_GET['apply_all']]);
}
if (!empty($members)) {
$numdeleted = $numinvalidated = $numvalidated = 0;
if (!empty($moderation['delete']) && is_array($moderation['delete'])) {
$deluids = array_intersect($moderation['delete'], $alluids);
$numdeleted = count($deluids);
C::t('common_member')->delete_no_validate($deluids);
loaducenter();
uc_user_delete($deluids);
} else {
$moderation['delete'] = array();
}
if (!empty($moderation['validate']) && is_array($moderation['validate'])) {
$validateuids = array_intersect($moderation['validate'], $alluids);
C::t('common_member')->update($validateuids, array('adminid' => 0, 'groupid' => $_G['setting']['newusergroupid']));
$numvalidated = count($validateuids);
C::t('common_member_validate')->delete($validateuids);
} else {
$moderation['validate'] = array();
}
if (!empty($moderation['invalidate']) && is_array($moderation['invalidate'])) {
$invalidateuids = array_intersect($moderation['invalidate'], $alluids);
$numinvalidated = count($invalidateuids);
foreach ($invalidateuids as $uid) {
开发者ID:softhui,项目名称:discuz,代码行数:31,代码来源:moderate_member.php
示例8: implode
if ($_G['gp_apply_all']) {
$uids .= ',' . $member['uid'];
$moderation[$_G[gp_apply_all]][] = $member['uid'];
}
}
if (is_array($uidarray) && !empty($uidarray)) {
$uids = implode(',', $uidarray);
$numdeleted = $numinvalidated = $numvalidated = 0;
if (!empty($moderation['delete']) && is_array($moderation['delete'])) {
$deleteuids = '\'' . implode('\',\'', $moderation['delete']) . '\'';
DB::query("DELETE FROM " . DB::table('common_member') . " WHERE uid IN ({$deleteuids}) AND uid IN ({$uids})");
$numdeleted = DB::affected_rows();
DB::query("DELETE FROM " . DB::table('common_member_field_forum') . " WHERE uid IN ({$deleteuids}) AND uid IN ({$uids})");
DB::query("DELETE FROM " . DB::table('common_member_validate') . " WHERE uid IN ({$deleteuids}) AND uid IN ({$uids})");
loaducenter();
uc_user_delete($moderation['delete']);
} else {
$moderation['delete'] = array();
}
if (!empty($moderation['validate']) && is_array($moderation['validate'])) {
$newgroupid = DB::result_first("SELECT groupid FROM " . DB::table('common_usergroup') . " WHERE creditshigher<=0 AND 0<creditslower LIMIT 1");
$validateuids = '\'' . implode('\',\'', $moderation['validate']) . '\'';
DB::query("UPDATE " . DB::table('common_member') . " SET adminid='0', groupid='{$newgroupid}' WHERE uid IN ({$validateuids}) AND uid IN ({$uids})");
$numvalidated = DB::affected_rows();
DB::query("DELETE FROM " . DB::table('common_member_validate') . " WHERE uid IN ({$validateuids}) AND uid IN ({$uids})");
} else {
$moderation['validate'] = array();
}
if (!empty($moderation['invalidate']) && is_array($moderation['invalidate'])) {
foreach ($moderation['invalidate'] as $uid) {
$numinvalidated++;
开发者ID:v998,项目名称:discuzx-en,代码行数:31,代码来源:moderate_member.php
示例9: jieqi_udelete_iprocess
/**
* 用户接口,删除处理
*
* @param array $params 参数数组
* 必须参数: $params['username'] - 用户名,$params['password'] - 密码,$params['email'] - 邮箱
* @access public
* @return int
*/
function jieqi_udelete_iprocess(&$params)
{
global $jieqiLang;
if (!isset($jieqiLang['system'])) {
jieqi_loadlang('users', 'system');
}
uc_user_delete($params['username']);
if (defined('JIEQI_WAP_PAGE')) {
jieqi_wapgourl($params['jumpurl']);
} elseif ($_REQUEST['jumphide']) {
header('Location: ' . $params['jumpurl']);
} else {
jieqi_jumppage($params['jumpurl'], LANG_DO_SUCCESS, $jieqiLang['system']['delete_user_success']);
}
return true;
}
开发者ID:thu0ng91,项目名称:jmc,代码行数:24,代码来源:funuser_ucenter.php
示例10: signupWithUC
public function signupWithUC($username, $password, $email, $storeUserIndependent = 0, $options = array())
{
$rt = 1;
if (!$storeUserIndependent) {
if (SYNC_WITH_UC) {
$ucenterUserName = $username;
if (defined('UCENTER_CHARSET') && UCENTER_CHARSET == 'utf-8') {
$ucenterUserName = iconv('gbk', 'utf-8', $ucenterUserName);
}
include_once ABS_PATH . '/uc_client/client.php';
$rt = uc_user_register($ucenterUserName, $password, $email);
} elseif (defined('SYNC_WITH_PHPWIND') && SYNC_WITH_PHPWIND) {
define('AUTOSYSTEM', '1');
include ABS_PATH . '/pw_api.php';
include ABS_PATH . '/uc_client/uc_client.php';
$rt = uc_user_register($username, md5($password), $email);
//把错误结果转换为ucenter的错误代码
switch ($rt) {
default:
break;
case -2:
$rt = -3;
//用户名已被注册
break;
case -3:
$rt = -4;
//邮箱非法
break;
case -4:
$rt = -6;
//邮箱已经被注册
break;
}
}
}
if ($rt > 0) {
$rt = $this->signup($username, $email, $password, $storeUserIndependent, $options);
if ($rt) {
setcookie('jsusername', escape($username), SYS_TIME + 2592000, '/', DOMAIN_ROOT);
}
//
if ($rt < 1) {
//cannot insert into auto_user table,so delete the record in uc_member
if (SYNC_WITH_UC && !$storeUserIndependent) {
include ABS_PATH . '/uc_client/client.php';
uc_user_delete($username);
}
}
}
return $rt;
}
开发者ID:ailingsen,项目名称:pigcms,代码行数:51,代码来源:userObj.class.php
示例11: delUcUser
/**
*
* 删除uc会员 ...
* @param int $memberId
*/
public function delUcUser($memberId)
{
if (empty($memberId)) {
return 0;
}
$condition = ' AND m.member_id IN (' . $memberId . ')';
$delMemberInfo = $this->get_member_info($condition, 'm.member_name,m.type', '', 'member_id', 0);
if (empty($delMemberInfo)) {
return 0;
}
$check_Bind = new check_Bind();
include_once CUR_CONF_PATH . 'uc_client/client.php';
$ucId = array();
foreach ($delMemberInfo as $k => $v) {
if (in_array($v['type'], array('m2o', 'uc'))) {
$ucId[] = $check_Bind->check_uc($k, $v['type']);
}
}
if ($ucId) {
return uc_user_delete($ucId);
//支持批量删除
}
}
开发者ID:h3len,项目名称:Project,代码行数:28,代码来源:member.class.php
示例12: uc_get_user
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_company` WHERE mid='{$id}' LIMIT 1");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_person` WHERE mid='{$id}' LIMIT 1");
//删除用户相关数据
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_stow` WHERE mid='{$id}' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_flink` WHERE mid='{$id}' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_guestbook` WHERE mid='{$id}' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_operation` WHERE mid='{$id}' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_pms` WHERE toid='{$id}' Or fromid='{$id}' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_friends` WHERE mid='{$id}' Or fid='{$id}' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__member_vhistory` WHERE mid='{$id}' Or vid='{$id}' ");
$dsql->ExecuteNoneQuery("DELETE FROM `#@__feedback` WHERE mid='{$id}' ");
$dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET mid='0' WHERE mid='{$id}'");
#api{{
if (defined('UC_API') && @(include_once DEDEROOT . '/uc_client/client.php')) {
$infofromuc = uc_get_user($row['userid']);
uc_user_delete($infofromuc[0]);
}
#/aip}}
} else {
ShowMsg("无法删除此会员,如果这个会员是<b>[管理员]</b>,<br />必须先删除这个<b>[管理员]</b>才能删除此帐号!", $ENV_GOBACK_URL, 0, 5000);
exit;
}
}
ShowMsg("成功删除一个会员!", $ENV_GOBACK_URL);
exit;
}
$randcode = mt_rand(10000, 99999);
$safecode = substr(md5($cfg_cookie_encode . $randcode), 0, 24);
$wintitle = "会员管理-删除会员";
$wecome_info = "<a href='" . $ENV_GOBACK_URL . "'>会员管理</a>::删除会员";
$win = new OxWindow();
开发者ID:hensonvip,项目名称:ymroad,代码行数:31,代码来源:member_do.php
示例13: user_delete
/**
* 删除用户
* @param type $uid 用户名
* @return int 1:成功
* 0:失败
*/
public function user_delete($uid)
{
$modelid = M("Member")->where(array("userid" => $uid))->getField("modelid");
if (!$modelid) {
return 0;
}
$Model_Member = F("Model_Member");
$tablename = ucwords($Model_Member[$modelid]['tablename']);
if ($this->UCenter) {
if (!uc_user_delete($uid)) {
return 0;
}
}
//删除本地用户数据开始
if (M("Member")->where(array("userid" => $uid))->delete()) {
M($tablename)->where(array("userid" => $uid))->delete();
//删除connect
M("Connect")->where(array("uid" => $uid))->delete();
return 1;
}
return 0;
}
开发者ID:BGCX262,项目名称:ztoa-svn-to-git,代码行数:28,代码来源:PassportService.class.php
示例14: onmemberdel
function onmemberdel()
{
if ($this->CON['mem_isucenter']) {
require admin_ROOT . 'public/uc_client/client.php';
}
$db_table = db_prefix . 'member';
$db_table2 = db_prefix . 'member_value';
$selectinfoid = $this->fun->accept('memberselectinfoid', 'P');
if (empty($selectinfoid)) {
exit('false');
}
$infoarray = explode(',', $selectinfoid);
$count = count($infoarray) - 1;
if ($count <= 0) {
exit('false');
}
for ($i = 0; $i < $count; $i++) {
$db_where = "userid={$infoarray[$i]}";
if ($this->CON['mem_isucenter']) {
$username = $this->get_member(null, $infoarray[$i], 'username');
$data = uc_get_user($username);
if ($data) {
$delid = uc_user_delete($data[0]);
}
}
$this->db->query('DELETE FROM ' . $db_table . ' WHERE ' . $db_where);
$this->db->query('DELETE FROM ' . $db_table2 . ' WHERE ' . $db_where);
}
$this->writelog($this->lng['membermain_del_log'], $this->lng['log_extra_ok'] . ' id=' . $selectinfoid);
exit('true');
}
开发者ID:qiuai,项目名称:esp_cms,代码行数:31,代码来源:membermain.php
示例15: uc_user_delete
$dsql->ExecuteNoneQuery("Delete From `#@__member_space` where mid='{$id}' limit 1");
$dsql->ExecuteNoneQuery("Delete From `#@__member_company` where mid='{$id}' limit 1");
$dsql->ExecuteNoneQuery("Delete From `#@__member_person` where mid='{$id}' limit 1");
//删除用户相关数据
$dsql->ExecuteNoneQuery("Delete From `#@__member_stow` where mid='{$id}' ");
$dsql->ExecuteNoneQuery("Delete From `#@__member_flink` where mid='{$id}' ");
$dsql->ExecuteNoneQuery("Delete From `#@__member_guestbook` where mid='{$id}' ");
$dsql->ExecuteNoneQuery("Delete From `#@__member_operation` where mid='{$id}' ");
$dsql->ExecuteNoneQuery("Delete From `#@__member_pms` where toid='{$id}' Or fromid='{$id}' ");
$dsql->ExecuteNoneQuery("Delete From `#@__member_friends` where mid='{$id}' Or fid='{$id}' ");
$dsql->ExecuteNoneQuery("Delete From `#@__member_vhistory` where mid='{$id}' Or vid='{$id}' ");
$dsql->ExecuteNoneQuery("Delete From `#@__feedback` where mid='{$id}' ");
$dsql->ExecuteNoneQuery("update `#@__archives` set mid='0' where mid='{$id}'");
#api{{
if (defined('UC_API') && @(include_once DEDEROOT . '/uc_client/client.php')) {
uc_user_delete($row['userid']);
}
#/aip}}
} else {
ShowMsg("无法删除此会员,如果这个会员是<b>[管理员]</b>,<br />必须先删除这个<b>[管理员]</b>才能删除此帐号!", $ENV_GOBACK_URL, 0, 5000);
exit;
}
}
ShowMsg("成功删除一个会员!", $ENV_GOBACK_URL);
exit;
}
$randcode = mt_rand(10000, 99999);
$safecode = substr(md5($cfg_cookie_encode . $randcode), 0, 24);
$wintitle = "会员管理-删除会员";
$wecome_info = "<a href='" . $ENV_GOBACK_URL . "'>会员管理</a>::删除会员";
$win = new OxWindow();
开发者ID:klr2003,项目名称:sourceread,代码行数:31,代码来源:member_do.php
示例16: user_delete
static function user_delete($uid)
{
global $kekezu;
db_factory::execute(sprintf("delete from %switkey_space where uid='%d' ", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_member where uid='%d' ", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_member_bank where uid='%d' ", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_member_ext where uid='%d' ", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_member_black where uid='%d' ", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_member_oauth where uid='%d' ", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_shop where uid='%d' ", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_service where uid='%d'", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_auth_email where uid='%d'", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_auth_mobile where uid='%d'", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_auth_bank where uid='%d'", TABLEPRE, $uid));
db_factory::execute(sprintf("delete from %switkey_auth_record where uid='%d'", TABLEPRE, $uid));
if ($kekezu->_sys_config['user_intergration'] == 1) {
return $uid;
} elseif ($kekezu->_sys_config['user_intergration'] == 2) {
require_once S_ROOT . '/uc_client/client.php';
return uc_user_delete($uid);
}
}
开发者ID:xupnge1314,项目名称:project,代码行数:22,代码来源:keke_user_class.php
示例17: on_register
//.........这里部分代码省略.........
showmessage($field['title'] . lang('message', 'profile_illegal'), '', array(), array('showid' => 'chk_' . $showid, 'extrajs' => $field['title'] . lang('message', 'profile_illegal') . ($field['formtype'] == 'text' ? '<script type="text/javascript">' . '$(\'registerform\').' . $field['fieldid'] . '.className = \'px er\';' . '$(\'registerform\').' . $field['fieldid'] . '.onblur = function () { if(this.value != \'\') {this.className = \'px\';$(\'chk_' . $showid . '\').innerHTML = \'\';}}' . '</script>' : '')));
}
if ($field['needverify']) {
$verifyarr[$field_key] = $field_val;
} else {
$profile[$field_key] = $field_val;
}
}
if (!$activation) {
$uid = uc_user_register(addslashes($username), $password, $email, $questionid, $answer, $_G['clientip']);
if ($uid <= 0) {
if ($uid == -1) {
showmessage('profile_username_illegal');
} elseif ($uid == -2) {
showmessage('profile_username_protect');
} elseif ($uid == -3) {
showmessage('profile_username_duplicate');
} elseif ($uid == -4) {
showmessage('profile_email_illegal');
} elseif ($uid == -5) {
showmessage('profile_email_domain_illegal');
} elseif ($uid == -6) {
showmessage('profile_email_duplicate');
} else {
showmessage('undefined_action');
}
}
} else {
list($uid, $username, $email) = $activation;
}
$_G['username'] = $username;
if (getuserbyuid($uid, 1)) {
if (!$activation) {
uc_user_delete($uid);
}
showmessage('profile_uid_duplicate', '', array('uid' => $uid));
}
$password = md5(random(10));
$secques = $questionid > 0 ? random(8) : '';
if (isset($_POST['birthmonth']) && isset($_POST['birthday'])) {
$profile['constellation'] = get_constellation($_POST['birthmonth'], $_POST['birthday']);
}
if (isset($_POST['birthyear'])) {
$profile['zodiac'] = get_zodiac($_POST['birthyear']);
}
if ($_FILES) {
$upload = new discuz_upload();
foreach ($_FILES as $key => $file) {
$field_key = 'field_' . $key;
if (!empty($_G['cache']['fields_register'][$field_key]) && $_G['cache']['fields_register'][$field_key]['formtype'] == 'file') {
$upload->init($file, 'profile');
$attach = $upload->attach;
if (!$upload->error()) {
$upload->save();
if (!$upload->get_image_info($attach['target'])) {
@unlink($attach['target']);
continue;
}
$attach['attachment'] = dhtmlspecialchars(trim($attach['attachment']));
if ($_G['cache']['fields_register'][$field_key]['needverify']) {
$verifyarr[$key] = $attach['attachment'];
} else {
$profile[$key] = $attach['attachment'];
}
}
}
开发者ID:torrent520,项目名称:torrent520.github.io,代码行数:67,代码来源:class_member.php
示例18: while
while ($member = $db->fetch_array($query)) {
if ($membernum < 2000 || !empty($uidarray)) {
$extra .= '<input type="hidden" name="uidarray[]" value="' . $member['uid'] . '" />';
}
$uids .= $comma . $member['uid'];
$comma = ',';
}
if (empty($membernum) || empty($uids)) {
cpmsg('members_no_find_deluser', '', 'error');
}
if (!$confirmed) {
cpmsg('members_delete_confirm', "{$BASESCRIPT}?action=members&operation=clean&submit=yes&confirmed=yes" . $urladd, 'form', $extra . '<br /><input type="checkbox" name="includepost" value="1" class="checkbox" />' . $lang['members_delete_post'] . ($isfounder ? ' <input type="checkbox" name="includeuc" value="1" class="checkbox" />' . $lang['members_delete_ucdata'] : ''));
} else {
if ($isfounder && !empty($includeuc)) {
require_once DISCUZ_ROOT . './uc_client/client.php';
uc_user_delete($uidarray);
}
if (empty($includepost)) {
$query = $db->query("DELETE FROM {$tablepre}members WHERE uid IN ({$uids})");
$numdeleted = $db->affected_rows();
$db->query("DELETE FROM {$tablepre}access WHERE uid IN ({$uids})", 'UNBUFFERED');
$db->query("DELETE FROM {$tablepre}memberfields WHERE uid IN ({$uids})", 'UNBUFFERED');
$db->query("DELETE FROM {$tablepre}favorites WHERE uid IN ({$uids})", 'UNBUFFERED');
$db->query("DELETE FROM {$tablepre}moderators WHERE uid IN ({$uids})", 'UNBUFFERED');
$db->query("DELETE FROM {$tablepre}validating WHERE uid IN ({$uids})", 'UNBUFFERED');
manyoulog('user', $uids, 'delete');
cpmsg('members_delete_succeed', '', 'succeed');
} else {
$numdeleted = $numdeleted ? $numdeleted : count($uidarray);
$pertask = 1000;
$current = intval($current);
开发者ID:evatlsong,项目名称:springside,代码行数:31,代码来源:members.inc.php
示例19: deleteUsers
/**
* [public function]
*
* Remove one or more users from the list of registered users
*
* @param array $users array of users to be deleted
* @return int the number of users deleted
*
* @author Christopher Smith <[email protected]>
* @author Matthias Grimm <[email protected]>
*/
function deleteUsers($users)
{
$count = 0;
if (is_array($users) && count($users)) {
foreach ($users as $user) {
$uid = $this->get_uid($user);
if ($uid && uc_user_delete($uid)) {
$count++;
}
}
}
return $count;
}
开发者ID:spoonysonny,项目名称:dokuwiki_ucenter,代码行数:24,代码来源:uc.class.php
示例20: while
while ($comment = DB::fetch($query)) {
$comments[] = $comment['cid'];
}
if ($comments) {
deletecomments($comments);
} else {
$next = 0;
$nextdeleteitem = 'allitem';
}
}
if ($deleteitem == 'allitem') {
require_once libfile('function/delete');
$numdeleted = deletemember($uids);
if ($isfounder && !empty($_G['gp_includeuc'])) {
loaducenter();
uc_user_delete($_G['gp_uidarray']);
}
cpmsg('members_delete_succeed', '', 'succeed', array('numdeleted' => $numdeleted));
}
if ($nextdeleteitem != $deleteitem) {
$nextlink = "action=members&operation=clean&confirmed=yes&submit=yes&includepost=yes" . (!empty($_G['gp_includeuc']) ? '&includeuc=yes' : '') . "¤t={$next}&pertask={$pertask}&lastprocess={$processed}" . $urladd . "&deleteitem={$nextdeleteitem}";
cpmsg(cplang('members_delete_processing_next', array('item' => cplang('members_delete_' . $deleteitem), 'nextitem' => cplang('members_delete_' . $nextdeleteitem))), $nextlink, 'loadingform', array(), $extra);
} else {
$nextlink = "action=members&operation=clean&confirmed=yes&submit=yes&includepost=yes" . (!empty($_G['gp_includeuc']) ? '&includeuc=yes' : '') . "¤t={$next}&pertask={$pertask}&lastprocess={$processed}" . $urladd . "&deleteitem={$deleteitem}";
cpmsg(cplang('members_delete_processing', array('item' => cplang('members_delete_' . $deleteitem), 'current' => $current, 'next' => $next)), $nextlink, 'loadingform', array(), $extra);
}
}
}
}
} elseif ($operation == 'newsletter') {
if (!submitcheck('newslettersubmit', 1)) {
开发者ID:dalinhuang,项目名称:hlwbbsvincent,代码行数:31,代码来源:admincp_members.php
注:本文中的uc_user_delete函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论