Add AJAX functionality for event registration management and QR code scanning

This commit introduces new AJAX endpoints for managing event registrations, including a dedicated script for handling QR code scans. The new functionality validates user sessions and event access, providing JSON responses for both successful and error states. Additionally, it enhances the overall structure of the event management system by integrating various helper functions for improved maintainability and user experience.
This commit is contained in:
2026-06-27 12:09:56 -04:00
parent 116347036f
commit 9acc8102e8
4 changed files with 0 additions and 0 deletions

View File

@ -0,0 +1,28 @@
<?php
include_once('php/inc_fx_modifierinscriptions.php');
include_once('php/inc_fx_memberships.php');
include_once('php/inc_fx_promoteur.php');
include_once('php/inc_fx_inscriptions_mobile.php');
require_once('superadm/php/inc_manager.php');
global $objDatabase, $vDomaine, $strLangue;
$intEveId = 0;
if (isset($_GET['promoteur_eve_id'])) {
$intEveId = fxInscrMobileParseEveId($_GET['promoteur_eve_id']);
}
if ($intEveId === 0) {
if ($strLangue === 'fr') {
echo 'Une erreur quelconque est survenue.';
} else {
echo 'A generic error occurred.';
}
return;
}
echo '<div class="inscr-mobile-page">';
fxInscrMobileRun($intEveId, $strLangue);
echo '</div>';