예제 #1
0
     //***********************//
     //***AlineaSol Premium***//
     //***********************//
     $extraParams = array('fileName' => $fileName);
     $downloadedWebServiceReport = asol_ReportsUtils::managePremiumFeature("webServiceReport", "reportFunctions.php", "downloadWebServiceReport", $extraParams);
     $exportedReportData = $downloadedWebServiceReport !== false ? $downloadedWebServiceReport : null;
     $unserializedReport = $exportedReportData['unserializedReport'];
     $reportDate = $exportedReportData['reportDate'];
     $userTZ = $exportedReportData['userTZ'];
     $downloadedFile = asol_ReportsGenerationFunctions::processDownloadRequest($unserializedReport, $userTZ, $reportDate, $fileType, $pngs, $legends);
     //***********************//
     //***AlineaSol Premium***//
     //***********************//
 } else {
     require_once "modules/asol_Reports/include_basic/generateReportsFunctions.php";
     $exportedReportData = asol_ReportsGenerationFunctions::getExportedSerializedReportFileContent($fileName);
     $unserializedReport = $exportedReportData['unserializedReport'];
     $reportDate = $exportedReportData['reportDate'];
     $userTZ = $exportedReportData['userTZ'];
     $downloadedFile = asol_ReportsGenerationFunctions::processDownloadRequest($unserializedReport, $userTZ, $reportDate, $fileType, $pngs, $legends);
 }
 $returnedHtml = $downloadedFile['fileContent'];
 header("Content-Type: " . $mimeType);
 header("Content-Disposition: attachment; filename=\"" . $downloadedFile['fileName'] . "\"");
 header("Content-Description: File Transfer");
 header("Content-Transfer-Encoding: binary");
 header("Content-Length: " . mb_strlen($returnedHtml, "8bit") . "\"");
 header("Expires: 0");
 header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
 header("Pragma: public");
 ob_clean();