Enregistrement dans fichier

This commit is contained in:
Adrien Bourmault 2022-05-05 16:34:26 +02:00
parent 60f6cb354d
commit ab028c2253
No known key found for this signature in database
GPG Key ID: 6EB408FE0ACEC664
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
<?php <?php
$filepath = "/srv/validation_pre_adhesion.d"; $filepath = "/srv/validation_pre_adhesion.d/";
function data_uri($contents, $mime) function data_uri($contents, $mime)
{ {
@ -80,7 +80,7 @@
str_replace(';', ' ', $_POST['cotisation']) . str_replace(';', ' ', $_POST['cotisation']) .
str_replace(';', ' ', $_POST['mode']); str_replace(';', ' ', $_POST['mode']);
file_put_contents($filepath . "preadhesion" . date("Y-m-d") . rand(111111, 999999), strtoupper($content)); file_put_contents($filepath . "pre_adhesion" . date("Y-m-d") . rand(111111, 999999), strtoupper($content));
} else { } else {