b92fc24ff0
- Add Profile Object - Add User Model - Add use statements
17 lines
263 B
PHP
17 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');
|
|
}
|