// you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.
// you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.
$result .= ' <ahref="user_list.php?action=delete_user&user_id='.$user_id.'&'.$url_params.'&sec_token='.Security::getTokenFromSession().'"title="'.addslashes(api_htmlentities(get_lang('Please confirm your choice'))).'"class="delete-swal">'.
$deleteUrl = "user_list.php?$url_params&"
.http_build_query(
[
'action' => 'delete_user',
'user_id' => $user_id,
'sec_token' => Security::getTokenFromSession(),
]
);
$result .= Display::url(
Display::getMdiIcon(
Display::getMdiIcon(
'delete',
'delete',
'ch-tool-icon',
'ch-tool-icon',
null,
null,
22,
ICON_SIZE_SMALL,
get_lang('Delete')
get_lang('Delete')
).
),
'</a>';
$deleteUrl,
[
'data-title' => addslashes(api_htmlentities(get_lang("Please confirm your choice"))),
'title' => get_lang('Delete'),
'class' => 'delete-swal',
]
);
}
}
}
}
@ -748,7 +790,8 @@ function modify_filter($user_id, $url_params, $row)