Files
crm.e5.pl/modules/EcmInvoiceOutOlds/downloadDecree.php

17 lines
493 B
PHP
Raw Normal View History

2024-04-27 09:23:34 +02:00
<?
include_once("modules/EcmInvoiceOutOlds/maksymaXML.php");
$mXML = new maksymaXML($_GET['date']);
$mXML->getInvoices();
$mXML->getCorrectInfoices();
$mXML->getXML();
die();
header('Content-type: application/xml');
header('Content-Disposition: attachment; filename="decree.xml"');
$file="cache/upload/decree".str_replace(" ","_",str_replace(".","_",microtime())).".xml";
fopen($file);
file_put_contents($file,createDecree($exp[0],$exp[1]));
chmod($file,0777);
header("Location: ".$file);
?>