Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
small pi link on index page to administration pages
f1orifdc84d8319ef
diff --git a/defaults/yacy.init b/defaults/yacy.initindex d74529a1e..aa8e7f955 100644--- a/defaults/yacy.init+++ b/defaults/yacy.init@@ -893,6 +893,11 @@ publicSearchpage = true# to /Status.html to get the main memu bar backpublicTopmenu = true+# flag if a small link to the administration sites on the right bottom of the index+# page should be shown to all users.+# you might want to enabled this, if publicTopmenu is disabled+publicAdministratorPi = false+# Wiki access rights# the built-in wiki system allows by default only that the administrator is allowed to make changes# this can be changed. There are three options:diff --git a/htroot/index.html b/htroot/index.htmlindex 9338e3bc7..b866ca70c 100644--- a/htroot/index.html+++ b/htroot/index.html@@ -40,6 +40,10 @@#%env/templates/simpleheader.template%##(/topmenu)#+ #(pi)#::+ <div style="position:fixed; bottom: 0; right: 1px;"><a href="/Status.html">π</a></div>+ #(/pi)#+<h2 class="yacy"><a href="#[promoteSearchPageGreeting.homepage]#" class="yacylogo"><img src="#[promoteSearchPageGreeting.largeImage]#" alt="yacy" style="margin: auto;"/></a><br /><br />#[promoteSearchPageGreeting]#@@ -153,4 +157,4 @@<img src="cytag.png?icon=invisible&nick=yacyh_#[clientid]#&tag=search" alt=""/></p></body>-</html>\ No newline at end of file+</html>diff --git a/htroot/index.java b/htroot/index.javaindex 6414b972f..bb1736941 100644--- a/htroot/index.java+++ b/htroot/index.java@@ -117,6 +117,7 @@ public class index {prop.put("type", type);prop.put("depth", "0");prop.put("topmenu", sb.getConfigBool("publicTopmenu", true) ? 1 : 0);+ prop.put("pi", sb.getConfigBool("publicAdministratorPi", false) ? 1 : 0);prop.putHTML("constraint", constraint);prop.put("searchdomswitches", sb.getConfigBool("search.text", true) || sb.getConfigBool("search.audio", true) || sb.getConfigBool("search.video", true) || sb.getConfigBool("search.image", true) || sb.getConfigBool("search.app", true) ? 1 : 0);prop.put("searchdomswitches_searchtext", sb.getConfigBool("search.text", true) ? 1 : 0);