"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
|
|
@ -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'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue