<?php if (empty($msg)) { $msg = get_session_msg($this); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="shortcut icon" type="image/x-icon" href="<?php echo IMAGE_URL; ?> favicon.ico"> <title><?php echo SITE_TITLE . ': Settings'; ?> </title> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/external-fonts.css" type="text/css"> <link rel="stylesheet" href="<?php echo base_url(); ?> assets/css/jquery-ui.css"/> <link rel="stylesheet" href="<?php echo base_url();
function logout() { $data = filter_forwarded_data($this); #Log sign-out event $userId = $this->native_session->get('__user_id') ? $this->native_session->get('__user_id') : ""; $email = $this->native_session->get('__email_address') ? $this->native_session->get('__email_address') : ""; $this->_logger->add_event(array('user_id' => $userId, 'activity_code' => 'user_logout', 'result' => 'success', 'log_details' => "userid=" . $userId . "|email=" . $email)); # Set appropriate message - reason for log out. $data['msg'] = $this->native_session->get('msg') ? get_session_msg($this) : "You have been logged out."; #Remove any set session variables $this->native_session->delete_all(); $this->load->view('accounts/login', $data); }