From d1e1580223ab99b1ab4da3f840d9c37673367ea3 Mon Sep 17 00:00:00 2001 From: allo Date: Mon, 4 Jun 2007 15:36:10 +0000 Subject: [PATCH] Surftips Blacklist Blacklists List Hardcoded instead of only updated on firststart / migration.java git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3788 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/BlacklistCleaner_p.java | 3 ++- htroot/Blacklist_p.java | 3 ++- htroot/IndexControl_p.java | 3 ++- htroot/Surftips.java | 7 +++++++ htroot/sharedBlacklist_p.java | 3 ++- source/de/anomic/data/listManager.java | 8 ++++++-- .../de/anomic/plasma/urlPattern/abstractURLPattern.java | 4 +++- source/de/anomic/plasma/urlPattern/plasmaURLPattern.java | 1 + source/migration.java | 2 ++ yacy.init | 7 +------ 10 files changed, 28 insertions(+), 13 deletions(-) diff --git a/htroot/BlacklistCleaner_p.java b/htroot/BlacklistCleaner_p.java index e3f8ac573..82ac95754 100644 --- a/htroot/BlacklistCleaner_p.java +++ b/htroot/BlacklistCleaner_p.java @@ -63,6 +63,7 @@ import java.util.regex.PatternSyntaxException; import de.anomic.data.listManager; import de.anomic.http.httpHeader; import de.anomic.plasma.plasmaSwitchboard; +import de.anomic.plasma.urlPattern.abstractURLPattern; import de.anomic.plasma.urlPattern.defaultURLPattern; import de.anomic.plasma.urlPattern.plasmaURLPattern; import de.anomic.server.serverObjects; @@ -96,7 +97,7 @@ public class BlacklistCleaner_p { String blacklistToUse = null; // getting the list of supported blacklist types - String supportedBlacklistTypesStr = env.getConfig("BlackLists.types", ""); + String supportedBlacklistTypesStr = abstractURLPattern.BLACKLIST_TYPES_STRING; String[] supportedBlacklistTypes = supportedBlacklistTypesStr.split(","); if (post == null) { diff --git a/htroot/Blacklist_p.java b/htroot/Blacklist_p.java index a7cc017b5..e63d7f012 100644 --- a/htroot/Blacklist_p.java +++ b/htroot/Blacklist_p.java @@ -60,6 +60,7 @@ import java.util.TreeMap; import de.anomic.data.listManager; import de.anomic.http.httpHeader; import de.anomic.plasma.plasmaSwitchboard; +import de.anomic.plasma.urlPattern.abstractURLPattern; import de.anomic.server.serverObjects; import de.anomic.server.serverSwitch; import de.anomic.yacy.yacyCore; @@ -77,7 +78,7 @@ public class Blacklist_p { listManager.listsPath = new File(listManager.switchboard.getRootPath(),listManager.switchboard.getConfig("listManager.listsPath", "DATA/LISTS")); // getting the list of supported blacklist types - String supportedBlacklistTypesStr = env.getConfig("BlackLists.types", ""); + String supportedBlacklistTypesStr = abstractURLPattern.BLACKLIST_TYPES_STRING; String[] supportedBlacklistTypes = supportedBlacklistTypesStr.split(","); String blacklistToUse = null; diff --git a/htroot/IndexControl_p.java b/htroot/IndexControl_p.java index 39ae35e5b..4aa95927a 100644 --- a/htroot/IndexControl_p.java +++ b/htroot/IndexControl_p.java @@ -69,6 +69,7 @@ import de.anomic.kelondro.kelondroRotateIterator; import de.anomic.net.URL; import de.anomic.plasma.plasmaCondenser; import de.anomic.plasma.plasmaSwitchboard; +import de.anomic.plasma.urlPattern.abstractURLPattern; import de.anomic.plasma.urlPattern.plasmaURLPattern; import de.anomic.server.serverObjects; import de.anomic.server.serverSwitch; @@ -384,7 +385,7 @@ public class IndexControl_p { if (post.containsKey("blacklistdomains")) { PrintWriter pw; try { - String[] supportedBlacklistTypes = env.getConfig("BlackLists.types", "").split(","); + String[] supportedBlacklistTypes = abstractURLPattern.BLACKLIST_TYPES_STRING.split(","); pw = new PrintWriter(new FileWriter(new File(listManager.listsPath, blacklist), true)); URL url; for (int i=0; i