diff --git a/build.xml b/build.xml
index 97723f3bc..3e7b9e535 100644
--- a/build.xml
+++ b/build.xml
@@ -3,6 +3,7 @@
YaCy - a Peer to Peer search Engine
+
Peer names must not contain characters other than (a-z, A-Z, 0-9, '-', '_') and must not be longer than 80 characters.
-The settings have not been changed.#(/info)#
+The settings have not been changed.
+::
+The new parser settings where changed successfully.#(/info)#
You can now go back to the Settings page if you want to make more changes.
diff --git a/htroot/SettingsAck_p.java b/htroot/SettingsAck_p.java index b8792e931..637cfd901 100644 --- a/htroot/SettingsAck_p.java +++ b/htroot/SettingsAck_p.java @@ -46,6 +46,7 @@ import java.util.*; import java.io.*; import de.anomic.tools.*; +import de.anomic.plasma.plasmaSwitchboard; import de.anomic.server.*; import de.anomic.yacy.*; import de.anomic.http.*; @@ -251,6 +252,19 @@ public class SettingsAck_p { return prop; } + if (post.containsKey("parserSettings")) { + plasmaSwitchboard sb = (plasmaSwitchboard)env; + post.remove("parserSettings"); + + // activate all received parsers + Enumeration mimeTypeEnum = post.keys(); + sb.parser.setEnabledParserList(mimeTypeEnum); + + prop.put("info", 18); + return prop; + } + + // nothing made prop.put("info", 1);//no information submitted return prop; diff --git a/htroot/Settings_p.html b/htroot/Settings_p.html index bdeef009e..cfde67205 100644 --- a/htroot/Settings_p.html +++ b/htroot/Settings_p.html @@ -171,6 +171,24 @@ but only if there had been changes to the seed-list.