| @@ 215-224 (lines=10) @@ | ||
| 212 | { |
|
| 213 | $_user = api_get_user_info(); |
|
| 214 | ||
| 215 | if ($active == '1') { |
|
| 216 | $action = 'lock'; |
|
| 217 | $image = 'right'; |
|
| 218 | } elseif ($active == '-1') { |
|
| 219 | $action = 'edit'; |
|
| 220 | $image = 'expired'; |
|
| 221 | } elseif ($active == '0') { |
|
| 222 | $action = 'unlock'; |
|
| 223 | $image = 'wrong'; |
|
| 224 | } |
|
| 225 | ||
| 226 | if ($action == 'edit') { |
|
| 227 | $result = Display::return_icon($image.'.gif', get_lang('AccountExpired')); |
|
| @@ 609-618 (lines=10) @@ | ||
| 606 | { |
|
| 607 | $_user = api_get_user_info(); |
|
| 608 | ||
| 609 | if ($active == '1') { |
|
| 610 | $action = 'Lock'; |
|
| 611 | $image = 'accept'; |
|
| 612 | } elseif ($active == '-1') { |
|
| 613 | $action = 'edit'; |
|
| 614 | $image = 'warning'; |
|
| 615 | } elseif ($active == '0') { |
|
| 616 | $action = 'Unlock'; |
|
| 617 | $image = 'error'; |
|
| 618 | } |
|
| 619 | ||
| 620 | $result = ''; |
|
| 621 | ||