0) { ob_end_clean(); } header('Content-Type: application/json; charset=utf-8'); $strRaw = file_get_contents('php://input'); $arrIn = is_string($strRaw) ? json_decode($strRaw, true) : null; if (!is_array($arrIn)) { http_response_code(400); echo json_encode(array('ok' => false, 'error' => 'JSON invalide.')); exit; } $intEveId = isset($arrIn['eve_id']) ? intval($arrIn['eve_id']) : 0; $arrResult = fxDossardPrintSaveLayout($arrIn, $intEveId); if (empty($arrResult['ok'])) { http_response_code(400); } echo json_encode($arrResult); exit;