本文整理汇总了PHP中uc_user_deleteavatar函数的典型用法代码示例。如果您正苦于以下问题:PHP uc_user_deleteavatar函数的具体用法?PHP uc_user_deleteavatar怎么用?PHP uc_user_deleteavatar使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了uc_user_deleteavatar函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: crime
$crimenum_sightml = crime('getcount', $uid, 'crime_sightml');
$crimenum_customstatus = crime('getcount', $uid, 'crime_customstatus');
$crimeauthor = getuserbyuid($uid);
$crimeauthor = $crimeauthor['username'];
include template('forum/ajax');
} else {
if (empty($_GET['operations'])) {
showmessage('quickclear_need_operation');
}
$reason = checkreasonpm();
$allowop = array('avatar', 'sightml', 'customstatus');
$cleartype = array();
if (in_array('avatar', $_GET['operations'])) {
C::t('common_member')->update($uid, array('avatarstatus' => 0));
loaducenter();
uc_user_deleteavatar($uid);
$cleartype[] = lang('forum/misc', 'avatar');
crime('recordaction', $uid, 'crime_avatar', lang('forum/misc', 'crime_reason', array('reason' => $reason)));
}
if (in_array('sightml', $_GET['operations'])) {
C::t('common_member_field_forum')->update($uid, array('sightml' => ''), 'UNBUFFERED');
$cleartype[] = lang('forum/misc', 'signature');
crime('recordaction', $uid, 'crime_sightml', lang('forum/misc', 'crime_reason', array('reason' => $reason)));
}
if (in_array('customstatus', $_GET['operations'])) {
C::t('common_member_field_forum')->update($uid, array('customstatus' => ''), 'UNBUFFERED');
$cleartype[] = lang('forum/misc', 'custom_title');
crime('recordaction', $uid, 'crime_customstatus', lang('forum/misc', 'crime_reason', array('reason' => $reason)));
}
if ($_G['group']['reasonpm'] == 2 || $_G['group']['reasonpm'] == 3 || !empty($_GET['sendreasonpm'])) {
sendreasonpm(array('authorid' => $uid), 'reason_quickclear', array('cleartype' => implode(',', $cleartype), 'reason' => $reason, 'from_id' => 0, 'from_idtype' => 'quickclear'));
示例2: delete_user
function delete_user($uidsarr)
{
$uidsarr = (array) $uidsarr;
if (!$uidsarr) {
return 0;
}
$uids = $this->base->implode($uidsarr);
$arr = $this->db->fetch_all("SELECT uid FROM " . UC_DBTABLEPRE . "protectedmembers WHERE uid IN ({$uids})");
$puids = array();
foreach ((array) $arr as $member) {
$puids[] = $member['uid'];
}
$uids = $this->base->implode(array_diff($uidsarr, $puids));
if ($uids) {
$this->db->query("DELETE FROM " . UC_DBTABLEPRE . "members WHERE uid IN({$uids})");
$this->db->query("DELETE FROM " . UC_DBTABLEPRE . "memberfields WHERE uid IN({$uids})");
uc_user_deleteavatar($uidsarr);
$this->base->load('note');
$_ENV['note']->add('deleteuser', "ids={$uids}");
return $this->db->affected_rows();
} else {
return 0;
}
}
示例3: user_deleteavatar
/**
* 删除用户头像
* @param type $uid 用户名
* @return int 1:成功
* 0:失败
*/
public function user_deleteavatar($uid)
{
if ($this->UCenter) {
return uc_user_deleteavatar($uid);
} else {
$dr = C("UPLOADFILEPATH") . "avatar/" . $uid . '/';
if (defined("CONFIG_FTPSTATUS") && CONFIG_FTPSTATUS) {
$Attachment = service("Attachment");
// 远程存放地址
$remote = CONFIG_FTPUPPAT . str_replace(SITE_PATH . "/", "", $dr);
$Attachment->FTPrmdir($remote, true);
} else {
if (is_dir($dr) == false) {
return 0;
}
import("Dir");
$Dir = new Dir();
$Dir->delDir($dr);
}
M("Member")->where(array("userid" => $uid))->save(array("userpic" => ""));
return 1;
}
}
示例4: loaducenter
loaducenter();
require_once libfile('function/discuzcode');
$questionid = $_G['gp_clearquestion'] ? 0 : '';
$ucresult = uc_user_edit($member['username'], $_G['gp_passwordnew'], $_G['gp_passwordnew'], $_G['gp_emailnew'], 1, $questionid);
if ($ucresult < 0) {
if ($ucresult == -4) {
cpmsg('members_email_illegal', '', 'error');
} elseif ($ucresult == -5) {
cpmsg('members_email_domain_illegal', '', 'error');
} elseif ($ucresult == -6) {
cpmsg('members_email_duplicate', '', 'error');
}
}
if ($_G['gp_clearavatar']) {
DB::query("UPDATE " . DB::table('common_member') . " SET avatarstatus='0' WHERE uid='{$_G['gp_uid']}'");
uc_user_deleteavatar($member['muid']);
}
$creditsnew = intval($creditsnew);
$regdatenew = strtotime($_G['gp_regdatenew']);
$lastvisitnew = strtotime($_G['gp_lastvisitnew']);
$secquesadd = $_G['gp_clearquestion'] ? ", secques=''" : '';
$signaturenew = censor($_G['gp_signaturenew']);
$sigstatusnew = $signaturenew ? 1 : 0;
$sightmlnew = addslashes(discuzcode(dstripslashes($signaturenew), 1, 0, 0, 0, $member['allowsigbbcode'] ? $member['allowcusbbcode'] ? 2 : 1 : 0, $member['allowsigimgcode'], 0));
$oltimenew = round($_G['gp_totalnew'] / 60);
$fieldadd = '';
$fieldarr = array();
include_once libfile('function/profile');
foreach ($_POST as $field_key => $field_val) {
if (isset($fields[$field_key]) && (profile_check($field_key, $field_val) || $_G['adminid'] == 1)) {
$fieldarr[$field_key] = "{$field_key}='" . $field_val . "'";
示例5: uc_user_deleteavatar
/**
* 删除用户头像
*
* @param string/array $username 用户名
*/
public function uc_user_deleteavatar($uid)
{
uc_user_deleteavatar($uid);
return 1;
}