58 lines
1.3 KiB
PHP
58 lines
1.3 KiB
PHP
<?php
|
|
session_start();
|
|
//51
|
|
require_once "php/inc_fonctions.php";
|
|
require_once "php/inc_logs_course.php";
|
|
require_once "php/inc_fx_messages.php";
|
|
|
|
global $vDomaine;
|
|
|
|
if (isset($_REQUEST['a'])) {
|
|
$strAction = base64_decode(urldecode($_REQUEST['a']));
|
|
} else {
|
|
$strAction = '';
|
|
}
|
|
|
|
if (isset($_REQUEST['lang'])) {
|
|
$strLangue = $_REQUEST['lang'];
|
|
} else {
|
|
$strLangue = 'fr';
|
|
}
|
|
|
|
$vPage = 'compte.php';
|
|
$vtexte_page = obtenirTextepage($vPage, $strLangue, 2);
|
|
|
|
$tabData = $_REQUEST;
|
|
unset($tabData['lang']);
|
|
unset($tabData['a']);
|
|
unset($tabData['ajax']);
|
|
|
|
// former la valeur Durée, si nécessaire
|
|
if (isset($tabData['rlq_temps-h'])) {
|
|
$tabData['rlq_temps'] = $tabData['rlq_temps-h'] . ':' . $tabData['rlq_temps-m'] . ':' . $tabData['rlq_temps-s'];
|
|
unset($tabData['rlq_temps-h']);
|
|
unset($tabData['rlq_temps-m']);
|
|
unset($tabData['rlq_temps-s']);
|
|
}
|
|
|
|
$tabRetour = array();
|
|
|
|
if ($strAction == 'settings') {
|
|
$tabRetour = fxSetFormLogSettings($tabData, $strLangue);
|
|
} else {
|
|
$tabRetour = fxSetLogsCourse($strAction, $tabData, $strLangue);
|
|
}
|
|
|
|
if (isset($_REQUEST['ajax'])) {
|
|
unset($_SESSION['msg']);
|
|
echo json_encode($tabRetour);
|
|
} else {
|
|
if ($strLangue == 'fr') {
|
|
$strPage = 'compte';
|
|
} else {
|
|
$strPage = 'account';
|
|
}
|
|
|
|
header('Location: ' . $vDomaine . '/' . $strPage);
|
|
exit;
|
|
} |