From 64628c800d711c3a3c28e2bf94efd7e8b26a5eba Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 4 Jan 2011 05:06:10 -0800 Subject: provide "return home" key --- mod/dfrn_poll.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mod') diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 52272efad..1061cdb89 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -73,6 +73,7 @@ function dfrn_poll_init(&$a) { if((int) $xml->status == 1) { $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $r[0]['id']; + $_SESSION['visitor_home'] = $r[0]['url']; notice( $r[0]['username'] . t(' welcomes ') . $r[0]['name'] . EOL); // Visitors get 1 day session. $session_id = session_id(); @@ -386,6 +387,7 @@ function dfrn_poll_content(&$a) { if(((int) $xml->status == 0) && ($xml->challenge == $hash) && ($xml->sec == $sec)) { $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $r[0]['id']; + $_SESSION['visitor_home'] = $r[0]['url']; notice( $r[0]['username'] . t(' welcomes ') . $r[0]['name'] . EOL); // Visitors get 1 day session. $session_id = session_id(); -- cgit v1.2.3