Fix cancel front payment.
[openemr.git] / interface / logout.php
blobbe9c7a5a04327330b752b9b35d890f8d87de5de7
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.g.miller@gmail.com>
20 * @link http://www.open-emr.org
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");