* Scrape the other site's profile page to pick up the dfrn links, key, fn, and photo
*/
- require_once('Scrape.php');
+ require_once('include/Scrape.php');
$parms = scrape_dfrn($dfrn_url);
info( t("Introduction complete.") . EOL);
}
- $r = q("select id from contact where uid = %d and url = '%s' and `site-pubkey` = '%s limit 1",
+ $r = q("select id from contact where uid = %d and url = '%s' and `site-pubkey` = '%s' limit 1",
intval(local_user()),
dbesc($dfrn_url),
$parms['key'] // this was already escaped
intval($uid)
);
if(! count($r)) {
+
notice( t('This account has not been configured for email. Request failed.') . EOL);
return;
}
}
- require_once('Scrape.php');
+ require_once('include/Scrape.php');
$parms = scrape_dfrn(($hcard) ? $hcard : $url);
*
*/
- $url = str_replace('{uri}', $a->get_baseurl() . '/dfrn_poll/' . $nickname, $url);
+ $url = str_replace('{uri}', $a->get_baseurl() . '/profile/' . $nickname, $url);
goaway($url);
// NOTREACHED
// END $network === NETWORK_OSTATUS
*/
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
- notice( t('Public access denied.') . EOL);
- return;
+ if(! get_config('system','local_block')) {
+ notice( t('Public access denied.') . EOL);
+ return;
+ }
}