do not attempt to write to $GoldbookFile.csv, send info via e-mail instead
All checks were successful
lint / lint (push) Successful in 23s
All checks were successful
lint / lint (push) Successful in 23s
This commit is contained in:
parent
2c7d2e88b4
commit
b12fc8bcbd
1 changed files with 3 additions and 3 deletions
|
@ -48,9 +48,9 @@ if (isset($param) && $param == "postgb") {
|
||||||
$VMessage = str_replace("\n", "<br />", $VMessage);
|
$VMessage = str_replace("\n", "<br />", $VMessage);
|
||||||
$VMessage = str_replace("&", "&", $VMessage);
|
$VMessage = str_replace("&", "&", $VMessage);
|
||||||
$gbline = sprintf("\"".$date."\",\"".$iheure."\",\"".htmlspecialchars($VName)."\",\"".$VEmail."\",\"".$VMessage."\"\n");
|
$gbline = sprintf("\"".$date."\",\"".$iheure."\",\"".htmlspecialchars($VName)."\",\"".$VEmail."\",\"".$VMessage."\"\n");
|
||||||
$goldbook = fopen("modules/goldbook/$GoldbookFile.csv", "a");
|
// $goldbook = fopen("modules/goldbook/$GoldbookFile.csv", "a");
|
||||||
fwrite($goldbook, $gbline);
|
// fwrite($goldbook, $gbline);
|
||||||
fclose($goldbook);
|
// fclose($goldbook);
|
||||||
mail("n@tourmentine.com", "[TMA] post livre d'or ", $VMessage, "From: ".$VName." <".$VEmail.">\r\nX-Mailer: PHP/" . phpversion());
|
mail("n@tourmentine.com", "[TMA] post livre d'or ", $VMessage, "From: ".$VName." <".$VEmail.">\r\nX-Mailer: PHP/" . phpversion());
|
||||||
//unlink("$GoldbookFile.dat");
|
//unlink("$GoldbookFile.dat");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue