|
|
|
@ -28,6 +28,7 @@
|
|
|
|
|
// if the shell's current path is HTROOT
|
|
|
|
|
|
|
|
|
|
import java.io.IOException;
|
|
|
|
|
import java.net.InetAddress;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Collection;
|
|
|
|
|
import java.util.HashMap;
|
|
|
|
@ -120,8 +121,7 @@ public class yacysearch {
|
|
|
|
|
prop.put("topmenu", sb.getConfigBool("publicTopmenu", true) ? 1 : 0);
|
|
|
|
|
|
|
|
|
|
//get focus option
|
|
|
|
|
final boolean focus = (post == null) ? true : post.get("focus", "1").equals("1");
|
|
|
|
|
prop.put("focus", focus ? 1 : 0);
|
|
|
|
|
prop.put("focus", ((post == null) ? true : post.get("focus", "1").equals("1")) ? 1 : 0);
|
|
|
|
|
|
|
|
|
|
// produce vocabulary navigation sidebars
|
|
|
|
|
Collection<Vocabulary> vocabularies = LibraryProvider.autotagging.getVocabularies();
|
|
|
|
@ -1106,6 +1106,11 @@ public class yacysearch {
|
|
|
|
|
|
|
|
|
|
sb.localSearchLastAccess = System.currentTimeMillis();
|
|
|
|
|
|
|
|
|
|
// hostname and port (assume locahost if nothing helps)
|
|
|
|
|
final InetAddress hostIP = Domains.myPublicLocalIP();
|
|
|
|
|
prop.put("myhost", hostIP != null ? hostIP.getHostAddress() : "localhost");
|
|
|
|
|
prop.put("myport", serverCore.getPortNr(sb.getConfig("port", "8090")));
|
|
|
|
|
|
|
|
|
|
// return rewrite properties
|
|
|
|
|
return prop;
|
|
|
|
|
}
|
|
|
|
|