diff options
author | thomascube <thomas@roundcube.net> | 2009-08-14 07:59:00 +0000 |
---|---|---|
committer | thomascube <thomas@roundcube.net> | 2009-08-14 07:59:00 +0000 |
commit | 7ef47e59a952b554f615ec96abb471c21a1b4e86 (patch) | |
tree | 5b542730809f5250409546d09bbffecbb8e26ef2 /index.php | |
parent | d002607852416be04faf317f81793baacfdb6c79 (diff) |
Add some arguments to the logout_after hook
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |