suggestion template
This commit is contained in:
parent
39b5263e35
commit
59d9070d13
2
boot.php
2
boot.php
|
@ -4,7 +4,7 @@ set_time_limit(0);
|
||||||
ini_set('pcre.backtrack_limit', 250000);
|
ini_set('pcre.backtrack_limit', 250000);
|
||||||
|
|
||||||
|
|
||||||
define ( 'FRIENDIKA_VERSION', '2.2.1020' );
|
define ( 'FRIENDIKA_VERSION', '2.2.1022' );
|
||||||
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
|
||||||
define ( 'DB_UPDATE_VERSION', 1067 );
|
define ( 'DB_UPDATE_VERSION', 1067 );
|
||||||
|
|
||||||
|
|
|
@ -171,7 +171,7 @@ function dfrn_notify_post(&$a) {
|
||||||
|
|
||||||
$r = q("SELECT * FROM `contact` WHERE `name` = '%s' AND `url` = '%s' AND `uid` = %d LIMIT 1",
|
$r = q("SELECT * FROM `contact` WHERE `name` = '%s' AND `url` = '%s' AND `uid` = %d LIMIT 1",
|
||||||
dbesc($fsugg['name']),
|
dbesc($fsugg['name']),
|
||||||
dbesc($fsuff['url']),
|
dbesc($fsugg['url']),
|
||||||
intval($fsugg['uid'])
|
intval($fsugg['uid'])
|
||||||
);
|
);
|
||||||
if(count($r))
|
if(count($r))
|
||||||
|
@ -182,7 +182,7 @@ function dfrn_notify_post(&$a) {
|
||||||
$fid = 0;
|
$fid = 0;
|
||||||
$r = q("SELECT * FROM `fcontact` WHERE `url` = '%s' AND `name` = '%s' AND `photo` = '%s' LIMIT 1",
|
$r = q("SELECT * FROM `fcontact` WHERE `url` = '%s' AND `name` = '%s' AND `photo` = '%s' LIMIT 1",
|
||||||
dbesc($fsugg['url']),
|
dbesc($fsugg['url']),
|
||||||
dbesc($fsuff['name']),
|
dbesc($fsugg['name']),
|
||||||
dbesc($fsugg['photo'])
|
dbesc($fsugg['photo'])
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
|
@ -190,13 +190,13 @@ function dfrn_notify_post(&$a) {
|
||||||
}
|
}
|
||||||
if(! $fid)
|
if(! $fid)
|
||||||
$r = q("INSERT INTO `fcontact` ( `name`,`url`,`photo` ) VALUES ( '%s', '%s', '%s' ) ",
|
$r = q("INSERT INTO `fcontact` ( `name`,`url`,`photo` ) VALUES ( '%s', '%s', '%s' ) ",
|
||||||
dbesc($fsuff['name']),
|
dbesc($fsugg['name']),
|
||||||
dbesc($fsugg['url']),
|
dbesc($fsugg['url']),
|
||||||
dbesc($fsugg['photo'])
|
dbesc($fsugg['photo'])
|
||||||
);
|
);
|
||||||
$r = q("SELECT * FROM `fcontact` WHERE `url` = '%s' AND `name` = '%s' AND `photo` = '%s' LIMIT 1",
|
$r = q("SELECT * FROM `fcontact` WHERE `url` = '%s' AND `name` = '%s' AND `photo` = '%s' LIMIT 1",
|
||||||
dbesc($fsugg['url']),
|
dbesc($fsugg['url']),
|
||||||
dbesc($fsuff['name']),
|
dbesc($fsugg['name']),
|
||||||
dbesc($fsugg['photo'])
|
dbesc($fsugg['photo'])
|
||||||
);
|
);
|
||||||
if(count($r)) {
|
if(count($r)) {
|
||||||
|
|
10
view/atom_suggest.tpl
Normal file
10
view/atom_suggest.tpl
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
|
||||||
|
<dfrn:suggest>
|
||||||
|
|
||||||
|
<dfrn:url>$url</dfrn:url>
|
||||||
|
<dfrn:name>$name</dfrn:name>
|
||||||
|
<dfrn:photo>$photo</dfrn:photo>
|
||||||
|
<dfrn:note>$note</dfrn:note>
|
||||||
|
|
||||||
|
</dfrn:suggest>
|
||||||
|
|
Loading…
Reference in a new issue