aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-15 02:20:46 -0700
committerfriendica <info@friendica.com>2013-05-15 02:20:46 -0700
commit427b9787d07c729c11d61eb17221cbf7671fcbde (patch)
treebfec09d7060e08ace6d2316a763a84d64e2dea70
parent462f91c2cae070ea4912508ad80f04cb4cd93355 (diff)
downloadvolse-hubzilla-427b9787d07c729c11d61eb17221cbf7671fcbde.tar.gz
volse-hubzilla-427b9787d07c729c11d61eb17221cbf7671fcbde.tar.bz2
volse-hubzilla-427b9787d07c729c11d61eb17221cbf7671fcbde.zip
add magic_auth_complete hook
-rwxr-xr-xboot.php10
-rw-r--r--mod/post.php3
-rw-r--r--version.inc2
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