1
0

- added mail return address to expeditor of ap\n- debug of error on peripetie datetime

This commit is contained in:
Daniel Tartavel
2022-02-10 19:57:35 +01:00
parent ecf570ee87
commit 4dd37cda7b
3 changed files with 72 additions and 54 deletions

View File

@@ -7,7 +7,6 @@ if (!isset($site)) {
require_once "config.inc.php";
require_once "log.php";
require_once "fonctions.inc.php";
require_once "envoi_courriel.inc.php";
$table_prefix = "";
class db
@@ -197,10 +196,17 @@ class db
function savePeripetie()
{
$query = "INSERT INTO avionPeripetie VALUES ('0','";
$query .= $this->protect($this->uid) . "','";
$query .= $this->protect($this->idPeripetie) . "', ";
$query .= "FROM_UNIXTIME(" . $this->protect($this->datePeripetie) . "), '0')";
$query = "INSERT INTO avionPeripetie ('expeMail', 'idAvion', 'idPeripetie', 'date'), VALUES (";
if ($this->expeKnown)
{
$query .= "'" . $this->protect($this->expeMail) . "',";
}else
{
$query .= "'contact@avion-poe.me',";
}
$query .= "'" . $this->protect($this->uid) . "',";
$query .= "'" . $this->protect($this->idPeripetie) . "', ";
$query .= "FROM_UNIXTIME(" . $this->protect($this->datePeripetie) . "))";
log_write("savePeripetie " . $query);
//$query .= $this->protect($this->effetPeripetie) . "', '";
//$query .= $this->protect($this->expeMail) . "', '";