Move App to src
[friendica.git/.git] / mod / randprof.php
1 <?php
2
3 use Friendica\App;
4
5 function randprof_init(App $a) {
6         require_once('include/Contact.php');
7
8         $x = random_profile();
9
10         if ($x) {
11                 goaway(zrl($x));
12         }
13
14         goaway(App::get_baseurl() . '/profile');
15 }