acknowledgments update
[openemr.git] / interface / logout.php
blob41733806e8b788f6efb33ed3828e8af4904ac3c7
1 <?php
2 /**
3 * Logout script.
5 * LICENSE: This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;.
16 * @package OpenEMR
17 * @author Tony McCormick <tony@mi-squared.com>
18 * @author Kevin Yeh <kevin.y@integralemr.com>
19 * @author Brady Miller <brady@sparmy.com>
20 * @link http://www.open-emr.org
23 $fake_register_globals=false;
24 $sanitize_all_escapes=true;
26 // Set the GET auth parameter to logout.
27 // This parameter is then captured in the auth.inc script (which is included in globals.php script) and does the following:
28 // 1. Logs out user
29 // 2. Closes the php session
30 // 3. Redirects user to the login screen (maintains the site id)
31 $_GET['auth'] = "logout";
32 require_once("globals.php");