本文整理汇总了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)) {