Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- fix for last commit
karlchenofhell93e1ad2bca12
diff --git a/htroot/robots.java b/htroot/robots.javaindex a48319161..219c54b7e 100644--- a/htroot/robots.java+++ b/htroot/robots.java@@ -32,12 +32,12 @@ public class robots {if (rbc.isLockedDisallowed() || rbc.isDirsDisallowed()) {final ArrayList[] p = getFiles(env.getConfig(plasmaSwitchboard.HTROOT_PATH, plasmaSwitchboard.HTROOT_PATH_DEFAULT));if (rbc.isLockedDisallowed()) {- prop.put(httpdRobotsTxtConfig.LOCKED, p[0].size());+ prop.put(httpdRobotsTxtConfig.ALL + "_" + httpdRobotsTxtConfig.LOCKED, p[0].size());for (int i=0; i<p[0].size(); i++)prop.put(httpdRobotsTxtConfig.ALL + "_" + httpdRobotsTxtConfig.LOCKED + "_" + i + "_page", p[0].get(i));}if (rbc.isDirsDisallowed()) {- prop.put(httpdRobotsTxtConfig.DIRS, p[1].size());+ prop.put(httpdRobotsTxtConfig.ALL + "_" + httpdRobotsTxtConfig.DIRS, p[1].size());for (int i=0; i<p[1].size(); i++)prop.put(httpdRobotsTxtConfig.ALL + "_" + httpdRobotsTxtConfig.DIRS + "_" + i + "_dir", p[1].get(i));}@@ -58,12 +58,12 @@ public class robots {if (htroots[i].equals("www")) continue;file = new File(htroot, htroots[i]);if (file.isDirectory()) {- htrootDirs.add("/" + file.getName());+ htrootDirs.add(htroots[i]);} else if ((dot = htroots[i].lastIndexOf('.')) < 2 ||htroots[i].charAt(dot - 2) == '_' && htroots[i].charAt(dot - 1) == 'p') {- htrootFiles.add("/" + file.getName());+ htrootFiles.add(htroots[i]);}}return new ArrayList[] { htrootFiles, htrootDirs };diff --git a/htroot/robots.txt b/htroot/robots.txtindex 80d5e5e5a..092143049 100644--- a/htroot/robots.txt+++ b/htroot/robots.txt@@ -4,13 +4,16 @@ User-agent: *#(all)#-#{dirs}## dirs-Disallow: /#[dir]##{/dirs}#+#{dirs}#+Disallow: /#[dir]#+#{/dirs}#+-#{locked}## locked-Disallow: /#[page]##{/locked}#+#{locked}#+Disallow: /#[page]#+#{/locked}##(wiki)#::# wiki