blob: 686287d8c4d05a7dfef8924fce20f8e663d25a2e [file] [log] [blame]
Andreuabbcb7e2019-09-21 18:22:14 +02001<?php
2 require '../php/utils.php';
Andreu09b8b052019-09-21 21:47:20 +02003 $user = get_users($_POST['id']);
Andreuabbcb7e2019-09-21 18:22:14 +02004
5 echo '{ ';
6 $first = true;
7 foreach ($user as $prop => $value) {
8 if (!$first) echo ', ';
9 else $first = false;
10 if ($prop == "nomcomplet") echo '"'.$prop.'": "'.$value.'"';
11 else echo '"'.$prop.'": '.$value;
12 }
13 echo ' }';
14?>