. */ include_once __DIR__.'/../../core.php'; use Models\Upload; $user_photo = $rootdir.'/files/utenti/'.Upload::find($user->image_file_id)->filename; if ($user_photo) { echo '
'.$user['username'].'
'; } echo '
{[ "type": "file", "label": "'.tr('Foto utente').'", "name": "photo", "help": "'.tr('Dimensione consigliata 100x100 pixel').'" ]}
';