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