2012-04-13 02:06:41 -04:00
|
|
|
<?php
|
2017-11-15 10:53:16 -05:00
|
|
|
/**
|
|
|
|
* @file mod/nogroup.php
|
|
|
|
*/
|
2017-04-30 00:07:00 -04:00
|
|
|
use Friendica\App;
|
2018-01-21 13:33:59 -05:00
|
|
|
use Friendica\Core\L10n;
|
2017-04-30 00:07:00 -04:00
|
|
|
|
2017-11-15 10:53:16 -05:00
|
|
|
function nogroup_init(App $a)
|
|
|
|
{
|
2016-12-20 05:56:34 -05:00
|
|
|
if (! local_user()) {
|
2012-04-13 02:06:41 -04:00
|
|
|
return;
|
2016-12-20 05:56:34 -05:00
|
|
|
}
|
2012-04-13 02:06:41 -04:00
|
|
|
}
|
|
|
|
|
2017-11-15 10:53:16 -05:00
|
|
|
function nogroup_content(App $a)
|
|
|
|
{
|
2016-12-20 05:56:34 -05:00
|
|
|
if (! local_user()) {
|
2018-01-21 13:33:59 -05:00
|
|
|
notice(L10n::t('Permission denied.') . EOL);
|
2012-04-13 02:06:41 -04:00
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
2018-10-19 14:11:27 -04:00
|
|
|
$a->internalRedirect('group/none');
|
2012-04-13 02:06:41 -04:00
|
|
|
}
|