From f33b105033f6d10dfedd0b49f8ecc868fdccf00e Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Fri, 8 May 2009 07:17:27 +0200 Subject: [PATCH] [svn r20399] Updated users list to show a distinct icon when a user account is expired (fixes private task FS#3731) --- main/admin/user_list.php | 40 ++++++++++++++++++++++++++------------- main/img/expired.gif | Bin 0 -> 181 bytes 2 files changed, 27 insertions(+), 13 deletions(-) create mode 100644 main/img/expired.gif diff --git a/main/admin/user_list.php b/main/admin/user_list.php index 207142eea5..23044745d6 100644 --- a/main/admin/user_list.php +++ b/main/admin/user_list.php @@ -1,4 +1,4 @@ -$_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. - { + if ($action=='edit') { + $result = Display::return_icon($image.'.gif', get_lang('AccountExpired')); + }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. $result = ''.Display::return_icon($image.'.gif', get_lang(ucfirst($action))).''; } return $result; diff --git a/main/img/expired.gif b/main/img/expired.gif new file mode 100644 index 0000000000000000000000000000000000000000..95aaa18d1eb22fc31e9b020ab2f53fd1828edb4f GIT binary patch literal 181 zcmZ?wbhEHb6lM@+c+ADXz{v2Qf#JUl!+&jt|CS8@y_oHbw*HS`_?OP`@Bg3w7(nqS z3nK#qKZ6bf5P-~JU`hIL(zADOThNi*U-OsR$~>xN(C}NzskTx}wj_5?p~dwtyw5s) z5