WT1CS1-CHH/Website/download.php

12 lines
284 B
PHP

<?php
if (isset($_GET['angebot_id'])) {
$angebot_id = $_GET['angebot_id'];
} else {
echo "ein problem ist aufgetreten.";
break;
}
header("Content-disposition: attachment; filename=angebot_$angebot_id.xml");
header("Content-type: xml");
readfile("xml/angebot_$angebot_id.xml");
?>