mucho progress on notifier, email style dfrn url's

This commit is contained in:
Mike Macgirvin 2010-07-08 07:03:25 -07:00
parent e98aaa3cbd
commit 9a6a60a9c1
9 changed files with 181 additions and 34 deletions

View file

@ -166,6 +166,15 @@ function dfrn_request_post(&$a) {
return;
}
if(strstr($url,'@')) {
$username = substr($url,0,strpos($url,'@'));
$hostname = substr($url,strpos($url,'@') + 1);
require_once('Scrape.php');
$parms = scrape_meta('http://' . $url);
if((x($parms,'dfrn-template')) && strstr($parms['dfrn-template'],'%s'))
$url = sprintf($parms['dfrn-template'],$username);
}
$ret = q("SELECT * FROM `contact` WHERE `uid` = %d AND `url` = '%s' LIMIT 1",
intval($uid),