Exporter les données

This commit is contained in:
Yohann 2019-10-21 23:10:50 +02:00
parent 54fc6fd395
commit 7e4a08cf48
1 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ if (isset($_POST["export_team_data"])) {
$file_name = exportTeamData();
header("Content-Type: text/csv");
header("Content-Disposition: inline; filename=\"Données équipes.csv\"");
header("Content-Disposition: attachment; filename=\"Données équipes.csv\"");
header("Content-Length: " . strval(filesize($file_name)));
readfile($file_name);
@ -31,7 +31,7 @@ if (isset($_POST["export_problems_data"])) {
$file_name = exportProblemsData();
header("Content-Type: text/csv");
header("Content-Disposition: inline; filename=\"Données problèmes.csv\"");
header("Content-Disposition: attachment; filename=\"Données problèmes.csv\"");
header("Content-Length: " . strval(filesize($file_name)));
readfile($file_name);