37 lines
825 B
PHP
37 lines
825 B
PHP
<?php
|
|
session_start();
|
|
|
|
require_once "php/inc_fonctions.php";
|
|
require_once "php/inc_fx_messages.php";
|
|
|
|
$vPage = 'index.php';
|
|
$tabRetour = array();
|
|
|
|
|
|
if (isset($_REQUEST['a'])) {
|
|
$strAction = base64_decode(urldecode($_REQUEST['a']));
|
|
} else {
|
|
$strAction = '';
|
|
}
|
|
|
|
if (isset($_REQUEST['lang'])) {
|
|
$strLangue = $_REQUEST['lang'];
|
|
} else {
|
|
$strLangue = 'fr';
|
|
}
|
|
//$strAction="contact";
|
|
//$strLangue="fr";
|
|
//$_REQUEST['id']="1043";
|
|
$vtexte_page = obtenirTextepage($vPage, $strLangue, 2);
|
|
|
|
switch ($strAction) {
|
|
case 'contact':
|
|
$intEvenement = $_REQUEST['id'];
|
|
|
|
$strCode = fxGetEvenementsUrl($intEvenement);
|
|
$arrEvenement = fxGetEvenements($strCode, $strLangue);
|
|
$tabRetour = fxShowDetailsEvenementContact($arrEvenement, $strLangue);
|
|
break;
|
|
}
|
|
|
|
echo json_encode($tabRetour); |