friendica/mod/randprof.php

17 lines
228 B
PHP
Raw Normal View History

2012-04-11 03:50:31 +00:00
<?php
use Friendica\App;
2017-08-26 06:04:21 +00:00
use Friendica\Core\System;
function randprof_init(App $a) {
2012-04-11 03:50:31 +00:00
require_once('include/Contact.php');
2012-04-11 03:50:31 +00:00
$x = random_profile();
if ($x) {
2012-04-14 12:07:00 +00:00
goaway(zrl($x));
}
goaway(System::baseUrl() . '/profile');
2012-04-11 03:50:31 +00:00
}