5 function fcontact_store($url,$name,$photo) {
7 $nurl = str_replace(array('https:','//www.'), array('http:','//'), $url);
9 $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1",
13 if (dbm::is_result($r))
16 $r = dba::insert('fcontact', array('url' => $nurl, 'name' => $name, 'photo' => $photo));
18 if (dbm::is_result($r)) {
19 $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1",
22 if (dbm::is_result($r))
29 function ffinder_store($uid,$cid,$fid) {
30 $r = dba::insert('ffinder', array('uid' => $uid, 'cid' => $cid, 'fid' => $fid));