Commit 9c17508f authored by Skia's avatar Skia

Fix horodating in e-boutic logs

parent 36036de1
......@@ -35,8 +35,9 @@ require_once ("./include/answer.inc.php");
/* fonction rapide de log des retours */
function log_success ($message)
{
$fp = fopen("/var/www/ae2/e-boutic/.autorep.log", "a+");
fwrite($fp, date() + $message . "\n");
$rep = ($GLOBALS['taiste']) ? "taiste" : "ae2";
$fp = fopen("/var/www/".$rep."/e-boutic/.autorep.log", "a+");
fwrite($fp, date("Y\-m\-d H\:i") . " " . $message . "\n");
fclose($fp);
}
......@@ -51,7 +52,8 @@ if (!isset($_POST['DATA']))
die();
}
log_success("Variable DATA postée.");
log_success("Variable DATA postée: ".$_POST['DATA']);
error_log("DATA: ".$_POST['DATA']);
/* else : les serveurs sogenactif ont bien posté ce
qu'on attendait */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment