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