~oh-dev/openhealth/phit-tools

« back to all changes in this revision

Viewing changes to ihris-suite/lib/i2ce/modules/Login/lib/I2CE_PageLogout.php

  • Committer: litlfred at ibiblio
  • Date: 2009-10-23 12:59:28 UTC
  • Revision ID: litlfred@ibiblio.org-20091023125928-u5lkafz0urm9t8eq
updated ihris-suite to 4.0.1-prerelease -- not debugged

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php
2
 
/**
3
 
 * © Copyright 2007, 2008 IntraHealth International, Inc.
4
 
 * 
5
 
 * This File is part of I2CE 
6
 
 * 
7
 
 * I2CE is free software; you can redistribute it and/or modify 
8
 
 * it under the terms of the GNU General Public License as published by 
9
 
 * the Free Software Foundation; either version 3 of the License, or
10
 
 * (at your option) any later version.
11
 
 * 
12
 
 * This program is distributed in the hope that it will be useful, 
13
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
14
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
15
 
 * GNU General Public License for more details.
16
 
 * 
17
 
 * You should have received a copy of the GNU General Public License 
18
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
 
 */
20
 
/**
21
 
 *  I2CE_PageLogout
22
 
 * @package I2CE
23
 
 * @subpackage Core
24
 
 * @author Carl Leitner <litlfred@ibiblio.org>
25
 
 * @copyright Copyright &copy; 2007, 2008 IntraHealth International, Inc. 
26
 
 * This file is part of I2CE. I2CE is free software; you can redistribute it and/or modify it under 
27
 
 * the terms of the GNU General Public License as published by the Free Software Foundation; either 
28
 
 * version 3 of the License, or (at your option) any later version. I2CE is distributed in the hope 
29
 
 * that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 
30
 
 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have 
31
 
 * received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
32
 
 * @version 2.1
33
 
 * @access public
34
 
 */
35
 
 
36
 
 
37
 
class I2CE_PageLogout extends I2CE_Page {
38
 
 
39
 
    public function action() {
40
 
        parent::action();
41
 
        $i2ce_config = I2CE::getConfig()->I2CE;
42
 
        $this->user->logout();
43
 
        destroy_session();
44
 
        $this->redirect('login');
45
 
    }
46
 
 
47
 
 
48
 
}
49
 
 
50
 
# Local Variables:
51
 
# mode: php
52
 
# c-default-style: "bsd"
53
 
# indent-tabs-mode: nil
54
 
# c-basic-offset: 4
55
 
# End: