aboutsummaryrefslogtreecommitdiffstats
path: root/mod/randprof.php
diff options
context:
space:
mode:
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');
+}