add hint for consulting support

pull/1/head
Michael Peter Christen 13 years ago
parent 4d5da75814
commit 6b133de3e9

@ -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>

@ -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);

Loading…
Cancel
Save