From b12fc8bcbd0ecd53cfd201766f6008ebcf58c02e Mon Sep 17 00:00:00 2001 From: n Date: Sun, 3 Nov 2024 22:10:58 +0100 Subject: [PATCH] do not attempt to write to $GoldbookFile.csv, send info via e-mail instead --- modules/goldbook.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/goldbook.php b/modules/goldbook.php index 956e8fc..02e196d 100644 --- a/modules/goldbook.php +++ b/modules/goldbook.php @@ -48,9 +48,9 @@ if (isset($param) && $param == "postgb") { $VMessage = str_replace("\n", "
", $VMessage); $VMessage = str_replace("&", "&", $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"); }