From 6e6624033d50ab821261cc9c25f49d3e43eeebec Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Mon, 13 Jul 2009 15:40:55 +0000 Subject: [PATCH] Rerun --- CHANGELOG.txt | 2 +- reporting/includes/excel_report.inc | 3 +-- reporting/includes/pdf_report.inc | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c01f6d5b..b6df9162 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -21,7 +21,7 @@ $ -> Affected files 13-Jul-2009 Joe Hunt + Added Audit Trail Report -$ /reporting/rep710.php +$ /reporting/rep710.php (new file) $ /reporting/reports_main.php ! Changed so $page_security works with reports (displays an error message on top) $ /reporting/includes/pdf_report.inc diff --git a/reporting/includes/excel_report.inc b/reporting/includes/excel_report.inc index 0cbf7c38..fb7ed1be 100644 --- a/reporting/includes/excel_report.inc +++ b/reporting/includes/excel_report.inc @@ -9,7 +9,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 8; include_once($path_to_root . "/reporting/includes/Workbook.php"); include_once($path_to_root . "/admin/db/company_db.inc"); include_once($path_to_root . "/config.php"); @@ -59,7 +58,7 @@ class FrontReport extends Spreadsheet_Excel_Writer_Workbook global $comp_path, $dateseps, $page_security; if (!$_SESSION["wa_current_user"]->can_access_page($page_security)) { - display_error(_("The security settings on your account do not permit you to access this function")); + display_error(_("The security settings on your account do not permit you to print this report")); end_page(); exit; } diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 10348cfe..b0277f1e 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -9,7 +9,6 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 8; //include_once($path_to_root . "reporting/includes/class.pdf.inc"); include_once(dirname(__FILE__)."/class.pdf.inc"); include_once(dirname(__FILE__)."/printer_class.inc"); @@ -54,7 +53,7 @@ class FrontReport extends Cpdf global $page_security; if (!$_SESSION["wa_current_user"]->can_access_page($page_security)) { - display_error(_("The security settings on your account do not permit you to access this function")); + display_error(_("The security settings on your account do not permit you to print this report")); end_page(); exit; } -- 2.30.2