Erreur lors de la duplication.";
}
}
if ($_GET['action'] == 'deletepromoteur') {
fxDeleteEvenementFromPromoteur($_GET['id'], $_GET['promoteur_id']);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id='.$_GET['id']);
exit;
}
if ($_GET['action'] == 'deletepromoteurcompte') {
fxDeleteEvenementFromPromoteur($_GET['eve_id'], $_GET['promoteur_id']);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id='.$_GET['id']);
exit;
}
if ($_GET['action'] == 'addpromoteur') {
fxAddEvenementToPromoteur($_GET['id'], $_GET['promoteur_id']);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id='.$_GET['id']);
exit;
}
if ($_GET['action'] == 'addpromoteurToGroupe') {
fxAddEvenementToGroupe($_GET['id'], $_GET['groupe']);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id='.$_GET['id']);
exit;
}
if ($_GET['action'] == 'addevenement') {
fxAddEvenementToPromoteur($_GET['evenement_id'], $_GET['id']);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id='.$_GET['id']);
exit;
}
if (isset($_GET['action']) && $_GET['action'] == 'addeveacces') {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . '/../php/inc_fx_eve_acces.php');
$intGrantedBy = isset($_SESSION['usa_id']) ? intval($_SESSION['usa_id']) : 0;
$arrResult = fxEveAccesGrant(
intval($_GET['id']),
intval($_GET['evenement_id']),
intval($_GET['role_id']),
intval($_GET['expire_days'] ?? 0),
$intGrantedBy,
'Super admin'
);
$strAnchor = ($arrResult['state'] === 'success') ? '#eve-acces-v2' : '';
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id=' . intval($_GET['id']) . $strAnchor);
exit;
}
if (isset($_GET['action']) && $_GET['action'] == 'revokeveacces') {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . '/../php/inc_fx_eve_acces.php');
$intRevokedBy = isset($_SESSION['usa_id']) ? intval($_SESSION['usa_id']) : 0;
fxEveAccesRevoke(intval($_GET['ea_id']), $intRevokedBy);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id=' . intval($_GET['id']) . '#eve-acces-v2');
exit;
}
if (isset($_GET['action']) && $_GET['action'] == 'addeveaccesextra') {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . '/../php/inc_fx_eve_acces.php');
$intGrantedBy = isset($_SESSION['usa_id']) ? intval($_SESSION['usa_id']) : 0;
fxEveAccesGrantExtra(
intval($_GET['id']),
intval($_GET['evenement_id']),
$_GET['perm_key'] ?? '',
$intGrantedBy,
'Super admin extra'
);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id=' . intval($_GET['id']) . '#eve-acces-v2');
exit;
}
if (isset($_GET['action']) && $_GET['action'] == 'revokeveaccesextra') {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . '/../php/inc_fx_eve_acces.php');
$intRevokedBy = isset($_SESSION['usa_id']) ? intval($_SESSION['usa_id']) : 0;
fxEveAccesRevokeExtra(intval($_GET['ae_id']), $intRevokedBy);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id=' . intval($_GET['id']) . '#eve-acces-v2');
exit;
}
if (isset($_GET['action']) && $_GET['action'] == 'reactivateveacces') {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . '/../php/inc_fx_eve_acces.php');
$intGrantedBy = isset($_SESSION['usa_id']) ? intval($_SESSION['usa_id']) : 0;
fxEveAccesReactivate(intval($_GET['ea_id']), $intGrantedBy);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id=' . intval($_GET['id']) . '#eve-acces-v2');
exit;
}
if (isset($_GET['action']) && $_GET['action'] == 'reactivateveaccesextra') {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . '/../php/inc_fx_eve_acces.php');
$intGrantedBy = isset($_SESSION['usa_id']) ? intval($_SESSION['usa_id']) : 0;
fxEveAccesReactivateExtra(intval($_GET['ae_id']), $intGrantedBy);
header('Location: index.php?t=' . urlencode($_GET['t']) . '&a=mod&id=' . intval($_GET['id']) . '#eve-acces-v2');
exit;
}
if (isset($_GET['action']) && $_GET['action'] == 'migrateveacceslegacyall') {
if (session_status() === PHP_SESSION_NONE) {
session_start();
}
require_once(dirname(__FILE__) . '/../php/inc_fx_eve_acces.php');
$intGrantedBy = isset($_SESSION['usa_id']) ? intval($_SESSION['usa_id']) : 0;
$intTotalGranted = 0;
$intTotalSkipped = 0;
$intComptes = 0;
$intErrors = 0;
$arrAll = fxEveAccesMigrationListAllLegacyComptes();
foreach ($arrAll as $arrRow) {
$arrResult = fxEveAccesMigrateCompteFromLegacy(intval($arrRow['com_id']), $intGrantedBy);
$intTotalGranted += intval($arrResult['granted'] ?? 0);
$intTotalSkipped += intval($arrResult['skipped'] ?? 0);
$intComptes++;
if (!empty($arrResult['errors'])) {
$intErrors += count($arrResult['errors']);
}
}
$strMsg = $intTotalGranted . ' acces cree(s) sur ' . count($arrAll) . ' compte(s) promoteur legacy';
if ($intTotalSkipped > 0) {
$strMsg .= ', ' . $intTotalSkipped . ' deja migre(s)';
}
if ($intErrors > 0) {
$strMsg .= ', ' . $intErrors . ' erreur(s) — verifier les comptes restants';
header('Location: eve_acces.php?p=migrate&err=' . urlencode($strMsg));
} else {
header('Location: eve_acces.php?p=migrate&ok=' . urlencode($strMsg));
}
exit;
}
require_once('php/inc_start_time.php');
if ($strAction != 'report') {
fxSuperadmRedirectToLoginIfNeeded(false);
$blnLogged = true;
} else {
fxSuperadmRedirectToLoginIfNeeded(true);
$intMenu2 = base64_decode(urldecode($intMenu));
$blnLogged = fxSuperadmReportMenuAllowed(intval($intMenu2));
}
if($strAction=='importquestiongo'){
// print_r($_POST['choix_produits'] ); echo('
');
foreach ( $_POST['choix'] as $intValue) {
// echo($intValue);echo('
');
if (in_array($intValue, $_POST['choix_produits'])) {
// copier les produits
$sqlQuestion = "SELECT que_choix_produit FROM inscriptions_questions WHERE que_id = " . $intValue;
$choix_produit = $objDatabase->fxGetVar($sqlQuestion );
// echo($choix_produit.'
');
$tableau = explode(",", $choix_produit);
$new='';
foreach ($tableau as $valeur) {
$mempro_id=$valeur;
if ($valeur!=0){
// echo "Valeur : $valeur
";
$updates2 = [
'eve_id' => $_POST['hidden_pec_id'],
'prod_update_qui' => '',
'prod_update_date' => '',
];
$mempro_id=fxDuplicateRow('inscriptions_produits_new', $valeur, 'pro_id',$updates2 );
}
$new=$new.$mempro_id.",";
}
$new = rtrim($new, ',');
// echo( $new.'
');
$updates = [
'eve_id' => $_POST['hidden_pec_id'],
'que_banque_actif' => 0,
'que_banque_label' => '',
'prod_update_qui' => '',
'prod_update_date' => '',
'que_choix_produit' => $new,
'que_epreuves_incluses' => ''
];
} else {
$updates = [
'eve_id' => $_POST['hidden_pec_id'],
'que_banque_actif' => 0,
'que_banque_label' => '',
'prod_update_qui' => '',
'prod_update_date' => '',
'que_epreuves_incluses' => ''
];
}
fxDuplicateRow('inscriptions_questions', $intValue, 'que_id',$updates ) ;
}
$strLink = '/superadm/index.php?t=' . urlencode(base64_encode(fxUnescape(4))) . '&a=mod&id=' . $_POST['hidden_pec_id'];
header("Location: ". $strLink );
exit;
}
require_once('php/inc_fx_messages.php');
require_once('php/inc_fx_excell.php');
if (isset($_POST['avant_com_preprod'])){
// ajouster com_preprod en prod
if($_POST['avant_com_preprod']!=$_POST['com_preprod']){
$sqlInsert = "update inscriptions_comptes SET com_preprod = " . $_POST['com_preprod'] . " WHERE com_courriel = '" . $_POST['com_courriel'] . "'";
// $qryInsert = $GLOBALS['db']->fxQuery($sqlInsert);
$qryInsert = $objDatabasePreProd->fxQuery($sqlInsert);
}
}
if (isset($_POST['btn_copie_compte'])){
fxcopiecompte($_POST['com_courriel']);
}
if (isset($_POST['btn_syncro_compte'])){
// fxcopiecompte($_POST['com_courriel']);
}
// si on clique le bouton ajouter
if (isset($_POST['form_action'])){
fxSetForm($_POST['form_action'], $intMenu, $_POST, $_FILES);
}
// si on clique excel
if (isset($_POST['download']) && $_POST['download'] == 'excel') {
if (isset($_POST['strwhere']))
$strwhere = $_POST['strwhere'];
else
$strorder = "";
if (isset($_POST['strorder']))
$strorder = $_POST['strorder'];
else
$strorder = "";
$_GET["t"] = "";
fxrapportexcell($intMenu, $strLangue, $strorder, $strwhere);
}
// si on clique le bouton supprimer
foreach (array_keys($_POST) as $strValue) {
if (strstr($strValue, 'btn_delete_file_')) {
fxDeleteFile($intMenu, $_POST, substr($strValue, strrpos($strValue, '_') + 1));
} elseif (strstr($strValue, 'btn_delete_')) {
if ($strAction == 'list') {
fxSetForm('del', $intMenu, $_POST, '');
} else {
$tabSubtablesDel = fxGetMenussuperadm('', base64_decode(urldecode($intMenu)));
for ($intCtr = 1; $intCtr <= count($tabSubtablesDel); $intCtr++) {
if (isset($_POST['chk_' . $tabSubtablesDel[$intCtr]['men_id']]))
fxSetForm('del', urlencode(base64_encode(fxUnescape($tabSubtablesDel[$intCtr]['men_id']))), $_POST, '');
}
}
} elseif (strstr($strValue, 'btn_duplicate_')) {
fxSetForm('copy', $intMenu, $_POST, '');
}
}
require_once('inc_header.php');
?>
col-12col-md-9 col-lg-10 order-first order-md-last py-3">
= '" . $_GET[fxUnescape($tabFields[$intCtr]['name']) . '_from'] . "' AND " . fxUnescape($tabFields[$intCtr]['name']) . " <= '" . $_GET[fxUnescape($tabFields[$intCtr]['name']) . '_to'] . "')";
$tabGroup[] = $tabFields[$intCtr]['name'];
} else {
if (isset($_GET[$tabFields[$intCtr]['name']]) && trim($_GET[$tabFields[$intCtr]['name']]) != '')
$tabWhere[] = fxUnescape($tabFields[$intCtr]['alias']).fxUnescape($tabFields[$intCtr]['name']) . " LIKE '%" . $objDatabase->fxEscape(trim($_GET[$tabFields[$intCtr]['name']])) . "%'";
}
}
// pousser le WHERE dans une variable
if (count($tabWhere) > 0)
$strWhere = implode(',', $tabWhere);
if (count($tabGroup) > 0)
$strGroup = implode(',', $tabGroup);
}
// vérifier la clause ORDER BY
if (isset($_GET['o'])) {
$strOrder = $objDatabase->fxEscape(trim($_GET['o']));
$tabFields = fxGetFormFields2('sort', $intMenu, $strOrder);
$strOrder = $tabFields[1]['alias'] . $tabFields[1]['name'];
}
$tabResults = fxGetListData($intMenu, $strOrder, $strWhere, $strGroup, $intPage, $strLangue);
fxShowList($tabResults, $intMenu, $strOrder, $strWhere, $strGroup, $intPage, $strLangue);
break;
default:
?>
le
Bonjour !
Outils
Archives PDF
Rapports archives
Boutons Mise en PROD
Événements
- Épreuves *
- Prix des épreuves *
- Infos participants *
- Produits *
- Questions *
- Questions pour les logs *
- Rabais *
- Événements
- CSS
- PDF
- Taxes *
- Frais *
- Inscriptions confirmées
- Rapports
* EXCLUT: paiements
Épreuves
- Épreuves *
- Prix des épreuves *
Type de taxes
- Type de taxes *
- Liste des taux *
* Peut être mis en PROD séparément
NOTE: Pour un élément déjà en PROD qui doit être modifié, il doit être modifié en DEV et en PROD (ex. changer le texte d'une question), ne pas réutiliser "mettre en PROD"
Accès refusé!
Access denied!