From: bradymiller Date: Mon, 8 Jul 2013 02:06:36 +0000 (-0700) Subject: Cleaned up the logout script X-Git-Tag: whats-been-changed~277 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/25cb51ca23885db05d5de5cfb63c3bc87463cda3 Cleaned up the logout script --- 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"}."'"  |    - +