diff options
author | Friendika <info@friendika.com> | 2011-04-21 17:29:47 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-04-21 17:29:47 -0700 |
commit | 9e19eef1941fff3e2a8785e5daa6d978e9de4900 (patch) | |
tree | 5027dce8811955f980f0ecb9fbaa37b8b720368b /mod/directory.php | |
parent | 1d4791d38c932548df0807f6d26290ea8346765e (diff) | |
download | volse-hubzilla-9e19eef1941fff3e2a8785e5daa6d978e9de4900.tar.gz volse-hubzilla-9e19eef1941fff3e2a8785e5daa6d978e9de4900.tar.bz2 volse-hubzilla-9e19eef1941fff3e2a8785e5daa6d978e9de4900.zip |
"firewall" setting - block all public pages from the public if configured to do so
Diffstat (limited to 'mod/directory.php')
-rw-r--r-- | mod/directory.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php index a02a4a4a5..95ddbda21 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -13,6 +13,12 @@ function directory_post(&$a) { function directory_content(&$a) { + + if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) { + notice( t('Public access denied.') . EOL); + return; + } + $o = ''; $o .= '<script> $(document).ready(function() { $(\'#nav-directory-link\').addClass(\'nav-selected\'); });</script>'; if(x($_SESSION,'theme')) |