aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-04-21 17:29:47 -0700
committerFriendika <info@friendika.com>2011-04-21 17:29:47 -0700
commit9e19eef1941fff3e2a8785e5daa6d978e9de4900 (patch)
tree5027dce8811955f980f0ecb9fbaa37b8b720368b /mod/photos.php
parent1d4791d38c932548df0807f6d26290ea8346765e (diff)
downloadvolse-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/photos.php')
-rw-r--r--mod/photos.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 186873a7b..324ce898d 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -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');