From f71a00d188fb6d711a0d53c9ca34fabfd80c6b2a Mon Sep 17 00:00:00 2001 From: Brady Miller Date: Sun, 15 Oct 2017 01:01:25 -0700 Subject: [PATCH] security stuff --- interface/reports/unique_seen_patients_report.php | 99 ++++++++++------------- 1 file changed, 43 insertions(+), 56 deletions(-) diff --git a/interface/reports/unique_seen_patients_report.php b/interface/reports/unique_seen_patients_report.php index 8bca036e8..d771e1371 100644 --- a/interface/reports/unique_seen_patients_report.php +++ b/interface/reports/unique_seen_patients_report.php @@ -3,24 +3,13 @@ * This report lists patients that were seen within a given date * range. * - * Copyright (C) 2006-2015 Rod Roark - * Copyright (C) 2017 Brady Miller - * - * LICENSE: This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * You should have received a copy of the GNU General Public License - * along with this program. If not, see ;. - * - * @package OpenEMR - * @author Rod Roark - * @author Brady Miller - * @link http://www.open-emr.org + * @package OpenEMR + * @link http://www.open-emr.org + * @author Rod Roark + * @author Brady Miller + * @copyright Copyright (c) 2006-2015 Rod Roark + * @copyright Copyright (c) 2017 Brady Miller + * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ use OpenEMR\Core\Header; @@ -67,25 +56,23 @@ if ($_POST['form_labels']) { } } -<?php xl('Front Office Receipts', 'e'); ?> +<?php echo xlt('Front Office Receipts'); ?> @@ -120,13 +107,13 @@ $(document).ready(function() { - - + -
- +
-
+
@@ -140,13 +127,13 @@ $(document).ready(function() {
- : + : - : + : @@ -188,14 +175,14 @@ $(document).ready(function() { - - - - - - - - + + + + + + + += '$form_from_date 00:00:00' AND " . - "e.date <= '$form_to_date 23:59:59' " . + "e.date >= ? AND " . + "e.date <= ? " . "LEFT OUTER JOIN insurance_data AS i1 ON " . "i1.pid = p.pid AND i1.type = 'primary' " . "LEFT OUTER JOIN insurance_companies AS c1 ON " . @@ -225,7 +212,7 @@ if ($_POST['form_refresh'] || $_POST['form_labels']) { "c2.id = i2.provider " . "GROUP BY p.lname, p.fname, p.mname, p.pid, i1.date, i2.date " . "ORDER BY p.lname, p.fname, p.mname, p.pid, i1.date DESC, i2.date DESC"; - $res = sqlStatement($query); + $res = sqlStatement($query, array($form_from_date . ' 00:00:00', $form_to_date . ' 23:59:59')); $prevpid = 0; while ($row = sqlFetchArray($res)) { @@ -260,25 +247,25 @@ if ($_POST['form_refresh'] || $_POST['form_labels']) { -- 2.11.4.GIT
- + - + - + - + - + - + - +
- + - +