diff --git a/htroot/SettingsAck_p.html b/htroot/SettingsAck_p.html index f8b1fd166..daedbbc1f 100644 --- a/htroot/SettingsAck_p.html +++ b/htroot/SettingsAck_p.html @@ -138,7 +138,11 @@ Seed Upload method was changed successfully.
Port Forwarding Settings changed, but something is wrong.
#[errormsg]#
Port Forwarding was deactivated automatically.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 39782c651..a0a34314c 100644 --- a/htroot/SettingsAck_p.java +++ b/htroot/SettingsAck_p.java @@ -297,10 +297,25 @@ public class SettingsAck_p { if (post.containsKey("pmode")) { env.setConfig("onlineMode", "2"); prop.put("info", 11);//permanent online mode + yacyCore.setOnlineMode(2); yacyCore.triggerOnlineAction(); return prop; } + if (post.containsKey("emode")) { + env.setConfig("onlineMode", "1"); + prop.put("info", 24);//event-based online mode + yacyCore.setOnlineMode(1); + return prop; + } + + if (post.containsKey("cmode")) { + env.setConfig("onlineMode", "0"); + prop.put("info", 25);//cache mode + yacyCore.setOnlineMode(0); + return prop; + } + if (post.containsKey("generalsettings")) { /* // set peer language diff --git a/htroot/Status.html b/htroot/Status.html index 474fa400f..07c6fc404 100644 --- a/htroot/Status.html +++ b/htroot/Status.html @@ -78,18 +78,30 @@ Last upload: #[lastUpload]# ago.