/lenasys/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/lenasys/trunk

« back to all changes in this revision

Viewing changes to codeigniter/application/controllers/logout.php

  • Committer: Erik Wikström
  • Date: 2013-04-09 09:09:31 UTC
  • mfrom: (21 lenasys)
  • mto: (21.1.1 lenasys)
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: wikxen@gmail.com-20130409090931-9jcs9kzg8et0912g
Remerged! Changed password hashes to VARCHAR(32)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2
 
 
3
 
        //Home controller
4
 
        class Logout extends CI_Controller {    
5
 
                /*
6
 
                 *      Constructor
7
 
                 */
8
 
                function __construct() {
9
 
                        parent::__construct();
10
 
                        
11
 
                        //Load required library
12
 
                        $this->load->model('user', '', TRUE);
13
 
                }
14
 
        
15
 
        
16
 
                /*
17
 
                 *      This function runs when the user navigates directly to the lougout controller
18
 
                 */
19
 
                public function index() {
20
 
                        //Perform logout
21
 
                        $this->user->logout();
22
 
                        
23
 
                        //Redirect user
24
 
                        redirect(base_url().'home', 'refresh');
25
 
                }
26
 
        }
27
 
?>
 
 
b'\\ No newline at end of file'