aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-01-19 23:48:26 +0000
committerThomas Willingham <founder@kakste.com>2014-01-19 23:48:26 +0000
commite9ce68559e7f552b6ef738eaf7f9025813eb82ad (patch)
tree35b7a3017a6180b11a2de7012e1a8082e7c32ad2 /mod
parent3459c717d4c70b197cce00da49984b1482de8f18 (diff)
downloadvolse-hubzilla-e9ce68559e7f552b6ef738eaf7f9025813eb82ad.tar.gz
volse-hubzilla-e9ce68559e7f552b6ef738eaf7f9025813eb82ad.tar.bz2
volse-hubzilla-e9ce68559e7f552b6ef738eaf7f9025813eb82ad.zip
Stop Google DDoSing me by providing block_public_search, which unlike
block_public will block *only* searching without an observer.
Diffstat (limited to 'mod')
-rw-r--r--mod/search.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/mod/search.php b/mod/search.php
index d13c613c2..22e521164 100644
--- a/mod/search.php
+++ b/mod/search.php
@@ -8,11 +8,12 @@ function search_init(&$a) {
function search_content(&$a,$update = 0, $load = false) {
- if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
- notice( t('Public access denied.') . EOL);
+ if((get_config('system','block_public')) || (get_config('system','block_public_search'))) {
+ if ((! local_user()) && (! remote_user())) {
+ notice( t('Public access denied.') . EOL);
return;
+ }
}
-
nav_set_selected('search');
require_once("include/bbcode.php");