bug fixes in patient_files summary directory (#1964)
[openemr.git] / interface / patient_file / encounter / load_form.php
blobba1063b3ece832056c10a9bb419180733cea3f61
1 <?php
2 /**
3 * load_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
12 $special_timeout = 3600;
13 require_once("../../globals.php");
14 if (substr($_GET["formname"], 0, 3) === 'LBF') {
15 // Use the List Based Forms engine for all LBFxxxxx forms.
16 include_once("$incdir/forms/LBF/new.php");
17 } else {
18 if ((!empty($_GET['pid'])) && ($_GET['pid'] > 0)) {
19 $pid = $_GET['pid'];
20 $encounter = $_GET['encounter'];
23 // ensure the path variable has no illegal characters
24 check_file_dir_name($_GET["formname"]);
26 include_once("$incdir/forms/" . $_GET["formname"] . "/new.php");