fix: Update patient_tracker.php (#6595)
[openemr.git] / library / ajax / set_pt.php
blobf0057de99aec48f940119359bf03196a845b13a9
1 <?php
3 /**
4 * sets pid
6 * @package OpenEMR
7 * @link https://www.open-emr.org
8 * @author Brady Miller <brady.g.miller@gmail.com>
9 * @copyright Copyright (c) 2017 Brady Miller <brady.g.miller@gmail.com>
10 * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3
13 require_once("../../interface/globals.php");
14 require_once("$srcdir/pid.inc.php");
16 use OpenEMR\Common\Csrf\CsrfUtils;
18 if (!CsrfUtils::verifyCsrfToken($_GET["csrf_token_form"])) {
19 CsrfUtils::csrfNotVerified();
22 if ($_GET["set_pid"] && $_GET["set_pid"] != $_SESSION["pid"]) {
23 setpid($_GET["set_pid"]);