friendica/mod/randprof.php
Hypolite Petovan b92fc24ff0 Add Contact Object
- Add Profile Object
- Add User Model
- Add use statements
2017-11-19 16:55:28 -05:00

18 lines
263 B
PHP

<?php
use Friendica\App;
use Friendica\Core\System;
use Friendica\Model\GlobalContact;
function randprof_init(App $a) {
require_once('include/Contact.php');
$x = random_profile();
if ($x) {
goaway(zrl($x));
}
goaway(System::baseUrl() . '/profile');
}