blob: 8df8a4ec7511158d3f7f1e6e005e904b1256f506 [file] [log] [blame]
Andreuabbcb7e2019-09-21 18:22:14 +02001<?php
Andreu2457e402019-09-22 00:52:41 +02002 require '../credentials.php';
Andreuabbcb7e2019-09-21 18:22:14 +02003 require '../php/utils.php';
Andreudd6cfb42019-09-22 19:52:39 +02004
5 $users = get_users(0, false);
Andreu4b2fbd92019-09-22 22:30:25 +02006 $users_alive = [];
7
Andreudd6cfb42019-09-22 19:52:39 +02008 foreach ($users as &$user) {
9 if ($user["mort"]) continue;
10
Andreu4b2fbd92019-09-22 22:30:25 +020011 $user["nopassword"] = ($user["md5password"] == "" ? "nopassword" : "");
Andreudd6cfb42019-09-22 19:52:39 +020012 unset($user["md5password"]);
Adrià Vilanova Martínez13cf0cd2022-11-20 01:02:20 +010013 unset($user["quimata"]);
Andreu4b2fbd92019-09-22 22:30:25 +020014 array_push($users_alive, $user);
Andreu20cbd1d2019-09-22 00:00:57 +020015 }
Andreudd6cfb42019-09-22 19:52:39 +020016
Andreu4b2fbd92019-09-22 22:30:25 +020017 echo json_encode($users_alive);
Andreuabbcb7e2019-09-21 18:22:14 +020018?>