2012-04-11 03:50:31 +00:00
|
|
|
<?php
|
|
|
|
|
2017-04-30 04:07:00 +00:00
|
|
|
use Friendica\App;
|
2017-08-26 06:04:21 +00:00
|
|
|
use Friendica\Core\System;
|
2017-11-19 21:55:28 +00:00
|
|
|
use Friendica\Model\GlobalContact;
|
2016-02-07 14:11:34 +00:00
|
|
|
|
2017-01-09 12:14:55 +00:00
|
|
|
function randprof_init(App $a) {
|
2012-04-11 03:50:31 +00:00
|
|
|
require_once('include/Contact.php');
|
2016-12-20 10:38:16 +00:00
|
|
|
|
2012-04-11 03:50:31 +00:00
|
|
|
$x = random_profile();
|
2016-12-20 10:38:16 +00:00
|
|
|
|
|
|
|
if ($x) {
|
2012-04-14 12:07:00 +00:00
|
|
|
goaway(zrl($x));
|
2016-12-20 10:38:16 +00:00
|
|
|
}
|
|
|
|
|
2017-08-26 07:32:10 +00:00
|
|
|
goaway(System::baseUrl() . '/profile');
|
2012-04-11 03:50:31 +00:00
|
|
|
}
|