]> git.mxchange.org Git - friendica.git/blob - mod/randprof.php
Add Contact Object
[friendica.git] / mod / randprof.php
1 <?php
2
3 use Friendica\App;
4 use Friendica\Core\System;
5 use Friendica\Model\GlobalContact;
6
7 function randprof_init(App $a) {
8         require_once('include/Contact.php');
9
10         $x = random_profile();
11
12         if ($x) {
13                 goaway(zrl($x));
14         }
15
16         goaway(System::baseUrl() . '/profile');
17 }