7 * Purpose: Handles communication associated with the issuance of
12 require_once('include/enotify.php');
13 require_once('include/Scrape.php');
14 require_once('include/Probe.php');
15 require_once('include/group.php');
17 if(! function_exists('dfrn_request_init')) {
18 function dfrn_request_init(&$a) {
23 profile_load($a,$which);
29 * Function: dfrn_request_post
32 * Handles multiple scenarios.
35 * Clicking 'submit' on a friend request page.
38 * Following Scenario 1, we are brought back to our home site
39 * in order to link our friend request with our own server cell.
40 * After logging in, we click 'submit' to approve the linkage.
44 if(! function_exists('dfrn_request_post')) {
45 function dfrn_request_post(&$a) {
47 if(($a->argc != 2) || (! count($a->profile))) {
48 logger('Wrong count of argc or profiles: argc=' . $a->argc . ',profile()=' . count($a->profile));
53 if(x($_POST, 'cancel')) {
60 * Scenario 2: We've introduced ourself to another cell, then have been returned to our own cell
61 * to confirm the request, and then we've clicked submit (perhaps after logging in).
62 * That brings us here:
66 if((x($_POST,'localconfirm')) && ($_POST['localconfirm'] == 1)) {
69 * Ensure this is a valid request
72 if(local_user() && ($a->user['nickname'] == $a->argv[1]) && (x($_POST,'dfrn_url'))) {
75 $dfrn_url = notags(trim($_POST['dfrn_url']));
76 $aes_allow = (((x($_POST,'aes_allow')) && ($_POST['aes_allow'] == 1)) ? 1 : 0);
77 $confirm_key = ((x($_POST,'confirm_key')) ? $_POST['confirm_key'] : "");
78 $hidden = ((x($_POST,'hidden-contact')) ? intval($_POST['hidden-contact']) : 0);
79 $contact_record = null;
84 * Lookup the contact based on their URL (which is the only unique thing we have at the moment)
87 $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND (`url` = '%s' OR `nurl` = '%s') AND `self` = 0 LIMIT 1",
90 dbesc(normalise_link($dfrn_url))
93 if(dbm::is_result($r)) {
94 if(strlen($r[0]['dfrn-id'])) {
97 * We don't need to be here. It has already happened.
100 notice( t("This introduction has already been accepted.") . EOL );
104 $contact_record = $r[0];
107 if(is_array($contact_record)) {
108 $r = q("UPDATE `contact` SET `ret-aes` = %d, hidden = %d WHERE `id` = %d",
111 intval($contact_record['id'])
117 * Scrape the other site's profile page to pick up the dfrn links, key, fn, and photo
120 $parms = Probe::profile($dfrn_url);
122 if(! count($parms)) {
123 notice( t('Profile location is not valid or does not contain profile information.') . EOL );
128 notice( t('Warning: profile location has no identifiable owner name.') . EOL );
129 if(! x($parms,'photo'))
130 notice( t('Warning: profile location has no profile photo.') . EOL );
131 $invalid = Probe::valid_dfrn($parms);
133 notice( sprintf( tt("%d required parameter was not found at the given location",
134 "%d required parameters were not found at the given location",
135 $invalid), $invalid) . EOL );
140 $dfrn_request = $parms['dfrn-request'];
142 $photo = $parms["photo"];
144 /********* Escape the entire array ********/
148 /******************************************/
151 * Create a contact record on our site for the other person
154 $r = q("INSERT INTO `contact` ( `uid`, `created`,`url`, `nurl`, `addr`, `name`, `nick`, `photo`, `site-pubkey`,
155 `request`, `confirm`, `notify`, `poll`, `poco`, `network`, `aes_allow`, `hidden`)
156 VALUES ( %d, '%s', '%s', '%s', '%s', '%s' , '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d)",
157 intval(local_user()),
160 dbesc(normalise_link($dfrn_url)),
166 $parms['dfrn-request'],
167 $parms['dfrn-confirm'],
168 $parms['dfrn-notify'],
178 info( t("Introduction complete.") . EOL);
181 $r = q("SELECT `id`, `network` FROM `contact` WHERE `uid` = %d AND `url` = '%s' AND `site-pubkey` = '%s' LIMIT 1",
182 intval(local_user()),
184 $parms['key'] // this was already escaped
186 if(dbm::is_result($r)) {
187 $def_gid = get_default_group(local_user(), $r[0]["network"]);
189 group_add_member(local_user(), '', $r[0]['id'], $def_gid);
192 update_contact_avatar($photo, local_user(), $r[0]["id"], true);
194 $forwardurl = $a->get_baseurl()."/contacts/".$r[0]['id'];
196 $forwardurl = $a->get_baseurl()."/contacts";
199 * Allow the blocked remote notification to complete
202 if(is_array($contact_record))
203 $dfrn_request = $contact_record['request'];
205 if(strlen($dfrn_request) && strlen($confirm_key))
206 $s = fetch_url($dfrn_request . '?confirm_key=' . $confirm_key);
208 // (ignore reply, nothing we can do it failed)
210 // Old: goaway(zrl($dfrn_url));
212 return; // NOTREACHED
218 // invalid/bogus request
220 notice( t('Unrecoverable protocol error.') . EOL );
222 return; // NOTREACHED
229 * We are the requestee. A person from a remote cell has made an introduction
230 * on our profile web page and clicked submit. We will use their DFRN-URL to
231 * figure out how to contact their cell.
233 * Scrape the originating DFRN-URL for everything we need. Create a contact record
234 * and an introduction to show our user next time he/she logs in.
235 * Finally redirect back to the requestor so that their site can record the request.
236 * If our user (the requestee) later confirms this request, a record of it will need
237 * to exist on the requestor's cell in order for the confirmation process to complete..
239 * It's possible that neither the requestor or the requestee are logged in at the moment,
240 * and the requestor does not yet have any credentials to the requestee profile.
242 * Who is the requestee? We've already loaded their profile which means their nickname should be
243 * in $a->argv[1] and we should have their complete info in $a->profile.
247 if(! (is_array($a->profile) && count($a->profile))) {
248 notice( t('Profile unavailable.') . EOL);
252 $nickname = $a->profile['nickname'];
253 $notify_flags = $a->profile['notify-flags'];
254 $uid = $a->profile['uid'];
255 $maxreq = intval($a->profile['maxreq']);
256 $contact_record = null;
261 if( x($_POST,'dfrn_url')) {
264 * Block friend request spam
268 $r = q("SELECT * FROM `intro` WHERE `datetime` > '%s' AND `uid` = %d",
269 dbesc(datetime_convert('UTC','UTC','now - 24 hours')),
272 if(count($r) > $maxreq) {
273 notice( sprintf( t('%s has received too many connection requests today.'), $a->profile['name']) . EOL);
274 notice( t('Spam protection measures have been invoked.') . EOL);
275 notice( t('Friends are advised to please try again in 24 hours.') . EOL);
282 * Cleanup old introductions that remain blocked.
283 * Also remove the contact record, but only if there is no existing relationship
284 * Do not remove email contacts as these may be awaiting email verification
287 $r = q("SELECT `intro`.*, `intro`.`id` AS `iid`, `contact`.`id` AS `cid`, `contact`.`rel`
288 FROM `intro` LEFT JOIN `contact` on `intro`.`contact-id` = `contact`.`id`
289 WHERE `intro`.`blocked` = 1 AND `contact`.`self` = 0
290 AND `contact`.`network` != '%s'
291 AND `intro`.`datetime` < UTC_TIMESTAMP() - INTERVAL 30 MINUTE ",
294 if(dbm::is_result($r)) {
297 q("DELETE FROM `contact` WHERE `id` = %d",
301 q("DELETE FROM `intro` WHERE `id` = %d",
309 * Cleanup any old email intros - which will have a greater lifetime
312 $r = q("SELECT `intro`.*, `intro`.`id` AS `iid`, `contact`.`id` AS `cid`, `contact`.`rel`
313 FROM `intro` LEFT JOIN `contact` on `intro`.`contact-id` = `contact`.`id`
314 WHERE `intro`.`blocked` = 1 AND `contact`.`self` = 0
315 AND `contact`.`network` = '%s'
316 AND `intro`.`datetime` < UTC_TIMESTAMP() - INTERVAL 3 DAY ",
319 if(dbm::is_result($r)) {
322 q("DELETE FROM `contact` WHERE `id` = %d",
326 q("DELETE FROM `intro` WHERE `id` = %d",
332 $email_follow = (x($_POST,'email_follow') ? intval($_POST['email_follow']) : 0);
333 $real_name = (x($_POST,'realname') ? notags(trim($_POST['realname'])) : '');
335 $url = trim($_POST['dfrn_url']);
337 notice( t("Invalid locator") . EOL );
345 if(! validate_email($url)) {
346 notice( t('Invalid email address.') . EOL);
351 $name = ($realname) ? $realname : $addr;
352 $nick = substr($addr,0,strpos($addr,'@'));
353 $url = 'http://' . substr($addr,strpos($addr,'@') + 1);
354 $nurl = normalise_url($host);
355 $poll = 'email ' . random_string();
356 $notify = 'smtp ' . random_string();
359 $network = NETWORK_MAIL2;
360 $rel = CONTACT_IS_FOLLOWER;
362 $mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
363 if(get_config('system','dfrn_only'))
366 if(! $mail_disabled) {
368 $r = q("SELECT * FROM `mailacct` WHERE `uid` = %d LIMIT 1",
373 notice( t('This account has not been configured for email. Request failed.') . EOL);
378 $r = q("insert into contact ( uid, created, addr, name, nick, url, nurl, poll, notify, blocked, pending, network, rel )
379 values( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d, %d, '%s', %d ) ",
381 dbesc(datetime_convert()),
395 $r = q("SELECT `id`, `network` FROM `contact` WHERE `poll` = '%s' AND `uid` = %d LIMIT 1",
399 if(dbm::is_result($r)) {
400 $contact_id = $r[0]['id'];
402 $def_gid = get_default_group($uid, $r[0]["network"]);
403 if (intval($def_gid))
404 group_add_member($uid, '', $contact_id, $def_gid);
406 $photo = avatar_img($addr);
408 $r = q("UPDATE `contact` SET
414 `avatar-date` = '%s',
421 dbesc(datetime_convert()),
422 dbesc(datetime_convert()),
423 dbesc(datetime_convert()),
428 // contact is created. Now create an introduction
430 $hash = random_string();
432 $r = q("insert into intro ( uid, `contact-id`, knowyou, note, hash, datetime, blocked )
433 values( %d , %d, %d, '%s', '%s', '%s', %d ) ",
436 ((x($_POST,'knowyou') && ($_POST['knowyou'] == 1)) ? 1 : 0),
437 dbesc(notags(trim($_POST['dfrn-request-message']))),
439 dbesc(datetime_convert()),
443 // Next send an email verify form to the requestor.
446 // Detect the network
447 $data = probe_url($url);
448 $network = $data["network"];
450 logger('dfrn_request: url=' . $url . ',network=' . $network . ',hcard=' . $hcard . ' - BEFORE!', LOGGER_DEBUG);
452 // Canonicalise email-style profile locator
453 $url = Probe::webfinger_dfrn($url,$hcard);
455 logger('dfrn_request: url=' . $url . ',network=' . $network . ',hcard=' . $hcard . ' - AFTER!', LOGGER_DEBUG);
457 if (substr($url,0,5) === 'stat:') {
459 // Every time we detect the remote subscription we define this as OStatus.
460 // We do this even if it is not OStatus.
461 // we only need to pass this through another section of the code.
462 if ($network != NETWORK_DIASPORA)
463 $network = NETWORK_OSTATUS;
465 $url = substr($url,5);
467 $network = NETWORK_DFRN;
470 logger('dfrn_request: url: ' . $url . ',network=' . $network, LOGGER_DEBUG);
472 if($network === NETWORK_DFRN) {
473 $ret = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' AND `self` = 0 LIMIT 1",
479 if(strlen($ret[0]['issued-id'])) {
480 notice( t('You have already introduced yourself here.') . EOL );
483 elseif($ret[0]['rel'] == CONTACT_IS_FRIEND) {
484 notice( sprintf( t('Apparently you are already friends with %s.'), $a->profile['name']) . EOL);
488 $contact_record = $ret[0];
489 $parms = array('dfrn-request' => $ret[0]['request']);
493 $issued_id = random_string();
495 if(is_array($contact_record)) {
496 // There is a contact record but no issued-id, so this
497 // is a reciprocal introduction from a known contact
498 $r = q("UPDATE `contact` SET `issued-id` = '%s' WHERE `id` = %d",
500 intval($contact_record['id'])
504 if(! validate_url($url)) {
505 notice( t('Invalid profile URL.') . EOL);
506 goaway($a->get_baseurl() . '/' . $a->cmd);
507 return; // NOTREACHED
510 if(! allowed_url($url)) {
511 notice( t('Disallowed profile URL.') . EOL);
512 goaway($a->get_baseurl() . '/' . $a->cmd);
513 return; // NOTREACHED
517 require_once('include/Scrape.php');
519 $parms = Probe::profile(($hcard) ? $hcard : $url);
521 if(! count($parms)) {
522 notice( t('Profile location is not valid or does not contain profile information.') . EOL );
523 goaway($a->get_baseurl() . '/' . $a->cmd);
527 notice( t('Warning: profile location has no identifiable owner name.') . EOL );
528 if(! x($parms,'photo'))
529 notice( t('Warning: profile location has no profile photo.') . EOL );
530 $invalid = Probe::valid_dfrn($parms);
532 notice( sprintf( tt("%d required parameter was not found at the given location",
533 "%d required parameters were not found at the given location",
534 $invalid), $invalid) . EOL );
541 $parms['url'] = $url;
542 $parms['issued-id'] = $issued_id;
543 $photo = $parms["photo"];
546 $r = q("INSERT INTO `contact` ( `uid`, `created`, `url`, `nurl`, `addr`, `name`, `nick`, `issued-id`, `photo`, `site-pubkey`,
547 `request`, `confirm`, `notify`, `poll`, `poco`, `network` )
548 VALUES ( %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s' )",
550 dbesc(datetime_convert()),
552 dbesc(normalise_link($url)),
559 $parms['dfrn-request'],
560 $parms['dfrn-confirm'],
561 $parms['dfrn-notify'],
567 // find the contact record we just created
569 $r = q("SELECT `id` FROM `contact`
570 WHERE `uid` = %d AND `url` = '%s' AND `issued-id` = '%s' LIMIT 1",
575 if(dbm::is_result($r))
576 $contact_record = $r[0];
577 update_contact_avatar($photo, $uid, $contact_record["id"], true);
583 notice( t('Failed to update contact record.') . EOL );
587 $hash = random_string() . (string) time(); // Generate a confirm_key
589 if(is_array($contact_record)) {
590 $ret = q("INSERT INTO `intro` ( `uid`, `contact-id`, `blocked`, `knowyou`, `note`, `hash`, `datetime`)
591 VALUES ( %d, %d, 1, %d, '%s', '%s', '%s' )",
593 intval($contact_record['id']),
594 ((x($_POST,'knowyou') && ($_POST['knowyou'] == 1)) ? 1 : 0),
595 dbesc(notags(trim($_POST['dfrn-request-message']))),
597 dbesc(datetime_convert())
601 // This notice will only be seen by the requestor if the requestor and requestee are on the same server.
604 info( t('Your introduction has been sent.') . EOL );
606 // "Homecoming" - send the requestor back to their site to record the introduction.
608 $dfrn_url = bin2hex($a->get_baseurl() . '/profile/' . $nickname);
609 $aes_allow = ((function_exists('openssl_encrypt')) ? 1 : 0);
611 goaway($parms['dfrn-request'] . "?dfrn_url=$dfrn_url"
612 . '&dfrn_version=' . DFRN_PROTOCOL_VERSION
613 . '&confirm_key=' . $hash
614 . (($aes_allow) ? "&aes_allow=1" : "")
617 // END $network === NETWORK_DFRN
618 } elseif (($network != NETWORK_PHANTOM) AND ($url != "")) {
622 * Substitute our user's feed URL into $url template
623 * Send the subscriber home to subscribe
627 // Diaspora needs the uri in the format user@domain.tld
628 // Diaspora will support the remote subscription in a future version
629 if ($network == NETWORK_DIASPORA) {
630 $uri = $nickname.'@'.$a->get_hostname();
633 $uri .= '/'.$a->get_path();
635 $uri = urlencode($uri);
637 $uri = $a->get_baseurl().'/profile/'.$nickname;
639 $url = str_replace('{uri}', $uri, $url);
642 // END $network != NETWORK_PHANTOM
644 notice(t("Remote subscription can't be done for your network. Please subscribe directly on your system.").EOL);
654 if(! function_exists('dfrn_request_content')) {
655 function dfrn_request_content(&$a) {
657 if(($a->argc != 2) || (! count($a->profile)))
661 // "Homecoming". Make sure we're logged in to this site as the correct user. Then offer a confirm button
662 // to send us to the post section to record the introduction.
664 if(x($_GET,'dfrn_url')) {
667 info( t("Please login to confirm introduction.") . EOL );
668 /* setup the return URL to come back to this page if they use openid */
669 $_SESSION['return_url'] = $a->query_string;
673 // Edge case, but can easily happen in the wild. This person is authenticated,
674 // but not as the person who needs to deal with this request.
676 if ($a->user['nickname'] != $a->argv[1]) {
677 notice( t("Incorrect identity currently logged in. Please login to <strong>this</strong> profile.") . EOL);
681 $dfrn_url = notags(trim(hex2bin($_GET['dfrn_url'])));
682 $aes_allow = (((x($_GET,'aes_allow')) && ($_GET['aes_allow'] == 1)) ? 1 : 0);
683 $confirm_key = (x($_GET,'confirm_key') ? $_GET['confirm_key'] : "");
685 // Checking fastlane for validity
686 if (x($_SESSION, "fastlane") AND (normalise_link($_SESSION["fastlane"]) == normalise_link($dfrn_url))) {
687 $_POST["dfrn_url"] = $dfrn_url;
688 $_POST["confirm_key"] = $confirm_key;
689 $_POST["localconfirm"] = 1;
690 $_POST["hidden-contact"] = 0;
691 $_POST["submit"] = t('Confirm');
693 dfrn_request_post($a);
696 return; // NOTREACHED
699 $tpl = get_markup_template("dfrn_req_confirm.tpl");
700 $o = replace_macros($tpl,array(
701 '$dfrn_url' => $dfrn_url,
702 '$aes_allow' => (($aes_allow) ? '<input type="hidden" name="aes_allow" value="1" />' : "" ),
703 '$hidethem' => t('Hide this contact'),
704 '$hidechecked' => '',
705 '$confirm_key' => $confirm_key,
706 '$welcome' => sprintf( t('Welcome home %s.'), $a->user['username']),
707 '$please' => sprintf( t('Please confirm your introduction/connection request to %s.'), $dfrn_url),
708 '$submit' => t('Confirm'),
709 '$uid' => $_SESSION['uid'],
710 '$nickname' => $a->user['nickname'],
711 'dfrn_rawurl' => $_GET['dfrn_url']
716 elseif((x($_GET,'confirm_key')) && strlen($_GET['confirm_key'])) {
718 // we are the requestee and it is now safe to send our user their introduction,
719 // We could just unblock it, but first we have to jump through a few hoops to
720 // send an email, or even to find out if we need to send an email.
722 $intro = q("SELECT * FROM `intro` WHERE `hash` = '%s' LIMIT 1",
723 dbesc($_GET['confirm_key'])
726 if(dbm::is_result($intro)) {
728 $auto_confirm = false;
730 $r = q("SELECT `contact`.*, `user`.* FROM `contact` LEFT JOIN `user` ON `contact`.`uid` = `user`.`uid`
731 WHERE `contact`.`id` = %d LIMIT 1",
732 intval($intro[0]['contact-id'])
735 if(dbm::is_result($r)) {
736 if(($r[0]['page-flags'] != PAGE_NORMAL) && ($r[0]['page-flags'] != PAGE_PRVGROUP))
737 $auto_confirm = true;
739 if(! $auto_confirm) {
742 'type' => NOTIFY_INTRO,
743 'notify_flags' => $r[0]['notify-flags'],
744 'language' => $r[0]['language'],
745 'to_name' => $r[0]['username'],
746 'to_email' => $r[0]['email'],
747 'uid' => $r[0]['uid'],
748 'link' => $a->get_baseurl() . '/notifications/intros',
749 'source_name' => ((strlen(stripslashes($r[0]['name']))) ? stripslashes($r[0]['name']) : t('[Name Withheld]')),
750 'source_link' => $r[0]['url'],
751 'source_photo' => $r[0]['photo'],
752 'verb' => ACTIVITY_REQ_FRIEND,
758 require_once('mod/dfrn_confirm.php');
760 'uid' => $r[0]['uid'],
761 'node' => $r[0]['nickname'],
762 'dfrn_id' => $r[0]['issued-id'],
763 'intro_id' => $intro[0]['id'],
764 'duplex' => (($r[0]['page-flags'] == PAGE_FREELOVE) ? 1 : 0),
765 'activity' => intval(get_pconfig($r[0]['uid'],'system','post_newfriend'))
767 dfrn_confirm_post($a,$handsfree);
772 if(! $auto_confirm) {
774 // If we are auto_confirming, this record will have already been nuked
775 // in dfrn_confirm_post()
777 $r = q("UPDATE `intro` SET `blocked` = 0 WHERE `hash` = '%s'",
778 dbesc($_GET['confirm_key'])
784 return; // NOTREACHED
789 * Normal web request. Display our user's introduction form.
792 if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
793 if(! get_config('system','local_block')) {
794 notice( t('Public access denied.') . EOL);
801 * Try to auto-fill the profile address
804 // At first look if an address was provided
805 // Otherwise take the local address
806 if (x($_GET,'addr') AND ($_GET['addr'] != ""))
807 $myaddr = hex2bin($_GET['addr']);
808 elseif (x($_GET,'address') AND ($_GET['address'] != ""))
809 $myaddr = $_GET['address'];
810 elseif(local_user()) {
811 if(strlen($a->path)) {
812 $myaddr = $a->get_baseurl() . '/profile/' . $a->user['nickname'];
815 $myaddr = $a->user['nickname'] . '@' . substr(z_root(), strpos(z_root(),'://') + 3 );
817 } else // last, try a zrl
818 $myaddr = get_my_url();
820 $target_addr = $a->profile['nickname'] . '@' . substr(z_root(), strpos(z_root(),'://') + 3 );
825 * The auto_request form only has the profile address
826 * because nobody is going to read the comments and
827 * it doesn't matter if they know you or not.
831 if($a->profile['page-flags'] == PAGE_NORMAL)
832 $tpl = get_markup_template('dfrn_request.tpl');
834 $tpl = get_markup_template('auto_request.tpl');
836 $page_desc = t("Please enter your 'Identity Address' from one of the following supported communications networks:");
838 // see if we are allowed to have NETWORK_MAIL2 contacts
840 $mail_disabled = ((function_exists('imap_open') && (! get_config('system','imap_disabled'))) ? 0 : 1);
841 if(get_config('system','dfrn_only'))
844 if(! $mail_disabled) {
845 $r = q("SELECT * FROM `mailacct` WHERE `uid` = %d LIMIT 1",
846 intval($a->profile['uid'])
852 // "coming soon" is disabled for now
853 //$emailnet = (($mail_disabled) ? '' : t("<strike>Connect as an email follower</strike> \x28Coming soon\x29"));
856 $invite_desc = sprintf(
857 t('If you are not yet a member of the free social web, <a href="%s/siteinfo">follow this link to find a public Friendica site and join us today</a>.'),
861 $o = replace_macros($tpl,array(
862 '$header' => t('Friend/Connection Request'),
863 '$desc' => t('Examples: jojo@demo.friendica.com, http://demo.friendica.com/profile/jojo, testuser@identi.ca'),
864 '$pls_answer' => t('Please answer the following:'),
865 '$does_know_you' => array('knowyou', sprintf(t('Does %s know you?'),$a->profile['name']), false, '', array(t('No'),t('Yes'))),
866 /*'$does_know' => sprintf( t('Does %s know you?'),$a->profile['name']),
869 '$add_note' => t('Add a personal note:'),
870 '$page_desc' => $page_desc,
871 '$friendica' => t('Friendica'),
872 '$statusnet' => t('StatusNet/Federated Social Web'),
873 '$diaspora' => t('Diaspora'),
874 '$diasnote' => sprintf (t(' - please do not use this form. Instead, enter %s into your Diaspora search bar.'),$target_addr),
875 '$your_address' => t('Your Identity Address:'),
876 '$invite_desc' => $invite_desc,
877 '$emailnet' => $emailnet,
878 '$submit' => t('Submit Request'),
879 '$cancel' => t('Cancel'),
880 '$nickname' => $a->argv[1],
881 '$name' => $a->profile['name'],
887 return; // Somebody is fishing.