2 // Copyright (C) 2011 Cassian LUP <cassi.lup@gmail.com>
4 // Moved out of individual get_* portal functions for re-use by
5 // Kevin Yeh (kevin.y@integralemr.com) May 2013
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License
9 // as published by the Free Software Foundation; either version 2
10 // of the License, or (at your option) any later version.
14 // All of the common intialization steps for the get_* patient portal functions are now in this single include.
16 //SANITIZE ALL ESCAPES
17 $sanitize_all_escapes=true;
19 //STOP FAKE REGISTER GLOBALS
20 $fake_register_globals=false;
25 //landing page definition -- where to go if something goes wrong
26 $landingpage = "index.php?site=".$_SESSION['site_id'];
29 // kick out if patient not authenticated
30 if ( isset($_SESSION['pid']) && isset($_SESSION['patient_portal_onsite']) ) {
31 $pid = $_SESSION['pid'];
35 header('Location: '.$landingpage.'&w');
40 $ignoreAuth=true; // ignore the standard authentication for a regular OpenEMR user
41 include_once('../interface/globals.php');