diff --git a/maarch_entreprise/trunk/export.php b/maarch_entreprise/trunk/export.php index 6e5ff7a279f41944567869a57e7944131f2882cb..ca0ce72242c1acf57271aedceedcd0fa99a8bf47 100755 --- a/maarch_entreprise/trunk/export.php +++ b/maarch_entreprise/trunk/export.php @@ -19,7 +19,7 @@ if (!empty($_SESSION['error'])) { header('Content-Type: application/vnd.ms-excel'); header('Content-Disposition: inline; filename=export_maarch.csv;'); //header('Content-Transfer-Encoding: binary'); - readfile($_SESSION['config']['businessappurl'] . 'tmp/' . $_SESSION['export']['filename']); + readfile($_SESSION['config']['tmppath'] . $_SESSION['export']['filename']); unlink($_SESSION['config']['tmppath'] . $_SESSION['export']['filename']); exit; } diff --git a/maarch_entreprise/trunk/print.php b/maarch_entreprise/trunk/print.php index da361ae6ecd16030861032717b263457f8cc52f8..322deb9ec8cd83f1cb4e2bfda8a2f289c5482b82 100644 --- a/maarch_entreprise/trunk/print.php +++ b/maarch_entreprise/trunk/print.php @@ -30,7 +30,7 @@ if (!empty($_SESSION['error'])) { header('Content-Type: application/pdf'); header('Content-Disposition: inline; filename=print_maarch.pdf;'); //header('Content-Transfer-Encoding: binary'); - readfile($_SESSION['config']['businessappurl'] . 'tmp/' . $_SESSION['print']['filename']); + readfile($_SESSION['config']['tmppath'] . $_SESSION['print']['filename']); unlink($_SESSION['config']['tmppath'] . $_SESSION['print']['filename']); } else { echo _NO_DOC_OR_NO_RIGHTS;