From 95fe5f7a7c4e85ee49feb347fb6e6cf46f66bde9 Mon Sep 17 00:00:00 2001 From: Ahani Peitra <60817596+ahanipeitra1994@users.noreply.github.com> Date: Mon, 17 Aug 2020 06:52:57 +0100 Subject: [PATCH] Delete messages.php --- patient_portal/messaging/messages.php | 835 -------------------------- 1 file changed, 835 deletions(-) delete mode 100644 patient_portal/messaging/messages.php diff --git a/patient_portal/messaging/messages.php b/patient_portal/messaging/messages.php deleted file mode 100644 index 03109d0d0..000000000 --- a/patient_portal/messaging/messages.php +++ /dev/null @@ -1,835 +0,0 @@ - - * - * LICENSE: This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0 - * See the Mozilla Public License for more details. - * If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/. - * - * @package LibreHealth EHR - * @author Jerry Padgett - * @link http://librehealth.io - */ -session_start(); -if ( isset($_SESSION['pid']) && isset($_SESSION['patient_portal_onsite']) ) { - $_SESSION['whereto'] = 'profilepanel'; - $pid = $_SESSION['pid']; - $ignoreAuth = true; - $sanitize_all_escapes = true; - $fake_register_globals = false; - require_once ( dirname( __FILE__ ) . "/../../interface/globals.php" ); - define('IS_DASHBOARD', false); - define('IS_PORTAL', $_SESSION['portal_username']); -} else { - session_destroy(); - $ignoreAuth = false; - $sanitize_all_escapes = true; - $fake_register_globals = false; - require_once ( dirname( __FILE__ ) . "/../../interface/globals.php" ); - if ( ! isset($_SESSION['authUserID']) ){ - $landingpage = "index.php"; - header('Location: '.$landingpage); - exit(); - } - - define('IS_DASHBOARD', $_SESSION['authUser']); - define('IS_PORTAL', false); -} -require_once ("$srcdir/acl.inc"); -require_once ("$srcdir/patient.inc"); -require_once ("$srcdir/options.inc.php"); -require_once ("$srcdir/classes/Document.class.php"); -require_once ("./../lib/portal_mail.inc"); - -$docid = empty ( $_REQUEST ['docid'] ) ? 0 : intval ( $_REQUEST ['docid'] ); -$orderid = empty ( $_REQUEST ['orderid'] ) ? 0 : intval ( $_REQUEST ['orderid'] ); - -$result = getMails(IS_DASHBOARD ? IS_DASHBOARD:IS_PORTAL, 'inbox', '', ''); -$theresult = array (); -foreach ( $result as $iter ) { - $theresult[] = $iter; -} - -$dashuser = array(); -if(IS_DASHBOARD){ - $dashuser = getUserIDInfo($_SESSION['authUserID']); -} - -function getAuthPortalUsers() -{ - $resultpd = $resultusers= $resultpatients = array (); - if( IS_DASHBOARD ){ // admin can mail anyone - $authusers = sqlStatement("SELECT users.username as userid, - CONCAT(users.fname,' ',users.lname) as username, 'user' as type FROM users WHERE authorized = 1"); - while( $row = sqlFetchArray($authusers) ){ - $resultusers[] = $row; - } - - $authpatients = sqlStatement("SELECT LOWER(CONCAT(patient_data.fname, patient_data.id)) as userid, - CONCAT(patient_data.fname,' ',patient_data.lname) as username,'p' as type,patient_data.pid as pid FROM patient_data WHERE allow_patient_portal = 'YES'"); - while( $row = sqlFetchArray($authpatients) ){ - $resultpatients[] = $row; - } - $resultpd[] = array_merge($resultusers,$resultpatients); - return $resultpd[0]; - } else{ - $resultpd = array (); - $authusers = sqlStatement("SELECT users.username as userid, CONCAT(users.fname,' ',users.lname) as username FROM users WHERE authorized = 1"); - while( $row = sqlFetchArray($authusers) ){ - $resultpd[] = $row; -} - } - return $resultpd; -} -?> - - - - -<?php echo xlt("Secure Messaging"); ?> - - - - - - - - - - - - - - - - - - - - - - - - - - - -