mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 04:15:12 +00:00
20 lines
340 B
PHP
20 lines
340 B
PHP
<?php
|
|
|
|
namespace Code\Module;
|
|
|
|
use Code\Web\Controller;
|
|
|
|
class Randprof extends Controller
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
$x = random_profile();
|
|
if ($x) {
|
|
goaway(chanlink_hash($x));
|
|
}
|
|
|
|
/** FIXME this doesn't work at the moment as a fallback */
|
|
goaway(z_root() . '/profile');
|
|
}
|
|
}
|