bug fixes in patient_files summary directory (#1964)
[openemr.git] / interface / patient_file / encounter / view_form.php
blob7e07937a19b8d1b38a18f570b3b2974000c2b0d5
1 <?php
2 /**
3 * view_form.php
5 * @package OpenEMR
6 * @link http://www.open-emr.org
7 * @author Brady Miller <brady.g.miller@gmail.com>
8 * @copyright Copyright (c) 2018 Brady Miller <brady.g.miller@gmail.com>
9 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once("../../globals.php");
15 $clean_id=sanitizeNumber($_GET["id"]);
17 if (substr($_GET["formname"], 0, 3) === 'LBF') {
18 // Use the List Based Forms engine for all LBFxxxxx forms.
19 include_once("$incdir/forms/LBF/view.php");
20 } else {
21 // ensure the path variable has no illegal characters
22 check_file_dir_name($_GET["formname"]);
24 include_once("$incdir/forms/" . $_GET["formname"] . "/view.php");
27 $id = $clean_id;