in some php versions touch will give an error, error output supressed by @
[openemr.git] / library / pid.inc
blobabc9cbbeb5f28b14dbdb466b2efaa06b9c273189
1 <?
2 include_once("../globals.php");
3 include_once("$srcdir/log.inc");
5 //function called to set the global session variable for patient id (pid) number
6 function setpid($new_pid) {
7 global $pid;
9 $_SESSION['pid']=$new_pid;
10 $pid=$new_pid;
12 newEvent("view",$_SESSION["authUser"],$_SESSION["authProvider"],$pid);