Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
new alert symbols
orbiter083c8ddc693b
diff --git a/htroot/Messages_p.java b/htroot/Messages_p.javaindex a8dc4dbd6..c214d8e4d 100644--- a/htroot/Messages_p.java+++ b/htroot/Messages_p.java@@ -76,7 +76,7 @@ public class Messages_p {messageBoard.entry message;// first reset notification- File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifierInactive.gif");+ File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/empty.gif");File notifierDest = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifier.gif");try {serverFileUtils.copy(notifierSource, notifierDest);} catch (IOException e) {};diff --git a/htroot/Network.html b/htroot/Network.htmlindex d44deb4c9..4a32d3edd 100644--- a/htroot/Network.html+++ b/htroot/Network.html@@ -38,7 +38,7 @@<p>Showing #[num]# entries from a total of #[total]# peers.<br><table border="0" cellpadding="2" cellspacing="1"><tr class="TableHeader" valign="bottom">-<td class="small">send <b>M</b>essage/<br>show <b>P</b>rofile/<br>edit <b>W</b>iki<br>(* = updated)</td>+<td class="small">send <b>M</b>essage/<br>show <b>P</b>rofile/<br>edit <b>W</b>iki<br> </td><td class="small"><b>Name</b><br> </td>#(complete)#::<td class="small"><b>Address</b><br> </td>@@ -61,10 +61,9 @@<td class="small"><b>#Connects<br>per hour</b><br> </td></tr>#{list}#<tr class="TableCell#(dark)#Light::Dark::Summary#(/dark)#">-<td class="small"><a href="MessageSend_p.html?hash=#[hash]#" class="small">m</a> - <a href="ViewProfile.html?hash=#[hash]#" class="small">p</a>#(updatedProfile)# ::*#(/updatedProfile)# - <a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small">w</a>#(updatedWiki)# ::*#(/updatedWiki)# - #(isCrawling)#::<a href="#[startURL]#" class="small">crawl</a>#(/isCrawling)#+<td class="small"><a href="MessageSend_p.html?hash=#[hash]#" class="small">m</a> + <a href="ViewProfile.html?hash=#[hash]#" class="small">p</a> + <a href="http://#[fullname]#.yacy/Wiki.html#[updatedWikiPage]#" class="small">w</a> #[alert]#</td><td class="small"><a href="http://www.#[fullname]#.yacy" class="small">#[shortname]#</a></td>#(complete)#diff --git a/htroot/Network.java b/htroot/Network.javaindex e9912aeb3..03c50296b 100644--- a/htroot/Network.java+++ b/htroot/Network.java@@ -257,27 +257,25 @@ public class Network {} else {prop.put("table_list_"+conCount+"_dark", ((dark) ? 1 : 0) ); dark=!dark;}- prop.put("table_list_"+conCount+"_updatedProfile", (((updatedProfile.contains(seed.hash))) ? 1 : 0));+ String alert = "";+ if (updatedProfile.contains(seed.hash)) {+ alert += "<a href=\"ViewProfile.html?hash=" + seed.hash + "\"><img border=\"0\" src=\"/env/grafics/profile.gif\" align=\"bottom\"></a>";+ }if ((wikiPage = (String) updatedWiki.get(seed.hash)) == null) {- prop.put("table_list_"+conCount+"_updatedWiki", 0);prop.put("table_list_"+conCount+"_updatedWikiPage", "");} else {- prop.put("table_list_"+conCount+"_updatedWiki", 1);prop.put("table_list_"+conCount+"_updatedWikiPage", "?page=" + wikiPage);+ alert += "<a href=\"http://" + seed.get("Name", "deadlink") + ".yacy/Wiki.html?page=" + wikiPage + "\"><img border=\"0\" src=\"/env/grafics/wiki.gif\" align=\"bottom\"></a>";}try {PPM = Integer.parseInt(seed.get("ISpeed", "-"));} catch (NumberFormatException ee) {PPM = 0;}- if (((startURL = (String) isCrawling.get(seed.hash)) == null) || (PPM < 10)) {- prop.put("table_list_"+conCount+"_isCrawling", 0);- prop.put("table_list_"+conCount+"_isCrawling_startURL", "");- } else {- prop.put("table_list_"+conCount+"_isCrawling", 1);- prop.put("table_list_"+conCount+"_isCrawling_startURL", startURL);+ if (((startURL = (String) isCrawling.get(seed.hash)) != null) && (PPM >= 10)) {+ alert += "<a href=\"" + startURL + "\"><img border=\"0\" src=\"/env/grafics/crawl.gif\" align=\"bottom\"></a>";}-+ prop.put("table_list_"+conCount+"_alert", alert);long links, words;try {links = Long.parseLong(seed.get("LCount", "0"));diff --git a/htroot/env/grafics/broadcast.gif b/htroot/env/grafics/broadcast.gifnew file mode 100644index 000000000..4ca560946Binary files /dev/null and b/htroot/env/grafics/broadcast.gif differdiff --git a/htroot/env/grafics/crawl.gif b/htroot/env/grafics/crawl.gifnew file mode 100644index 000000000..3bfd7dc5fBinary files /dev/null and b/htroot/env/grafics/crawl.gif differdiff --git a/htroot/env/grafics/notifier.gif b/htroot/env/grafics/empty.gifsimilarity index 100%rename from htroot/env/grafics/notifier.gifrename to htroot/env/grafics/empty.gifdiff --git a/htroot/env/grafics/message.gif b/htroot/env/grafics/message.gifnew file mode 100644index 000000000..1a5520f05Binary files /dev/null and b/htroot/env/grafics/message.gif differdiff --git a/htroot/env/grafics/notifierActive.gif b/htroot/env/grafics/notifierActive.gifdeleted file mode 100644index 761a15a99..000000000Binary files a/htroot/env/grafics/notifierActive.gif and /dev/null differdiff --git a/htroot/env/grafics/notifierInactive.gif b/htroot/env/grafics/notifierInactive.gifdeleted file mode 100644index 330c7e881..000000000Binary files a/htroot/env/grafics/notifierInactive.gif and /dev/null differdiff --git a/htroot/env/grafics/profile.gif b/htroot/env/grafics/profile.gifnew file mode 100644index 000000000..c1a90d0faBinary files /dev/null and b/htroot/env/grafics/profile.gif differdiff --git a/htroot/env/grafics/wiki.gif b/htroot/env/grafics/wiki.gifnew file mode 100644index 000000000..dd1f1add4Binary files /dev/null and b/htroot/env/grafics/wiki.gif differdiff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.templateindex 0ec302545..e725e307e 100644--- a/htroot/env/templates/header.template+++ b/htroot/env/templates/header.template@@ -54,7 +54,7 @@<tr><td class="MenuItem"> <a href="/www/" class="MenuItemLink">Home Page</a></td></tr><tr><td class="MenuItem"> <a href="/share/" class="MenuItemLink">File Share</a></td></tr><tr><td class="MenuItem"> <a href="/Wiki.html" class="MenuItemLink">Wiki</a></td></tr>- <tr><td class="MenuItem"> <img border="0" src="/env/grafics/lock.gif" align="top"> <a href="/Messages_p.html" class="MenuItemLink">Messages</a> <img border="0" src="/env/grafics/notifier.gif" align="bottom"></td></tr>+ <tr><td class="MenuItem"> <img border="0" src="/env/grafics/lock.gif" align="top"> <a href="/Messages_p.html" class="MenuItemLink">Messages</a> <img border="0" src="/env/grafics/notifier.gif" align="center"></td></tr><tr><td class="MenuItem"> <img border="0" src="/env/grafics/lock.gif" align="top"> <a href="/EditProfile_p.html" class="MenuItemLink">Personal Profile</a></td></tr><tr><td class="MenuSpacer"></td></tr>diff --git a/htroot/yacy/message.java b/htroot/yacy/message.javaindex 74a700b6e..4fe3522ff 100644--- a/htroot/yacy/message.java+++ b/htroot/yacy/message.java@@ -134,7 +134,7 @@ public class message {messageForwardingViaEmail(env,msgEntry);// finally write notification- File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifierActive.gif");+ File notifierSource = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/message.gif");File notifierDest = new File(switchboard.getRootPath(), switchboard.getConfig("htRootPath","htroot") + "/env/grafics/notifier.gif");try {serverFileUtils.copy(notifierSource, notifierDest);diff --git a/source/yacy.java b/source/yacy.javaindex 16f7d9ddd..635b76256 100644--- a/source/yacy.java+++ b/source/yacy.java@@ -222,6 +222,12 @@ public final class yacy {File htDocsPath = new File(sb.getRootPath(), sb.getConfig("htDocsPath", "DATA/HTDOCS"));File htTemplatePath = new File(sb.getRootPath(), sb.getConfig("htTemplatePath","htdocs"));+ // create default notifier picture+ if (!((new File(htRootPath, "env/pictures/notifier.gif")).exists())) try {+ serverFileUtils.copy(new File(htRootPath, "env/pictures/empty.gif"),+ new File(htRootPath, "env/pictures/notifier.gif"));+ } catch (IOException e) {}+if (!(htDocsPath.exists())) htDocsPath.mkdir();File htdocsDefaultReadme = new File(htDocsPath, "readme.txt");if (!(htdocsDefaultReadme.exists())) try {serverFileUtils.write((