"firewall" setting - block all public pages from the public if configured to do so

This commit is contained in:
Friendika 2011-04-21 17:29:47 -07:00
commit 9e19eef194
7 changed files with 41 additions and 1 deletions

View file

@ -6,6 +6,10 @@ require_once('include/bbcode.php');
function photos_init(&$a) {
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
return;
}
$o = '';
if($a->argc > 1) {
@ -657,6 +661,12 @@ function photos_content(&$a) {
// photos/name/image/xxxxx/edit
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');