$vDomaine . '/ajax_promoteur_hub.php', 'preloaderWait' => $strWait, ]; } /** Config injectée dans window.MS1_V2_INSCR_GESTION avant inscr-gestion.js */ function fxV2InscrGestionConfig($strLangue) { global $vDomaine; $strLangue = ($strLangue === 'en') ? 'en' : 'fr'; return [ 'domain' => $vDomaine, 'lang' => $strLangue, 'preloaderWait' => afficheTexte('preloader_wait', 0, 0, 1), 'refundCancelHint' => ($strLangue === 'en') ? 'Your transaction has been refunded. If you also want to cancel it in the registration system:' : "Votre transaction a été remboursée. Si vous voulez aussi l'annuler dans le système d'inscription :", 'loginMessages' => [ 'txt_login' => ($strLangue === 'fr') ? "Veuillez entrer votre nom d'usager" : 'Please enter your username', 'txt_password' => ($strLangue === 'fr') ? 'Veuillez entrer votre mot de passe' : 'Please enter your password', ], ]; } /** À appeler dans inc_footer.php après inc_footer_scripts.php */ function fxV2RenderFooterScripts() { global $MS1_V2_SCRIPTS, $vDomaine, $strLangue; if (empty($MS1_V2_SCRIPTS) || !is_array($MS1_V2_SCRIPTS)) { return; } $mapFiles = [ 'bib-assignments' => '/js/v2/bib-assignments.js', 'inscr-gestion' => '/js/v2/inscr-gestion.js', 'promoteur-hub' => '/js/v2/promoteur-hub.js', ]; if (in_array('promoteur-hub', $MS1_V2_SCRIPTS, true)) { $cfg = fxV2PromoteurHubConfig($strLangue ?? 'fr'); echo '' . "\n"; } if (in_array('inscr-gestion', $MS1_V2_SCRIPTS, true)) { $cfg = fxV2InscrGestionConfig($strLangue ?? 'fr'); echo '' . "\n"; } foreach ($MS1_V2_SCRIPTS as $strName) { if (!isset($mapFiles[$strName])) { continue; } $strSrc = htmlspecialchars($vDomaine . $mapFiles[$strName], ENT_QUOTES, 'UTF-8'); echo '' . "\n"; } } }