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 = q("INSERT INTO `fcontact` ( `url`, `name`, `photo` ) VALUES ( '%s', '%s', '%s' ) ",
22 if (dbm::is_result($r)) {
23 $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1",
26 if (dbm::is_result($r))
33 function ffinder_store($uid,$cid,$fid) {
34 $r = q("INSERT INTO `ffinder` ( `uid`, `cid`, `fid` ) VALUES ( %d, %d, %d ) ",