mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
Ajout du système de discussion et fixe des quelques bugs
This commit is contained in:
parent
8b73010cab
commit
4f9bb3e256
12 changed files with 699 additions and 6 deletions
|
@ -134,7 +134,10 @@
|
|||
$now = new DateTime();
|
||||
$now = $now->format('Y-m-d H:i:s');
|
||||
//On peut maintenant ajouter le SMS
|
||||
$db->insertIntoTable('sendeds', ['at' => $now, 'number' => $number, 'content' => $scheduled['content']]);
|
||||
if (!$db->insertIntoTable('sendeds', ['at' => $now, 'target' => $number, 'content' => $scheduled['content']]))
|
||||
{
|
||||
echo 'Impossible d\'inserer le sms pour le numero ' . $number . "\n";
|
||||
}
|
||||
$id_sended = $db->lastId();
|
||||
|
||||
//Commande qui envoie le SMS
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue