diff options
| author | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-14 07:59:00 +0000 |
|---|---|---|
| committer | thomasb <thomasb@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-08-14 07:59:00 +0000 |
| commit | 0c2eec411d26276d374590f4546f2fc800925449 (patch) | |
| tree | 9441b9114c64ffb06051bd5e90b5c3e47d7342d5 | |
| parent | 9252365518a5c4be1e8790dd149c431a977f62f2 (diff) | |
Add some arguments to the logout_after hook
git-svn-id: https://svn.roundcube.net/trunk@2859 208e9e7b-5314-0410-a742-e7e81cd9613c
| -rw-r--r-- | roundcubemail/index.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/roundcubemail/index.php b/roundcubemail/index.php index a0210da72..542a72451 100644 --- a/roundcubemail/index.php +++ b/roundcubemail/index.php @@ -129,10 +129,11 @@ if ($RCMAIL->action=='login' && $RCMAIL->task=='mail') { // end session else if ($RCMAIL->task=='logout' && isset($_SESSION['user_id'])) { + $userdata = array('user' => $_SESSION['username'], 'host' => $_SESSION['imap_host'], 'lang' => $RCMAIL->user->language); $OUTPUT->show_message('loggedout'); $RCMAIL->logout_actions(); $RCMAIL->kill_session(); - $RCMAIL->plugins->exec_hook('logout_after', array()); + $RCMAIL->plugins->exec_hook('logout_after', $userdata); } // check session and auth cookie |
