X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fprn_redirect.php;h=ce525ea1ff788253acabaf994fdb5f8a644013f1;hb=20c9b5846824f0489c6791d74a6c78e2bfb0b2fc;hp=3e362a23b3a027961dfcc1df7f6bd1247daef042;hpb=1c67490b878ae789ad0f27d8777e520a3d914c89;p=fa-stable.git diff --git a/reporting/prn_redirect.php b/reporting/prn_redirect.php index 3e362a23..ce525ea1 100644 --- a/reporting/prn_redirect.php +++ b/reporting/prn_redirect.php @@ -21,7 +21,7 @@ if (isset($_GET['xls'])) { $filename = $_GET['filename']; $unique_name = $_GET['unique']; - $path = $comp_path.'/'.user_company(). '/pdf_files/'; + $path = company_path(). '/pdf_files/'; header("Content-type: application/vnd.ms-excel"); header("Content-Disposition: attachment; filename=$filename" ); header("Expires: 0"); @@ -34,7 +34,7 @@ elseif (isset($_GET['xml'])) { $filename = $_GET['filename']; $unique_name = $_GET['unique']; - $path = $comp_path.'/'.user_company(). '/pdf_files/'; + $path = company_path(). '/pdf_files/'; header("content-type: text/xml"); header("Content-Disposition: attachment; filename=$filename"); header("Expires: 0"); @@ -57,9 +57,9 @@ $rep = $_POST['REP_ID']; $rep_file = find_custom_file("/reporting/rep$rep.php"); -if ($rep_file) +if ($rep_file) { require($rep_file); -else +} else display_error("Cannot find report file '$rep'"); exit();