summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-08-14 07:59:00 +0000
committerthomascube <thomas@roundcube.net>2009-08-14 07:59:00 +0000
commit7ef47e59a952b554f615ec96abb471c21a1b4e86 (patch)
tree5b542730809f5250409546d09bbffecbb8e26ef2
parentd002607852416be04faf317f81793baacfdb6c79 (diff)
Add some arguments to the logout_after hook
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index a0210da72..542a72451 100644
--- a/index.php
+++ b/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