Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
removed HTML from .java
alloe575e5791851
diff --git a/htroot/Network.html b/htroot/Network.htmlindex 46e219d4a..13e7d41f9 100644--- a/htroot/Network.html+++ b/htroot/Network.html@@ -65,9 +65,13 @@</tr>#{list}#<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">-<td class="small"><a href="MessageSend_p.html?hash=#[hash]#" class="small" title="Send message to peer #[fullname]#">m</a> - <a href="ViewProfile.html?hash=#[hash]#" class="small" title="View profile of peer #[fullname]#">p</a> - <a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small" title="Read and edit wiki on peer #[fullname]#">w</a> #[alert]#+<td class="small">+ <a href="MessageSend_p.html?hash=#[hash]#" class="small" title="Send message to peer #[fullname]#">m</a> + <a href="ViewProfile.html?hash=#[hash]#" class="small" title="View profile of peer #[fullname]#">p</a> + <a href="http://#[fullname]#.yacy/Wiki.html" class="small" title="Read and edit wiki on peer #[fullname]#">w</a> + #(updatedProfile)#::<a href="ViewProfile.html?hash=#[hash]#"><img border="0" src="/env/grafics/profile.gif" align="bottom"></a>#(/updatedProfile)#+ #(updatedWikiPage)#::<a href="http://#[name]#.yacy/Wiki.html?page=#[page]#"><img border="0" src="/env/grafics/wiki.gif" align="bottom"></a>#(/updatedWikiPage)#+ #(isCrawling)#::<a href="#[page]#"><img border="0" src="/env/grafics/crawl.gif" align="bottom"></a>#(/isCrawling)#</td><td class="small"><a href="http://www.#[fullname]#.yacy" class="small">#[shortname]#</a></td><td class="small">diff --git a/htroot/Network.java b/htroot/Network.javaindex 5b6d7e137..c90d3f569 100644--- a/htroot/Network.java+++ b/htroot/Network.java@@ -270,26 +270,28 @@ public class Network {String startURL;String wikiPage;String userAgent, location;- final StringBuffer alert = new StringBuffer();int PPM;while (e.hasMoreElements() && conCount < maxCount) {seed = (yacySeed) e.nextElement();if (seed != null) {+ prop.put(STR_TABLE_LIST + conCount + "_updatedProfile", 0);+ prop.put(STR_TABLE_LIST + conCount + "_updatedWikiPage", 0);+ prop.put(STR_TABLE_LIST + conCount + "_isCrawling", 0);if (conCount >= maxCount) { break; }if (seed.hash.equals(yacyCore.seedDB.mySeed.hash)) {prop.put(STR_TABLE_LIST + conCount + "_dark", 2);} else {prop.put(STR_TABLE_LIST + conCount + "_dark", ((dark) ? 1 : 0) ); dark=!dark;}- alert.setLength(0);if (updatedProfile.contains(seed.hash)) {- alert.append("<a href=\"ViewProfile.html?hash=").append(seed.hash).append("\"><img border=\"0\" src=\"/env/grafics/profile.gif\" align=\"bottom\"></a>");+ prop.put(STR_TABLE_LIST + conCount + "_updatedProfile", 1);+ prop.put(STR_TABLE_LIST + conCount + "_updatedProfile_hash", seed.hash);}if ((wikiPage = (String) updatedWiki.get(seed.hash)) == null) {- prop.put(STR_TABLE_LIST + conCount + "_updatedWikiPage", "");+ prop.put(STR_TABLE_LIST + conCount + "_updatedWikiPage", 0);} else {- prop.put(STR_TABLE_LIST + conCount + "_updatedWikiPage", "?page=" + wikiPage);- alert.append("<a href=\"http://").append(seed.get(yacySeed.NAME, "deadlink")).append(".yacy/Wiki.html?page=").append(wikiPage).append("\"><img border=\"0\" src=\"/env/grafics/wiki.gif\" align=\"bottom\"></a>");+ prop.put(STR_TABLE_LIST + conCount + "_updatedWikiPage_page", wikiPage);+ prop.put(STR_TABLE_LIST + conCount + "_updatedWikiPage_name", seed.get(yacySeed.NAME, "deadlink"));}try {PPM = Integer.parseInt(seed.get(yacySeed.ISPEED, "-"));@@ -297,9 +299,9 @@ public class Network {PPM = 0;}if (((startURL = (String) isCrawling.get(seed.hash)) != null) && (PPM >= 10)) {- alert.append("<a href=\"").append(startURL).append("\"><img border=\"0\" src=\"/env/grafics/crawl.gif\" align=\"bottom\"></a>");+ prop.put(STR_TABLE_LIST + conCount + "_isCrawling", 1);+ prop.put(STR_TABLE_LIST + conCount + "_isCrawling_page", startURL);;}- prop.put(STR_TABLE_LIST + conCount + "_alert", alert.toString());prop.put(STR_TABLE_LIST + conCount + "_hash", seed.hash);String shortname = seed.get(yacySeed.NAME, "deadlink");if (shortname.length() > 20) {