aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-18 04:20:30 -0700
committerFriendika <info@friendika.com>2011-08-18 04:20:30 -0700
commitc534dd2969484625adda9cc82ad9d92664a96789 (patch)
treebebb059857e2e1cf13bcdcbca51c6be2a3dc55f7 /include/network.php
parentf561a82647701065d96724fd348c295aab155368 (diff)
downloadvolse-hubzilla-c534dd2969484625adda9cc82ad9d92664a96789.tar.gz
volse-hubzilla-c534dd2969484625adda9cc82ad9d92664a96789.tar.bz2
volse-hubzilla-c534dd2969484625adda9cc82ad9d92664a96789.zip
fill and expire fcontact cache
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/include/network.php b/include/network.php
index bbf1d6a63..ade8a40ac 100644
--- a/include/network.php
+++ b/include/network.php
@@ -693,3 +693,24 @@ function parse_xml_string($s,$strict = true) {
}
return $x;
}}
+
+function add_fcontact($arr) {
+
+ $r = q("insert into fcontact ( `url`,`name`,`photo`,`request`,`nick`,`addr`,
+ `notify`,`poll`,`confirm`,`network`,`alias`,`pubkey` )
+ values('%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s','%s')",
+ dbesc($arr['url']),
+ dbesc($arr['name']),
+ dbesc($arr['photo']),
+ dbesc($arr['request']),
+ dbesc($arr['nick']),
+ dbesc($arr['addr']),
+ dbesc($arr['notify']),
+ dbesc($arr['poll']),
+ dbesc($arr['confirm']),
+ dbesc($arr['network']),
+ dbesc($arr['alias']),
+ dbesc($arr['pubkey'])
+ );
+ return $r;
+}