From 7ef47e59a952b554f615ec96abb471c21a1b4e86 Mon Sep 17 00:00:00 2001 From: thomascube Date: Fri, 14 Aug 2009 07:59:00 +0000 Subject: Add some arguments to the logout_after hook --- index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3