mirror of
https://github.com/friendica/friendica
synced 2025-09-04 20:09:55 +02:00
"firewall" setting - block all public pages from the public if configured to do so
This commit is contained in:
parent
1d4791d38c
commit
9e19eef194
7 changed files with 41 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
|||
|
||||
function profile_init(&$a) {
|
||||
|
||||
if((get_config('system','block_public')) && (! local_user()) && (! remote_user()))
|
||||
return;
|
||||
|
||||
if($a->argc > 1)
|
||||
$which = $a->argv[1];
|
||||
else {
|
||||
|
@ -48,6 +51,13 @@ function profile_init(&$a) {
|
|||
|
||||
function profile_content(&$a, $update = 0) {
|
||||
|
||||
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
|
||||
notice( t('Public access denied.') . EOL);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
require_once("include/bbcode.php");
|
||||
require_once('include/security.php');
|
||||
require_once('include/conversation.php');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue