aboutsummaryrefslogtreecommitdiffstats
path: root/mod/randprof.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 /mod/randprof.php
parent0fa932853c76d8aca9fecf125d4c2d6816fb1a4a (diff)
downloadvolse-hubzilla-b02a671494b9278b338b015322df7896e4a71696.tar.gz
volse-hubzilla-b02a671494b9278b338b015322df7896e4a71696.tar.bz2
volse-hubzilla-b02a671494b9278b338b015322df7896e4a71696.zip
visit "random profile" feature
Diffstat (limited to 'mod/randprof.php')
-rw-r--r--mod/randprof.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/randprof.php b/mod/randprof.php
new file mode 100644
index 000000000..53d7425e9
--- /dev/null
+++ b/mod/randprof.php
@@ -0,0 +1,10 @@
+<?php
+
+
+function randprof_init(&$a) {
+ require_once('include/Contact.php');
+ $x = random_profile();
+ if($x)
+ goaway($x);
+ goaway($a->get_baseurl() . '/profile');
+}