diff options
Diffstat (limited to 'mod/display.php')
-rw-r--r-- | mod/display.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/display.php b/mod/display.php index c8496160f..fdb93e480 100644 --- a/mod/display.php +++ b/mod/display.php @@ -3,6 +3,11 @@ function display_content(&$a) { + 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'); |