diff options
Diffstat (limited to 'include/Contact.php')
-rw-r--r-- | include/Contact.php | 8 |
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 |