From ee42079685dd4df721b1090bdaa0d86316e3358a Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 2 Feb 2014 21:25:52 -0800 Subject: The problem with a lot of packages is that it's easier to re-write them than to re-use them. --- include/spam.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 include/spam.php (limited to 'include/spam.php') diff --git a/include/spam.php b/include/spam.php new file mode 100644 index 000000000..8b158b7ae --- /dev/null +++ b/include/spam.php @@ -0,0 +1,35 @@ + 2) + $ret[] = substr($y,0,64); + } + } + return $ret; +} + + + +function get_words($uid,$list) { + + stringify($list,true); + + $r = q("select * from spam where term in ( " . $list . ") and uid = %d", + intval($uid) + ); + + return $r; +} + -- cgit v1.2.3