Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 1 | <?php |
Andreu | 2457e40 | 2019-09-22 00:52:41 +0200 | [diff] [blame] | 2 | require '../credentials.php'; |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 3 | require '../php/utils.php'; |
Andreu | dd6cfb4 | 2019-09-22 19:52:39 +0200 | [diff] [blame^] | 4 | |
| 5 | $users = get_users(0, false); |
| 6 | foreach ($users as &$user) { |
| 7 | if ($user["mort"]) continue; |
| 8 | |
| 9 | $user["nopassword"] = $user["md5password"] == "" ? "nopassword" : ""; |
| 10 | unset($user["md5password"]); |
Andreu | 20cbd1d | 2019-09-22 00:00:57 +0200 | [diff] [blame] | 11 | } |
Andreu | dd6cfb4 | 2019-09-22 19:52:39 +0200 | [diff] [blame^] | 12 | |
| 13 | echo json_encode($users); |
Andreu | abbcb7e | 2019-09-21 18:22:14 +0200 | [diff] [blame] | 14 | ?> |