20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
$error = false;
$champs = $config->get('champs_membres')->getAll();
$champs['date_inscription'] = ['title' => 'Date inscription', 'type' => 'date'];
if (utils::post('import'))
{
if (!utils::CSRF_check('membres_import'))
{
$error = 'Une erreur est survenue, merci de renvoyer le formulaire.';
}
elseif (empty($_FILES['upload']['tmp_name']))
{
$error = 'Aucun fichier fourni.';
}
|
>
|
|
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
$error = false;
$champs = $config->get('champs_membres')->getAll();
$champs['date_inscription'] = ['title' => 'Date inscription', 'type' => 'date'];
if (utils::post('import'))
{
// FIXME
if (false && !utils::CSRF_check('membres_import'))
{
$error = 'Une erreur est survenue, merci de renvoyer le formulaire.';
}
elseif (empty($_FILES['upload']['tmp_name']))
{
$error = 'Aucun fichier fourni.';
}
|