Revert "Contributed GYM Forms, some of the table.sql files include inserts into list_...
[openemr.git] / interface / patient_file / encounter / load_form.php
blob20f4a05274f046c18a3c5d675b6cb8fde9db2622
1 <?php
2 // This program is free software; you can redistribute it and/or
3 // modify it under the terms of the GNU General Public License
4 // as published by the Free Software Foundation; either version 2
5 // of the License, or (at your option) any later version.
7 $special_timeout = 3600;
8 include_once("../../globals.php");
9 if (substr($_GET["formname"], 0, 3) === 'LBF') {
10 // Use the List Based Forms engine for all LBFxxxxx forms.
11 include_once("$incdir/forms/LBF/new.php");
13 else {
14 if( (!empty($_GET['pid'])) && ($_GET['pid'] > 0) )
16 $pid = $_GET['pid'];
17 $encounter = $_GET['encounter'];
19 if($_GET["formname"] != "newpatient" ){
20 include_once("$incdir/patient_file/encounter/new_form.php");
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");