From 9e19eef1941fff3e2a8785e5daa6d978e9de4900 Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 21 Apr 2011 17:29:47 -0700 Subject: "firewall" setting - block all public pages from the public if configured to do so --- mod/search.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mod/search.php') diff --git a/mod/search.php b/mod/search.php index 793a8c2bb..33032e183 100644 --- a/mod/search.php +++ b/mod/search.php @@ -9,6 +9,11 @@ function search_post(&$a) { function search_content(&$a) { + 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'); -- cgit v1.2.3