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

PHP xoops_notification_deletebyuser函数代码示例

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

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



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

示例1: resign

 function resign(&$flag, &$controller, &$xoopsUser)
 {
     $handler =& xoops_gethandler('member');
     $groups = $handler->getGroupsByUser($xoopsUser->get('uid'));
     foreach ($groups as $group) {
         $handler->removeUserFromGroup($group, $xoopsUser->get('uid'));
     }
     $handler->addUserToGroup(RESIGN_USER_GROUP_ID, $xoopsUser->get('uid'));
     xoops_notification_deletebyuser($xoopsUser->get('uid'));
     XCube_DelegateUtils::call('Legacy.Event.UserDelete', new XCube_Ref($xoopsUser));
     $flag = true;
     $root =& XCube_Root::getSingleton();
     // Reset session
     $_SESSION = array();
     $root->mSession->destroy(true);
     // reset online
     $handler =& xoops_gethandler('online');
     $handler->destroy($xoopsUser->get('uid'));
     xoops_notification_deletebyuser($xoopsUser->get('uid'));
     // Redirect not to call behind delegates.
     $langMgr =& $root->getLanguageManager();
     $langMgr->loadPageTypeMessageCatalog('user');
     $controller =& $root->getController();
     $controller->executeRedirect(XOOPS_URL, 3, _US_BEENDELED);
 }
开发者ID:hiro1173,项目名称:legacy,代码行数:25,代码来源:ResignUserControl.class.php


示例2: foreach

     if (@isset($_REQUEST['memberslist_id']) || @$_REQUEST['memberslist_id'] != '') {
         $xoBreadCrumb->render();
         $error = '';
         foreach ($_REQUEST['memberslist_id'] as $del) {
             $del = intval($del);
             $user =& $member_handler->getUser($del);
             $groups = $user->getGroups();
             if (in_array(XOOPS_GROUP_ADMIN, $groups)) {
                 $error .= sprintf(_AM_SYSTEM_USERS_NO_ADMINSUPP, $user->getVar("uname"));
             } elseif (!$member_handler->deleteUser($user)) {
                 $error .= sprintf(_AM_SYSTEM_USERS_NO_SUPP, $user->getVar("uname"));
             } else {
                 $online_handler =& xoops_gethandler('online');
                 $online_handler->destroy($del);
                 // RMV-NOTIFY
                 xoops_notification_deletebyuser($del);
             }
         }
         if ($error != '') {
             redirect_header("admin.php?fct=users", 3, sprintf(_AM_SYSTEM_USERS_ERROR, $error));
         } else {
             redirect_header("admin.php?fct=users", 1, _AM_SYSTEM_DBUPDATED);
         }
     }
     break;
     // Save user
 // Save user
 case "users_save":
     global $xoopsConfig, $xoopsModule, $xoopsUser;
     if (isset($_REQUEST['uid'])) {
         //Update user
开发者ID:BackupTheBerlios,项目名称:haxoo-svn,代码行数:31,代码来源:main.php


示例3: _doDelete

 /**
  * Exection deleting.
  * 
  * @return bool
  */
 function _doDelete(&$flag, $controller, $xoopsUser)
 {
     $handler =& xoops_gethandler('member');
     if ($handler->deleteUser($xoopsUser)) {
         $handler =& xoops_gethandler('online');
         $handler->destroy($this->mObject->get('uid'));
         xoops_notification_deletebyuser($this->mObject->get('uid'));
         $flag = true;
     }
     $flag |= false;
 }
开发者ID:hiro1173,项目名称:legacy,代码行数:16,代码来源:UserDeleteAction.class.php


示例4: delete_users

function delete_users()
{
    global $xoopsSecurity;
    if (!$xoopsSecurity->check()) {
        redirectMsg("users.php", implode('<br />', $GLOBALS['xoopsSecurity']->getErrors()), 1);
        die;
    }
    foreach ($_GET as $k => $v) {
        if ($k == 'XOOPS_TOKEN_REQUEST' || $k == 'action') {
            continue;
        }
        $q .= $q == '' ? "{$k}=" . urlencode($v) : "&{$k}=" . urlencode($v);
    }
    $uid = rmc_server_var($_POST, 'ids', array());
    $member_handler =& xoops_gethandler('member', 'system');
    foreach ($uid as $id) {
        $user =& $member_handler->getUser($id);
        $groups = $user->getGroups();
        if (in_array(XOOPS_GROUP_ADMIN, $groups)) {
            xoops_error(sprintf(__('Admin user cannot be deleted: %s', 'rmcommon'), $user->getVar("uname") . '<br />'));
        } elseif (!$member_handler->deleteUser($user)) {
            xoops_error(sprintf(__('User cannot be deleted: %s', 'rmcommon'), $user->getVar("uname") . '<br />'));
        } else {
            $online_handler =& xoops_gethandler('online');
            $online_handler->destroy($uid);
            // RMV-NOTIFY
            xoops_notification_deletebyuser($uid);
        }
    }
    redirectMsg("users.php?" . $q, __('Users deleted successfully!', 'rmcommon'), 0);
}
开发者ID:JustineBABY,项目名称:rmcommon,代码行数:31,代码来源:users.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP xoops_result函数代码示例发布时间:2022-05-23
下一篇:
PHP xoops_notification_deletebyitem函数代码示例发布时间: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