@ -454,23 +468,23 @@ function modify_filter($user_id,$url_params,$row)
* @param string $url_params
* @param string $url_params
* @return string Some HTML-code with the lock/unlock button
* @return string Some HTML-code with the lock/unlock button
*/
*/
function active_filter($active, $url_params, $row)
function active_filter($active, $url_params, $row) {
{
global $_user;
global $_user;
if ($active=='1')
if ($active=='1') {
{
$action='lock';
$action='lock';
$image='right';
$image='right';
}
} elseif ($active=='-1') {
if ($active=='0')
$action='edit';
{
$image='expired';
} elseif ($active=='0') {
$action='unlock';
$action='unlock';
$image='wrong';
$image='wrong';
}
}
if ($row['0']<>$_user['user_id']) // 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.
}elseif ($row['0']<>$_user['user_id']) { // 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.