2012-04-10 23:50:31 -04:00
|
|
|
<?php
|
|
|
|
|
2017-04-30 00:07:00 -04:00
|
|
|
use Friendica\App;
|
2016-02-07 09:11:34 -05:00
|
|
|
|
2017-01-09 07:14:55 -05:00
|
|
|
function randprof_init(App $a) {
|
2012-04-10 23:50:31 -04:00
|
|
|
require_once('include/Contact.php');
|
2016-12-20 05:38:16 -05:00
|
|
|
|
2012-04-10 23:50:31 -04:00
|
|
|
$x = random_profile();
|
2016-12-20 05:38:16 -05:00
|
|
|
|
|
|
|
if ($x) {
|
2012-04-14 08:07:00 -04:00
|
|
|
goaway(zrl($x));
|
2016-12-20 05:38:16 -05:00
|
|
|
}
|
|
|
|
|
2016-12-19 08:26:13 -05:00
|
|
|
goaway(App::get_baseurl() . '/profile');
|
2012-04-10 23:50:31 -04:00
|
|
|
}
|