mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Fix de bugs
This commit is contained in:
parent
2533caf1e9
commit
721e1e774a
11 changed files with 23 additions and 22 deletions
|
@ -49,7 +49,7 @@
|
|||
if (!internalTools::verifyCSRF($csrf))
|
||||
{
|
||||
$_SESSION['errormessage'] = 'Jeton CSRF invalide !';
|
||||
header('Location: ' . $this->generateUrl('profile', 'showAll');
|
||||
header('Location: ' . $this->generateUrl('profile', 'showAll'));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -119,13 +119,12 @@
|
|||
if (!internalTools::verifyCSRF($csrf))
|
||||
{
|
||||
$_SESSION['errormessage'] = 'Jeton CSRF invalide !';
|
||||
header('Location: ' . $this->generateUrl('profile', 'showAll');
|
||||
header('Location: ' . $this->generateUrl('profile', 'showAll'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
global $db;
|
||||
|
||||
|
||||
$date = $_POST['date'];
|
||||
$content = $_POST['content'];
|
||||
|
@ -215,7 +214,7 @@
|
|||
if (!$api)
|
||||
{
|
||||
$_SESSION['errormessage'] = 'Le SMS a bien été créé, mais certains numéro ne sont pas valides.';
|
||||
header('Location: ' . $this->generateUrl('scheduleds', 'showAll');
|
||||
header('Location: ' . $this->generateUrl('scheduleds', 'showAll'));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -223,7 +222,7 @@
|
|||
if (!$api)
|
||||
{
|
||||
$_SESSION['successmessage'] = 'Le SMS a bien été créé.';
|
||||
header('Location: ' . $this->generateUrl('scheduleds', 'showAll');
|
||||
header('Location: ' . $this->generateUrl('scheduleds', 'showAll'));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
@ -239,7 +238,7 @@
|
|||
if (!internalTools::verifyCSRF($csrf))
|
||||
{
|
||||
$_SESSION['successmessage'] = 'Jeton CSRF invalide !';
|
||||
header('Location: ' . $this->generateUrl('scheduleds', 'showAll');
|
||||
header('Location: ' . $this->generateUrl('scheduleds', 'showAll'));
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue