X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=spec%2Fdfrn2_contact_request.svg;h=d32718271b844cee8171fafa21afff9cd36eea7a;hb=6a23f51549e6b476d494dce4131a24f8ebcdba43;hp=d81323457e59ecc3cf44bddacc564270dfb5cb1f;hpb=63610c7b73fcaf862adbf880d4968dd2b1678d9b;p=friendica.git
diff --git a/spec/dfrn2_contact_request.svg b/spec/dfrn2_contact_request.svg
index d81323457e..d32718271b 100644
--- a/spec/dfrn2_contact_request.svg
+++ b/spec/dfrn2_contact_request.svg
@@ -31,14 +31,14 @@ text { font:12px Dialog; }
----------------------------------------------
- Cleanup old introductions that remain blocked + Cleanup
any old email intros - which will have a greater lifetime
-- probe_url Bobs posted dfrn_url and get the network with
+- Probe::uri Bobs posted dfrn_url and get the network with
webfinger_dfrn
- try to select all contact data of Bob (contact table) by the
url ($_POST['dfrn_url] and profile uid ($a->profile['uid'])
where self = 0 to look if this contact is already there (if
issued-id or rel is already available return here because it
seems that we are already connected)
-- create a issued-id with $issued_id = random_string();
+- create a issued-id with $issued_id = Strings::getRandomHex();
- if we already found a contact record above update the
issued-id with the one we have created
- otherwise if Bob is not already in the contact table scrape
@@ -80,7 +80,7 @@ text { font:12px Dialog; }
($_POST['localconfirm'] == 1)
-----------------------------------------------------------------------
- if(local_user() && ($a->user['nickname'] == $a-
->argv[1]) && (x($_POST,'dfrn_url')))
+>argv[1]) && !empty($_POST['dfrn_url']))
->
- $confirm_key comes from $_POST
- get data for contact Karen (contact table) by
@@ -93,9 +93,9 @@ text { font:12px Dialog; }
- create a contact for Karen in the contact table with
the scraped data with blocked = 1 and pending = 1
(Karens pubkey becomes the contact site-pubkey)
-- fetch_url($dfrn_request . '?confirm_key=' .
+- Network::fetchUrl($dfrn_request . '?confirm_key=' .
$confirm_key);
-- fetch_url(http://karenhomepage.com/dfrn_request?
+- Network::fetchUrl(http://karenhomepage.com/dfrn_request?
confirm_key=âABC123â)
@@ -104,7 +104,7 @@ text { font:12px Dialog; }
http://karenhomepage.com/dfrn_request?confirm_key=âABC123â
dfrn_request_content() -
-(elseif((x($_GET,'confirm_key')) && strlen($_GET['confirm_key'])) )
+elseif (!empty($_GET['confirm_key']))
----------------------------------------------------------------------------------------------
- select the intro by confirm_key (intro table) -> get contact id
- use the intro contact id to get the contact in the contact table