From 427b9787d07c729c11d61eb17221cbf7671fcbde Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 15 May 2013 02:20:46 -0700 Subject: add magic_auth_complete hook --- boot.php | 10 +++++----- mod/post.php | 3 +++ version.inc | 2 +- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/boot.php b/boot.php index ad5c2f8e1..d496670d4 100755 --- a/boot.php +++ b/boot.php @@ -2,11 +2,11 @@ /** @file */ /** - * Red. + * Red Matrix. * - * Red is an open source decentralised communications platform combined with - * a decentralised identity/authentication framework wrapped in - * an extensible content management system, providing website designers + * The Red Matrix (aka "Red") is an open source decentralised communications + * platform combined with a decentralised identity/authentication framework + * wrapped in an extensible content management system, providing website designers * the ability to embed fully decentralised communications and social tools * into many traditional website designs (blogs, forums, small business * websites, charitable organisations, etc.). Red also provides DNS mobility @@ -38,7 +38,7 @@ require_once('library/Mobile_Detect/Mobile_Detect.php'); require_once('include/BaseObject.php'); require_once('include/features.php'); -define ( 'RED_PLATFORM', 'Red' ); +define ( 'RED_PLATFORM', 'Red Matrix' ); define ( 'RED_VERSION', trim(file_get_contents('version.inc')) . 'R'); define ( 'ZOT_REVISION', 1 ); define ( 'DB_UPDATE_VERSION', 1042 ); diff --git a/mod/post.php b/mod/post.php index 5ec7eabca..f48262343 100644 --- a/mod/post.php +++ b/mod/post.php @@ -118,6 +118,9 @@ function post_init(&$a) { // log them in $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $x[0]['xchan_hash']; + $_SESSION['my_address'] = $address; + $arr = array('xchan' => $x[0], 'url' => $desturl); + call_hooks('magic_auth_success',$arr); $a->set_observer($x[0]); require_once('include/security.php'); $a->set_groups(init_groups_visitor($_SESSION['visitor_id'])); diff --git a/version.inc b/version.inc index 0c3e16439..8fc857f03 100644 --- a/version.inc +++ b/version.inc @@ -1 +1 @@ -2013-05-14.313 +2013-05-15.314 -- cgit v1.2.3