Fixed log viewer bug that caused some entries to go missing from the dropdown of...
[openemr.git] / patients / verify_session.php
blobd53da76000dc4e79a6f88ac327a6f72af009ae36
1 <?php
2 // Copyright (C) 2011 Cassian LUP <cassi.lup@gmail.com>
3 //
4 // Moved out of individual get_* portal functions for re-use by
5 // Kevin Yeh (kevin.y@integralemr.com) May 2013
6 //
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.
11 //
12 //
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;
22 //continue session
23 session_start();
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'];
33 else {
34 session_destroy();
35 header('Location: '.$landingpage.'&w');
36 exit;
40 $ignoreAuth=true; // ignore the standard authentication for a regular OpenEMR user
41 include_once('../interface/globals.php');