diff options
| author | Michael Peter Christen <mc@yacy.net> | 2012-04-19 11:10:48 +0200 |
|---|---|---|
| committer | Michael Peter Christen <mc@yacy.net> | 2012-04-19 11:10:48 +0200 |
| commit | 6b133de3e967e51c7a3354227b683eb6895c3de3 (patch) | |
| tree | e6461503e285d134e6f1b8e829eff698997117a1 | |
| parent | 4d5da75814873f444607d5a99fbf41e25a064c72 (diff) | |
add hint for consulting support
| -rw-r--r-- | htroot/Status.html | 6 | ||||
| -rw-r--r-- | htroot/Status.java | 8 |
2 files changed, 12 insertions, 2 deletions
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>support@yacy.net</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);
|
