Refactor event management system to transition from mobile to gestion
This commit updates the event management system by replacing references to mobile inscriptions with gestion inscriptions. It includes changes to AJAX endpoints, helper functions, and UI elements to reflect this transition. The updates enhance the overall structure and maintainability of the codebase while ensuring that user access and permissions are properly managed for the new gestion interface.
This commit is contained in:
23
compte.php
23
compte.php
@ -21,7 +21,7 @@ require_once('php/inc_logs_course.php');
|
||||
require_once('superadm/php/inc_fx_excell.php');
|
||||
|
||||
require_once('php/inc_fx_liste_attente.php');
|
||||
require_once('php/inc_fx_inscriptions_mobile.php');
|
||||
require_once('php/inc_fx_inscriptions_gestion.php');
|
||||
require_once('php/inc_fx_eve_acces.php');
|
||||
require_once('php/inc_fx_promoteur_hub.php');
|
||||
global $objDatabase, $vPage, $vDomaine;
|
||||
@ -70,6 +70,17 @@ if ($strCode === 'compte_promoteur_hub' && (!isset($_SESSION['com_id']) || !fxPr
|
||||
exit;
|
||||
}
|
||||
|
||||
// Ancien slug renomme (retrait du nom "mobile") : redirection 301 vers le nouveau slug "gestion".
|
||||
// Conserve les parametres utiles (promoteur_eve_id, pec_id, lng...) pour ne pas casser favoris/QR.
|
||||
if (($_GET['code'] ?? '') === 'inc_tableau_inscriptions_mobile') {
|
||||
$strNewPath = ($strLangue === 'en') ? '/account/inc_tableau_inscriptions_gestion' : '/compte/inc_tableau_inscriptions_gestion';
|
||||
parse_str($_SERVER['QUERY_STRING'] ?? '', $arrOldQs);
|
||||
unset($arrOldQs['code'], $arrOldQs['lang']);
|
||||
$strQsClean = http_build_query($arrOldQs);
|
||||
header('Location: ' . $vDomaine . $strNewPath . ($strQsClean !== '' ? '?' . $strQsClean : ''), true, 301);
|
||||
exit;
|
||||
}
|
||||
|
||||
$recPage = fxGetPage($strCode);
|
||||
|
||||
if (count($recPage) < 1) {
|
||||
@ -322,8 +333,8 @@ if (isset($_GET['promoteur_eve_id'])) {
|
||||
|
||||
$intEveId = base64_decode(urldecode($_GET['promoteur_eve_id']));
|
||||
$intEveIdbase = $intEveId;
|
||||
if ($strCode === 'compte_inc_tableau_inscriptions_mobile') {
|
||||
if (!fxInscrMobileCanAccess($_SESSION['com_id'], $intEveIdbase)) {
|
||||
if ($strCode === 'compte_inc_tableau_inscriptions_gestion') {
|
||||
if (!fxInscrGestionCanAccess($_SESSION['com_id'], $intEveIdbase)) {
|
||||
header('Location: ' . $vDomaine . '/' . $strPage);
|
||||
exit;
|
||||
}
|
||||
@ -721,12 +732,12 @@ require_once("inc_header.php");
|
||||
$footer_script = true;
|
||||
include("inc_tableau_inscriptions.php");
|
||||
break;
|
||||
case 'compte_inc_tableau_inscriptions_mobile':
|
||||
case 'compte_inc_tableau_inscriptions_gestion':
|
||||
$blnBoutonRetour = false;
|
||||
$footer_script = true;
|
||||
$blnHideCompteTitle = true;
|
||||
fxInscrMobileInitTextes($strLangue);
|
||||
include("inc_tableau_inscriptions_mobile.php");
|
||||
fxInscrGestionInitTextes($strLangue);
|
||||
include("inc_tableau_inscriptions_gestion.php");
|
||||
break;
|
||||
case 'compte_inc_tableau_mail_entraineurs':
|
||||
$blnBoutonRetour = false;
|
||||
|
||||
Reference in New Issue
Block a user