From 25cb51ca23885db05d5de5cfb63c3bc87463cda3 Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sun, 7 Jul 2013 19:06:36 -0700 Subject: [PATCH] Cleaned up the logout script --- interface/logout.php | 60 +++++++++++++++++++++----------------- interface/main/main_navigation.php | 2 +- interface/main/main_title.php | 2 +- 3 files changed, 35 insertions(+), 29 deletions(-) rewrite interface/logout.php (92%) diff --git a/interface/logout.php b/interface/logout.php dissimilarity index 92% index 387c2e679..41733806e 100644 --- a/interface/logout.php +++ b/interface/logout.php @@ -1,27 +1,33 @@ - - - - - - - - - - - - - -

- - - -

- - - -

- - - +;. + * + * @package OpenEMR + * @author Tony McCormick + * @author Kevin Yeh + * @author Brady Miller + * @link http://www.open-emr.org + */ + +$fake_register_globals=false; +$sanitize_all_escapes=true; + +// Set the GET auth parameter to logout. +// This parameter is then captured in the auth.inc script (which is included in globals.php script) and does the following: +// 1. Logs out user +// 2. Closes the php session +// 3. Redirects user to the login screen (maintains the site id) +$_GET['auth'] = "logout"; +require_once("globals.php"); +?> diff --git a/interface/main/main_navigation.php b/interface/main/main_navigation.php index b9a31bcc3..ea47ac912 100644 --- a/interface/main/main_navigation.php +++ b/interface/main/main_navigation.php @@ -137,7 +137,7 @@ include_once("../../library/acl.inc");    diff --git a/interface/main/main_title.php b/interface/main/main_title.php index a2367b746..45a2349ad 100644 --- a/interface/main/main_title.php +++ b/interface/main/main_title.php @@ -119,7 +119,7 @@ $res = sqlQuery("select * from users where username='".$_SESSION{"authUser"}."'"  |    - + -- 2.11.4.GIT