diff options
author | Thomas Willingham <founder@kakste.com> | 2013-03-14 22:50:30 +0000 |
---|---|---|
committer | Thomas Willingham <founder@kakste.com> | 2013-03-14 22:50:30 +0000 |
commit | d07971b909363dd82faee3e4b5a218cb21d376dc (patch) | |
tree | 1d4b76c4ed24bf3c8cbb81c73069eb8ab4b2644c /include/fcontact.php | |
parent | fbc5260995866c280fbc48bfb7899836f46136f4 (diff) | |
parent | ffcba3db81d85ae8bdc56f1772c7675aef56c78e (diff) | |
download | volse-hubzilla-d07971b909363dd82faee3e4b5a218cb21d376dc.tar.gz volse-hubzilla-d07971b909363dd82faee3e4b5a218cb21d376dc.tar.bz2 volse-hubzilla-d07971b909363dd82faee3e4b5a218cb21d376dc.zip |
Merge remote-tracking branch 'upstream/master'
Conflicts:
view/theme/redbasic/css/style.css
Diffstat (limited to 'include/fcontact.php')
-rw-r--r-- | include/fcontact.php | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/include/fcontact.php b/include/fcontact.php deleted file mode 100644 index 50ac5f3f3..000000000 --- a/include/fcontact.php +++ /dev/null @@ -1,41 +0,0 @@ -<?php /** @file */ - - - -function fcontact_store($url,$name,$photo) { - - $nurl = str_replace(array('https:','//www.'), array('http:','//'), $url); - - $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1", - dbesc($nurl) - ); - - if(count($r)) - return $r[0]['id']; - - $r = q("INSERT INTO `fcontact` ( `url`, `name`, `photo` ) VALUES ( '%s', '%s', '%s' ) ", - dbesc($nurl), - dbesc($name), - dbesc($photo) - ); - - if($r) { - $r = q("SELECT `id` FROM `fcontact` WHERE `url` = '%s' LIMIT 1", - dbesc($nurl) - ); - if(count($r)) - return $r[0]['id']; - } - - return 0; -} - -function ffinder_store($uid,$cid,$fid) { - $r = q("INSERT INTO `ffinder` ( `uid`, `cid`, `fid` ) VALUES ( %d, %d, %d ) ", - intval($uid), - intval($cid), - intval($fid) - ); - return $r; -} - |