Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

add hint for consulting support

Michael Peter Christen6b133de3e967
diff --git a/htroot/Status.html b/htroot/Status.html
index 9a64059f6..30ff8123e 100644
--- a/htroot/Status.html
+++ b/htroot/Status.html
@@ -164,6 +164,12 @@
</dd>
#(/hintCrawlMonitor)#
+ #(hintSupport)#::
+ <dt class="hintIcon"><img src="env/grafics/idea.png" width="32" height="32" alt="idea"/></dt>
+ <dd class="hint">If you need professional support, please write to <tt>[email protected]</tt><br>For community support, please visit our <a href="http://forum.yacy.de">forum</a>.
+ </dd>
+ #(/hintSupport)#
+
<!-- Social Networking -->
<!--
<dt class="hintIcon"><img src="env/grafics/idea.png" width="32" height="32" alt="idea"/></dt>
diff --git a/htroot/Status.java b/htroot/Status.java
index 74858e834..dab7ef8a6 100644
--- a/htroot/Status.java
+++ b/htroot/Status.java
@@ -164,14 +164,18 @@ public class Status
prop.put("versionpp", versionstring);
// place some more hints
- if ( (adminaccess) && (sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() == 0) ) {
+ if (adminaccess && sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() == 0) {
prop.put("hintCrawlStart", "1");
}
- if ( (adminaccess) && (sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() > 500) ) {
+ if (adminaccess && sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() > 500) {
prop.put("hintCrawlMonitor", "1");
}
+ if (adminaccess && "intranet|webportal|allip".indexOf(env.getConfig(SwitchboardConstants.NETWORK_NAME, "unspecified")) >= 0) {
+ prop.put("hintSupport", "1");
+ }
+
// hostname and port
final String extendedPortString = sb.getConfig("port", "8090");
final int pos = extendedPortString.indexOf(':', 0);