12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$exercice = $e->get((int)utils::get('id'));
if (!$exercice)
{
throw new UserException('Exercice inconnu.');
}
$error = false;
if (!empty($_POST['edit']))
{
if (!utils::CSRF_check('compta_modif_exercice_'.$exercice['id']))
{
|
>
>
>
>
>
|
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
$exercice = $e->get((int)utils::get('id'));
if (!$exercice)
{
throw new UserException('Exercice inconnu.');
}
if ($exercice['cloture'])
{
throw new UserException('Impossible de modifier un exercice clôturé.');
}
$error = false;
if (!empty($_POST['edit']))
{
if (!utils::CSRF_check('compta_modif_exercice_'.$exercice['id']))
{
|