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"]);