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


PHP auth_admin::acl_delete方法代码示例

本文整理汇总了PHP中auth_admin::acl_delete方法的典型用法代码示例。如果您正苦于以下问题:PHP auth_admin::acl_delete方法的具体用法?PHP auth_admin::acl_delete怎么用?PHP auth_admin::acl_delete使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在auth_admin的用法示例。


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

示例1: unset

         unset($l_ug_list);
     }
     unset($auth_submode);
     unset($auth_setting);
     trigger_error($_CLASS['core_user']->lang['AUTH_UPDATED']);
     break;
 case 'delete':
     $sql = "SELECT auth_option_id\r\n\t\t\tFROM " . FORUMS_ACL_OPTIONS_TABLE . "\r\n\t\t\tWHERE auth_option LIKE '{$sql_option_mode}_%'";
     $result = $_CLASS['core_db']->query($sql);
     if ($row = $_CLASS['core_db']->fetch_row_assoc($result)) {
         $option_id_ary = array();
         do {
             $option_id_ary[] = $row['auth_option_id'];
         } while ($row = $_CLASS['core_db']->fetch_row_assoc($result));
         foreach ($ug_data as $id) {
             $auth_admin->acl_delete($ug_type, $forum_id[$mode], $id, $option_id_ary);
         }
         unset($option_id_ary);
     }
     $_CLASS['core_db']->free_result($result);
     // Do we need to recache the moderator lists? We do if the mode
     // was mod or auth_settings['mod'] is a non-zero size array
     if ($mode == 'mod' || isset($auth_settings['mod']) && sizeof($auth_settings['mod'])) {
         cache_moderators();
     }
     // Logging ... first grab user or groupnames ...
     $sql = $ug_type == 'group' ? 'SELECT group_name as name, group_type FROM ' . GROUPS_TABLE . ' WHERE group_id' : 'SELECT username as name FROM ' . USERS_TABLE . ' WHERE user_id';
     $sql .= ' IN (' . implode(', ', array_map('intval', $ug_data)) . ')';
     $result = $_CLASS['core_db']->query($sql);
     $l_ug_list = '';
     while ($row = $_CLASS['core_db']->fetch_row_assoc($result)) {
开发者ID:BackupTheBerlios,项目名称:viperals-svn,代码行数:31,代码来源:admin_permissions.php


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