fxGetRow($sqlCourriel); $_SESSION['com_id'] = $infoCompte['com_id']; $_SESSION['com_prenom'] = $infoCompte['com_prenom']; $_SESSION['vadmin_texte'] = false; $_SESSION['com_info'] = $infoCompte; // liste des compte affilie $infoAffilie=fxGetInfosAffilies($_SESSION['com_id']); $_SESSION['com_affilie']=$infoAffilie; // metre dans l'info compte la liste des evenement prive $_SESSION['com_info']['eve_prive']=explode(',',$infoCompte['com_eve_prive']); header('Location: ' . $vDomaine . '/' . $strPage); exit; } $vtexte_page = obtenirTextepage($vPage, $strLangue, 2); $strLienFr = "/compte/" . str_replace('compte_', '', $strCode); $strLienEn = "/account/" . str_replace('compte_', '', $strCode); if (isset($_GET['valider'])) fxValiderCompte($strLangue); if (!empty($_POST['form_action'])) { $strAction = base64_decode(urldecode($_POST['form_action'])); switch ($strAction) { case 'login': fxLoginCompte($_POST, $strLangue); break; case 'password': fxCourrielPerduCompte($strLangue); break; case 'add-compte': case 'checkout-compte': if ($_POST['com_password_a'] == $_POST['com_password_b']) $_POST['com_password'] = $_POST['com_password_a']; $_POST['com_login'] = $_POST['com_courriel']; fxSetCompte('add', '', $_POST, $strLangue); break; case 'addaffilie-compte': fxSetCompte('addaffilie', '', $_POST, $strLangue); exit; break; case 'mod-compte': $_POST['com_login'] = $_POST['com_courriel']; if (trim($_POST['com_courriel']) == '') { unset($_POST['com_courriel']); unset($_POST['com_login']); } if ($_POST['com_password_a'] == $_POST['com_password_b']) $_POST['com_password'] = $_POST['com_password_a']; if (trim($_POST['com_password']) == '') unset($_POST['com_password']); fxSetCompte('mod', '', $_POST, $strLangue); break; case 'reset': fxResetPassword($_POST, $strLangue); break; } } // récupérer les détails de la page $recPage = fxGetPage($strCode); if (count($recPage) < 1) { header('Location: index.php'); exit; } $strSousTitre = ''; if ($strCode == 'compte_inc_tableau_promoteur') { if (isset($_GET['promoteur_eve_id'])) { $intEveId = base64_decode(urldecode($_GET['promoteur_eve_id'])); $arrEvenement = fxGetEvenementsId($intEveId); //5$tabEvenement['general'] = $arrEvenement; $strSousTitre = '
' . fxUnescape($arrEvenement['eve_nom_' . $strLangue]) . ''; } } if ($strCode == 'compte_affichecarte') { $mem_sl_id = (isset($_GET['mem_id'])) ? $_GET['mem_id'] : 0; $mem_sl_pec_id = (isset($_GET['mem_pec_id'])) ? $_GET['mem_pec_id'] : 0; fxCarteAbonnements($mem_sl_id, $strLangue, $mem_sl_pec_id); exit; } $strMetaTitle = fxRemoveHtml(fxUnescape($recPage['pag_titre_' . $strLangue])); $strMetaDescription = fxRemoveHtml(fxUnescape($recPage['pag_description_' . $strLangue])); $strMetaKeywords = fxRemoveHtml(fxUnescape($recPage['pag_keywords_' . $strLangue])); $blnBoutonRetour = true; require_once("inc_header.php"); ?>

' . fxUnescape($recPage['pag_texte_' . $strLangue]) . '
'; } if (isset($_SESSION['msg'])) { echo fxMessage($_SESSION['msg'], '', $strLangue); } else { ?>
fxGetRow($sqlCompte); // préparer les champs spéciaux $infoCompte['txt_password_a'] = $infoCompte['com_password']; $infoCompte['txt_password_b'] = $infoCompte['com_password']; //$infoCompte['txt_login'] = $infoCompte['com_login']; $infoCompte['com_courriel_confirm'] = ''; $infoCompte['txt_courriel'] = $infoCompte['com_courriel']; fxShowFormCompte($infoCompte, "mod", $strLangue); break; case 'compte_modifieraffilie': // lire les données du compte $mem_aff=$_SESSION['com_affilie']; $mem_pk_aff=$mem_aff[$_GET['aff']]['com_id']; $sqlCompte = "SELECT * FROM inscriptions_comptes WHERE com_id = " . $mem_pk_aff; $infoCompte = $objDatabase->fxGetRow($sqlCompte); // préparer les champs spéciaux $infoCompte['txt_password_a'] = $infoCompte['com_password']; $infoCompte['txt_password_b'] = $infoCompte['com_password']; //$infoCompte['txt_login'] = $infoCompte['com_login']; $infoCompte['com_courriel_confirm'] = ''; $infoCompte['txt_courriel'] = $infoCompte['com_courriel']; fxShowFormCompte($infoCompte, "mod", $strLangue); break; case 'compte_gestionaffilie': $strRetour = ' '; echo $strRetour; break; case 'compte_reset': $blnBoutonRetour = false; fxShowFormReset($_GET, $strLangue); break; case 'compte_annuler_inscription': include_once('annuler_inscription.php'); break; case 'compte_accueil': // lire les données du compte /* $sqlCompte = "SELECT * FROM inscriptions_comptes WHERE com_id = " . $_SESSION['com_id']; $infoCompte = $objDatabase->fxGetRow($sqlCompte); if (isset($infoCompte['com_eve_prive']) && $infoCompte['com_eve_prive'] != '') { $sqlEvenementsPrives = "SELECT t.te_icone, e.te_id, e.eve_actif, e.eve_id, e.eve_date_debut, e.eve_date_fin, e.eve_label_url, e.eve_nom_" . $strLangue . ", e.eve_photo_" . $strLangue . " FROM inscriptions_types_evenements t, inscriptions_evenements e WHERE t.te_id = e.te_id AND e.eve_id IN(" . $infoCompte['com_eve_prive'] . ") AND e.eve_prive = 1 AND e.eve_actif = 1"; $tabEvenementsPrives = $objDatabase->fxGetResults($sqlEvenementsPrives); if ($tabEvenementsPrives != null) { ?>

">




fxGetResults($sql); */ //echo '

NOUVEAU CODE

'; $blnBoutonRetour = false; echo fxShowMenuCompte($_SESSION['com_info'], $strLangue); //echo '

ANCIEN CODE

'; //include_once('inc_modifierinscriptions.php'); break; case 'compte_info_promoteur': echo fxShowInfoPromoteur($_SESSION['com_info'], $strLangue); break; case 'compte_mes_defis': $arrFormsLogSettings = $arrFormsAddLogs = array(); $arrCommandes = fxGetCommandes($_SESSION['com_info'], 3, $strLangue); echo fxShowCommandes($arrCommandes['actives'], $_SESSION['com_info'], 3, $strLangue); ?> ' . afficheTexte('comte_courses-terminées', 0) . ' (' . count($arrCommandes['terminées']) . ')

'; echo $strCoursesTerminees; */ break; case 'compte_mon_benevolat': $arrCommandes = fxGetCommandes($_SESSION['com_info'], 2, $strLangue); echo fxShowCommandes($arrCommandes['actives'], $_SESSION['com_info'], 2, $strLangue); ?> ' . afficheTexte('comte_courses-terminées', 0) . ' (' . count($arrCommandes['terminées']) . ')

'; echo $strCoursesTerminees; */ break; case 'compte_mes_levees_fonds': $arrFormsObjectifsDons = array(); $arrCommandes = fxGetCommandes($_SESSION['com_info'], 0, $strLangue); echo fxShowLeveesFonds($arrCommandes['actives'], $strLangue); ?> ' . afficheTexte('comte_courses-terminées', 0) . ' (' . count($arrCommandes['terminées']) . ')

'; echo $strCoursesTerminees; */ break; case 'compte_mes_adhesions': if (!empty($_GET['no'])) { $arrCalMembership = $arrFormsMembership = $arrTelMembership = array(); $strValidationMembership = ''; echo $strHTML = fxShowQuestionsAdhesion(trim($_GET['no']), $strLangue); } else { $arrAbonnements = fxGetAbonnements($_SESSION['com_id'], 1, $strLangue); echo fxShowAbonnements($arrAbonnements, $_SESSION['com_info'], 1, $strLangue,'compte'); $arrAbonnements = fxGetAbonnementsaffilie($_SESSION['com_id'], 1, $strLangue); echo('

'.afficheTexte('compte_associe',0).'

'); echo fxShowAbonnements($arrAbonnements, $_SESSION['com_info'], 1, $strLangue,'affilie'); } break; case 'compte_mes_commandes': $arrFormsTransfert = $arrFormsObjectifsDons = array(); $arrCommandes = fxGetCommandes($_SESSION['com_info'], 1, $strLangue); echo fxShowCommandes($arrCommandes['actives'], $_SESSION['com_info'], 1, $strLangue); ?> ' . afficheTexte('comte_courses-terminées', 0) . ' (' . count($arrCommandes['terminées']) . ')

'; echo $strCoursesTerminees; */ break; case 'compte_motdepasse': $blnBoutonRetour = false; fxShowFormPassword($strLangue); break; case 'compte_nouveau': $blnBoutonRetour = false; // replacer $_GET['p'] par $_SESSION['no_panier'] if (!empty($_SESSION['no_panier'])) { // récupérer les info de panier acheteur $sqlAheteur = "SELECT ipa.com_prenom, ipa.com_nom, ipa.com_adresse, ipa.com_ville, ipa.pro_id, ipa.pay_id, ipa.com_codepostal, ipa.com_telephone1, ipa.com_telephone2, ipa.com_courriel as com_courriel, '' as txt_courriel, '' as com_courriel_confirm, '' as com_login, ipa.com_courriel as txt_login, '' as com_tshirt, ipa.ach_lang AS com_langue, ipp.par_sexe AS com_sexe, '" . $_SESSION['no_panier'] . "' AS no_panier, par_naissance AS com_naissance FROM inscriptions_panier_acheteurs ipa INNER JOIN inscriptions_panier_participants ipp on ipp.par_id=ipa.par_id WHERE ipa.no_panier = '" . $objDatabase->fxEscape($_SESSION['no_panier']) . "'"; $tabAcheteur = $objDatabase->fxGetRow($sqlAheteur); fxShowFormCompte($tabAcheteur, "checkout", $strLangue); } else { fxShowFormCompte(2, "add", $strLangue); } break; case 'compte_nouveauaffilie': $blnBoutonRetour = false; // replacer $_GET['p'] par $_SESSION['no_panier'] fxShowFormCompte(2, "addaffilie", $strLangue); break; case 'compte_inc_tableau_promoteur': $blnBoutonRetour = false; include("inc_tableau_promoteur.php"); break; case 'compte_bib_assignment': $blnBoutonRetour = false; include("bib_assignment.php"); break; default: case 'compte_login': $blnBoutonRetour = false; $_SESSION['affiche_pas_connexion'] = "true"; ?>