2012-04-13 08:06:41 +02:00
|
|
|
<?php
|
2017-11-15 16:53:16 +01:00
|
|
|
/**
|
|
|
|
* @file mod/nogroup.php
|
|
|
|
*/
|
2017-04-30 06:07:00 +02:00
|
|
|
use Friendica\App;
|
2018-01-10 04:42:04 +01:00
|
|
|
use Friendica\Content\ContactSelector;
|
2018-01-21 19:33:59 +01:00
|
|
|
use Friendica\Core\L10n;
|
2018-07-21 14:40:21 +02:00
|
|
|
use Friendica\Database\DBA;
|
2017-12-07 15:04:24 +01:00
|
|
|
use Friendica\Model\Contact;
|
2017-12-09 19:45:17 +01:00
|
|
|
use Friendica\Model\Group;
|
2018-07-10 00:36:50 +02:00
|
|
|
use Friendica\Core\System;
|
2017-04-30 06:07:00 +02:00
|
|
|
|
2017-11-15 16:53:16 +01:00
|
|
|
function nogroup_init(App $a)
|
|
|
|
{
|
2016-12-20 11:56:34 +01:00
|
|
|
if (! local_user()) {
|
2012-04-13 08:06:41 +02:00
|
|
|
return;
|
2016-12-20 11:56:34 +01:00
|
|
|
}
|
2012-04-13 08:06:41 +02:00
|
|
|
}
|
|
|
|
|
2017-11-15 16:53:16 +01:00
|
|
|
function nogroup_content(App $a)
|
|
|
|
{
|
2016-12-20 11:56:34 +01:00
|
|
|
if (! local_user()) {
|
2018-01-21 19:33:59 +01:00
|
|
|
notice(L10n::t('Permission denied.') . EOL);
|
2012-04-13 08:06:41 +02:00
|
|
|
return '';
|
|
|
|
}
|
|
|
|
|
2018-10-19 20:11:27 +02:00
|
|
|
$a->internalRedirect('group/none');
|
2012-04-13 08:06:41 +02:00
|
|
|
}
|