diff options
Diffstat (limited to 'mod')
-rw-r--r-- | mod/profile.php | 2 | ||||
-rw-r--r-- | mod/randprof.php | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/mod/profile.php b/mod/profile.php index 68d73fba3..51f944412 100644 --- a/mod/profile.php +++ b/mod/profile.php @@ -14,7 +14,7 @@ function profile_init(&$a) { else { $r = q("select nickname from user where blocked = 0 and account_expired = 0 and verified = 1 order by rand() limit 1"); if(count($r)) { - $which = $r[0]['nickname']; + goaway($a->get_baseurl() . '/profile/' . $r[0]['nickname']); } else { notice( t('Requested profile is not available.') . EOL ); 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'); +} |