aboutsummaryrefslogtreecommitdiffstats
path: root/include/fcontact.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-03-10 20:39:27 -0700
committerfriendica <info@friendica.com>2013-03-10 20:39:27 -0700
commit26499981b6c18879cfb1d7ddb8321b965277a5fd (patch)
tree0268b6732aafe167e1036bc566c13a54d7854d99 /include/fcontact.php
parent952b2ef2ab256d46d616db70edc42ffe640a5e9d (diff)
downloadvolse-hubzilla-26499981b6c18879cfb1d7ddb8321b965277a5fd.tar.gz
volse-hubzilla-26499981b6c18879cfb1d7ddb8321b965277a5fd.tar.bz2
volse-hubzilla-26499981b6c18879cfb1d7ddb8321b965277a5fd.zip
cleanup
Diffstat (limited to 'include/fcontact.php')
-rw-r--r--include/fcontact.php41
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;
-}
-