* @author Kevin Yeh * @author Jerry Padgett * @author Brady Miller * @copyright Copyright (c) 2011 Cassian LUP * @copyright Copyright (c) 2013 Kevin Yeh * @copyright Copyright (c) 2016-2017 Jerry Padgett * @copyright Copyright (c) 2019 Brady Miller * @license https://github.com/openemr/openemr/blob/master/LICENSE GNU General Public License 3 */ // All of the common intialization steps for the get_* patient portal functions are now in this single include. //continue session // Will start the (patient) portal OpenEMR session/cookie. require_once(__DIR__ . "/../src/Common/Session/SessionUtil.php"); OpenEMR\Common\Session\SessionUtil::portalSessionStart(); //landing page definition -- where to go if something goes wrong $landingpage = "index.php?site=" . urlencode($_SESSION['site_id'] ?? null); // // kick out if patient not authenticated if (isset($_SESSION['pid']) && isset($_SESSION['patient_portal_onsite_two'])) { $pid = $_SESSION['pid']; } else { OpenEMR\Common\Session\SessionUtil::portalSessionCookieDestroy(); header('Location: ' . $landingpage . '&w'); exit; } // $ignoreAuth_onsite_portal = true; // ignore the standard authentication for a regular OpenEMR user require_once(dirname(__file__) . './../interface/globals.php');