当前位置: 首页>>代码示例>>PHP>>正文


PHP deletemember函数代码示例

本文整理汇总了PHP中deletemember函数的典型用法代码示例。如果您正苦于以下问题:PHP deletemember函数的具体用法?PHP deletemember怎么用?PHP deletemember使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了deletemember函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: deleteuser

 function deleteuser($get, $post)
 {
     global $_G;
     if (!API_DELETEUSER) {
         return API_RETURN_FORBIDDEN;
     }
     $uids = str_replace("'", '', stripcslashes($get['ids']));
     require_once libfile('function/delete');
     deletemember($uids);
     return API_RETURN_SUCCEED;
 }
开发者ID:Kingson4Wu,项目名称:php_demo,代码行数:11,代码来源:uc.php

示例2: array

 if ($deleteitem == 'comment') {
     $comments = array();
     $query = C::t('home_comment')->fetch_all_by_uid($uids, 0, $pertask);
     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' : '') . "&current={$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>';
开发者ID:MCHacker,项目名称:discuz-docker,代码行数:31,代码来源:admincp_members.php

示例3: deleteuser

 function deleteuser($get, $post)
 {
     global $_G;
     if (!API_DELETEUSER) {
         return API_RETURN_FORBIDDEN;
     }
     $uids = str_replace("'", '', stripslashes($get['ids']));
     $ids = array();
     $ids = array_keys(C::t('common_member')->fetch_all($uids));
     require_once DISCUZ_ROOT . './source/function/function_delete.php';
     $ids && deletemember($ids);
     return API_RETURN_SUCCEED;
 }
开发者ID:imnpc,项目名称:discuzx-php7-patch,代码行数:13,代码来源:uc.php

示例4: deleteuser

 function deleteuser($get, $post)
 {
     global $_G;
     if (!API_DELETEUSER) {
         return API_RETURN_FORBIDDEN;
     }
     $uids = str_replace("'", '', stripslashes($get['ids']));
     $ids = array();
     $query = DB::query("SELECT * FROM " . DB::table('common_member') . " WHERE uid IN ({$uids})");
     while ($row = DB::fetch($query)) {
         $ids[] = $row['uid'];
     }
     require_once DISCUZ_ROOT . './source/function/function_delete.php';
     $ids && deletemember($ids);
     return API_RETURN_SUCCEED;
 }
开发者ID:pan289091315,项目名称:Discuz,代码行数:16,代码来源:uc.php

示例5: exit

<?php

!defined('IN_DISCUZ') && exit('Access Denied');
loadcache('plugin');
$vars = $_G['cache']['plugin']['dsu_kksfs_dzx'];
if (!$_G['uid'] || !in_array($_G['groupid'], unserialize($vars['admin'])) || !$_G['gp_uid'] || $_G['gp_formhash'] != md5(FORMHASH)) {
    exit('Access Denied');
}
require_once libfile('function/forum');
require_once libfile('function/delete');
$uid = intval($_G['gp_uid']);
$user = getuserbyuid($uid);
if (!$user) {
    showmessage('dsu_kksfs_dzx:user_not_exist', '', '', array('showdialog' => true, 'alert' => 'error'));
}
if ($user['adminid']) {
    showmessage('dsu_kksfs_dzx:group_protect', '', '', array('showdialog' => true, 'alert' => 'error'));
}
$ip = DB::result_first('SELECT lastip FROM ' . DB::table('common_member_status') . " WHERE uid='{$uid}'");
DB::query('DELETE FROM ' . DB::table('forum_thread') . " WHERE authorid='{$uid}'");
DB::query('DELETE FROM ' . DB::table('forum_post') . " WHERE authorid='{$uid}'");
deletemember(array($uid));
if (!$vars['key']) {
    showmessage('dsu_kksfs_dzx:delete_succeed', '', '', array('alert' => 'right', 'showdialog' => true));
}
$submit_url = 'http://www.stopforumspam.com/add.php';
$submit_url .= "?username={$user[username]}";
$submit_url .= "&ip_addr={$ip}";
$submit_url .= "&email={$user[email]}";
$submit_url .= "&api_key={$vars[key]}";
showmessage('dsu_kksfs_dzx:delete_jump', $submit_url, '', array('alert' => 'right', 'showdialog' => true, 'locationtime' => true));
开发者ID:v998,项目名称:dsu,代码行数:31,代码来源:dsu_kksfs_dzx.inc.php


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