diff options
Diffstat (limited to 'mod/randprof.php')
-rw-r--r-- | mod/randprof.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/mod/randprof.php b/mod/randprof.php new file mode 100644 index 000000000..9817685c8 --- /dev/null +++ b/mod/randprof.php @@ -0,0 +1,12 @@ +<?php + + +function randprof_init(&$a) { + require_once('include/Contact.php'); + $x = random_profile(); + if($x) + goaway(chanlink_url($x)); + + /** FIXME this doesn't work at the moment as a fallback */ + goaway($a->get_baseurl() . '/profile'); +} |