diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-06-08 16:55:17 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-06-08 16:55:17 -0700 |
commit | 39f0e6fe622b2080bede823d19b36c9961c64f1d (patch) | |
tree | b01cc44218380bd7e55647d48a59951cf58731ce /mod/public.php | |
parent | 5b482c1daf1774b185df1e165d04df3de21fb730 (diff) | |
download | volse-hubzilla-39f0e6fe622b2080bede823d19b36c9961c64f1d.tar.gz volse-hubzilla-39f0e6fe622b2080bede823d19b36c9961c64f1d.tar.bz2 volse-hubzilla-39f0e6fe622b2080bede823d19b36c9961c64f1d.zip |
add site_dead flag to prevent delivery to dead sites. Allow sys channel webpages to be viewed even if site is configured "block public".
Diffstat (limited to 'mod/public.php')
-rw-r--r-- | mod/public.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mod/public.php b/mod/public.php index 57c12e283..1f23a1999 100644 --- a/mod/public.php +++ b/mod/public.php @@ -60,17 +60,20 @@ function public_content(&$a, $update = 0, $load = false) { } require_once('include/identity.php'); + require_once('include/security.php'); if(get_config('system','site_firehose')) { - require_once('include/security.php'); $uids = " and item.uid in ( " . stream_perms_api_uids(PERMS_PUBLIC) . " ) and item_private = 0 and (item_flags & " . intval(ITEM_WALL) . " ) > 0 "; } else { $sys = get_sys_channel(); $uids = " and item.uid = " . intval($sys['channel_id']) . " "; + $sql_extra = item_permissions_sql($sys['channel_id']); $a->data['firehose'] = intval($sys['channel_id']); } + + $page_mode = 'list'; $simple_update = (($update) ? " and item.item_unseen = 1 " : ''); |