• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP uc_user_deleteavatar函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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'));
开发者ID:vanloswang,项目名称:DiscuzX,代码行数:31,代码来源:forum_ajax.php


示例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;
     }
 }
开发者ID:fishling,项目名称:chatPro,代码行数:24,代码来源:user.php


示例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;
     }
 }
开发者ID:BGCX262,项目名称:ztoa-svn-to-git,代码行数:29,代码来源:PassportService.class.php


示例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 . "'";
开发者ID:dalinhuang,项目名称:hlwbbsvincent,代码行数:31,代码来源:admincp_members.php


示例5: uc_user_deleteavatar

 /**
  * 删除用户头像
  *
  * @param string/array $username 用户名
  */
 public function uc_user_deleteavatar($uid)
 {
     uc_user_deleteavatar($uid);
     return 1;
 }
开发者ID:hubs,项目名称:yuncms,代码行数:10,代码来源:uc_client.php



注:本文中的uc_user_deleteavatar函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP uc_user_edit函数代码示例发布时间:2022-05-23
下一篇:
PHP uc_user_delete函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap