'; echo '

' . htmlspecialchars($strMsg, ENT_QUOTES, 'UTF-8') . '

'; echo '

Fermer

'; echo ''; exit; } } $tabResult = fxBibProductionCreateOfficialOrder($intEveId, $strLangue); if (empty($tabResult['success']) || empty($tabResult['order'])) { http_response_code(400); header('Content-Type: text/html; charset=utf-8'); $strMsg = (string)($tabResult['message'] ?? fxBibMsg('bib_v5_production_generation_error')); echo 'Erreur'; echo '

' . htmlspecialchars($strMsg, ENT_QUOTES, 'UTF-8') . '

'; echo '

Fermer

'; echo ''; exit; } $tabOrder = $tabResult['order']; } elseif ($strAction === 'download') { $intOrderId = (int)($_POST['order_id'] ?? 0); $tabOrder = fxBibProductionGetOrder($intOrderId, $intEveId); if (!$tabOrder || (int)($tabOrder['bpo_active_key'] ?? 0) !== 1) { http_response_code(404); header('Content-Type: text/plain; charset=utf-8'); echo fxBibMsg('bib_v5_production_file_missing'); exit; } } elseif ($strAction === 'development_unlock') { $tabResult = fxBibProductionDevelopmentUnlock($intEveId); if (empty($tabResult['success'])) { http_response_code(403); header('Content-Type: text/plain; charset=utf-8'); echo $tabResult['message'] ?? fxBibMsg('bib_v4_ajax_unauthorized'); exit; } $strAccountPage = $strLangue === 'en' ? '/account' : '/compte'; header( 'Location: ' . $strAccountPage . '/inc_tableau_gestion_epreuves?promoteur_eve_id=' . urlencode(base64_encode($intEveId)) ); exit; } else { http_response_code(400); exit; } if (!fxBibProductionStreamOrder($tabOrder)) { http_response_code(404); header('Content-Type: text/plain; charset=utf-8'); echo fxBibMsg('bib_v5_production_file_missing'); exit; } exit;