本文整理匯總了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)) {