blob: fb6e9a672823334e962ea3c9c0909e6ae446a3c8 [file] [log] [blame]
Andreuabbcb7e2019-09-21 18:22:14 +02001<?php
2 require '../php/utils.php';
3 $user = get_users($_GET['id']);
4
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?>