do not attempt to write to $GoldbookFile.csv, send info via e-mail instead
All checks were successful
lint / lint (push) Successful in 23s

This commit is contained in:
n 2024-11-03 22:10:58 +01:00
parent 2c7d2e88b4
commit b12fc8bcbd
Signed by: n
GPG key ID: 510227DD6C502CE3

View file

@ -48,9 +48,9 @@ if (isset($param) && $param == "postgb") {
$VMessage = str_replace("\n", "<br />", $VMessage);
$VMessage = str_replace("&", "&amp;", $VMessage);
$gbline = sprintf("\"".$date."\",\"".$iheure."\",\"".htmlspecialchars($VName)."\",\"".$VEmail."\",\"".$VMessage."\"\n");
$goldbook = fopen("modules/goldbook/$GoldbookFile.csv", "a");
fwrite($goldbook, $gbline);
fclose($goldbook);
// $goldbook = fopen("modules/goldbook/$GoldbookFile.csv", "a");
// fwrite($goldbook, $gbline);
// fclose($goldbook);
mail("n@tourmentine.com", "[TMA] post livre d'or ", $VMessage, "From: ".$VName." <".$VEmail.">\r\nX-Mailer: PHP/" . phpversion());
//unlink("$GoldbookFile.dat");
}