aboutsummaryrefslogtreecommitdiffstats
path: root/include/Contact.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-04-10 20:50:31 -0700
committerfriendica <info@friendica.com>2012-04-10 20:50:31 -0700
commitb02a671494b9278b338b015322df7896e4a71696 (patch)
treedce36262b95c5cccc0b8a219bc3401bec1a0378c /include/Contact.php
parent0fa932853c76d8aca9fecf125d4c2d6816fb1a4a (diff)
downloadvolse-hubzilla-b02a671494b9278b338b015322df7896e4a71696.tar.gz
volse-hubzilla-b02a671494b9278b338b015322df7896e4a71696.tar.bz2
volse-hubzilla-b02a671494b9278b338b015322df7896e4a71696.zip
visit "random profile" feature
Diffstat (limited to 'include/Contact.php')
-rw-r--r--include/Contact.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/Contact.php b/include/Contact.php
index d8d94b190..532ea2f95 100644
--- a/include/Contact.php
+++ b/include/Contact.php
@@ -158,3 +158,11 @@ function contact_photo_menu($contact) {
}
return $o;
}}
+
+
+function random_profile() {
+ $r = q("select url from gcontact where url like '%%://%%/profile/%%' order by rand() limit 1");
+ if(count($r))
+ return dirname($r[0]['url']);
+ return '';
+} \ No newline at end of file