Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
- corrected News menu (wrong headline) - changed order, appearance, naming of menues in main menu - implemented no-main-menu mode for blog and wiki (similar to simple search page) The YaCy wiki can now be embedded in iframes inside on web pages using the display option: i.e. http://localhost:8080/Wiki.html?display=2 http://localhost:8080/Blog.html?display=2
orbiter4934c5f4d356
diff --git a/htroot/Blog.html b/htroot/Blog.htmlindex 4a5b4fe50..59c40370e 100644--- a/htroot/Blog.html+++ b/htroot/Blog.html@@ -6,7 +6,13 @@<link rel="alternate" type="application/rss+xml" title="RSS" href="Blog.rss" /></head><body id="Blog">- #%env/templates/header.template%#+ #(display)#+ #%env/templates/simpleheader.template%#+ ::+ #%env/templates/header.template%#+ ::+ #%env/templates/embeddedheader.template%#+ #(/display)##(mode)#<!-- 0: viewing -->#{entries}#diff --git a/htroot/Blog.java b/htroot/Blog.javaindex f62c3b078..74474b5e0 100644--- a/htroot/Blog.java+++ b/htroot/Blog.java@@ -82,7 +82,11 @@ public class Blog {final serverObjects prop = new serverObjects();blogBoard.entry page = null;- boolean hasRights = switchboard.verifyAuthentication(header, true);+ final boolean authenticated = switchboard.adminAuthenticated(header) >= 2;+ final int display = ((post == null) || (!authenticated)) ? 0 : post.getInt("display", 0);+ prop.put("display", display);++ boolean hasRights = switchboard.verifyAuthentication(header, true);final boolean xml = ((String)header.get(httpHeader.CONNECTION_PROP_PATH)).endsWith(".xml");final String address = yacyCore.seedDB.mySeed.getPublicAddress();diff --git a/htroot/News.html b/htroot/News.htmlindex 170b4d114..58d94a024 100644--- a/htroot/News.html+++ b/htroot/News.html@@ -15,7 +15,7 @@<body id="News">#%env/templates/header.template%#<div class="SubMenu">- <h3>Network Menu</h3>+ <h3>News Menu</h3><ul class="SubMenu"><li><a href="/News.html" class="MenuItemLink">News Overview</a></li><li><a href="/News.html?page=1" class="MenuItemLink">Incoming News</a></li>diff --git a/htroot/Wiki.html b/htroot/Wiki.htmlindex 1d8367c66..8682cb8df 100644--- a/htroot/Wiki.html+++ b/htroot/Wiki.html@@ -5,7 +5,13 @@#%env/templates/metas.template%#</head><body id="Wiki">- #%env/templates/header.template%#+ #(display)#+ #%env/templates/simpleheader.template%#+ ::+ #%env/templates/header.template%#+ ::+ #%env/templates/embeddedheader.template%#+ #(/display)##(mode)#<!-- 0: viewing -->diff --git a/htroot/Wiki.java b/htroot/Wiki.javaindex bcf24d9ad..ea5b08047 100644--- a/htroot/Wiki.java+++ b/htroot/Wiki.java@@ -82,6 +82,10 @@ public class Wiki {post.put("page", "start");}+ final boolean authenticated = switchboard.adminAuthenticated(header) >= 2;+ final int display = ((post == null) || (!authenticated)) ? 0 : post.getInt("display", 0);+ prop.put("display", display);+String access = switchboard.getConfig("WikiAccess", "admin");String pagename = post.get("page", "start");String ip = post.get("CLIENTIP", "127.0.0.1");diff --git a/htroot/env/templates/header.template b/htroot/env/templates/header.templateindex 034c07383..9ade78b87 100644--- a/htroot/env/templates/header.template+++ b/htroot/env/templates/header.template@@ -25,8 +25,8 @@<h3>Monitoring</h3><ul class="menu"><li><a href="/Network.html" accesskey="w" class="MenuItemLink">YaCy Network</a></li>- <li><a href="/WatchCrawler_p.html" class="MenuItemLink lock">Crawler Monitor</a></li>- <li><a href="/IndexMonitor.html" class="MenuItemLink">Web Crawl Results</a></li>+ <li><a href="/WatchCrawler_p.html" class="MenuItemLink lock">Crawl Activity</a></li>+ <li><a href="/IndexMonitor.html" class="MenuItemLink">Crawl Results</a></li><li><a href="/SearchStatistics_p.html" class="MenuItemLink lock">Search Statistics</a></li><li><a href="/ViewLog_p.html" class="MenuItemLink lock">Server Log</a></li><li><a href="/Connections_p.html" class="MenuItemLink lock">Connections</a></li>@@ -38,11 +38,10 @@<li class="menugroup" id="menugroupCommunicationPublication"><h3>Your Web</h3><ul class="menu">- <li><a href="/www/" class="MenuItemLink">Home Page Demo</a></li>- <li><a href="/share/" class="MenuItemLink">Your File Share</a></li>- <li><a href="/Wiki.html" class="MenuItemLink">YaCy Wiki</a></li>- <li><a href="/Blog.html" class="MenuItemLink">YaCy Blog</a></li>- <li><a href="/Messages_p.html" class="MenuItemLink lock">Messages <img src="/notifier.gif" alt="New Messages" /></a></li>+ <li><a href="/Wiki.html?display=1" class="MenuItemLink">YaCy Wiki</a></li>+ <li><a href="/Blog.html?display=1" class="MenuItemLink">YaCy Blog</a></li>+ <li><a href="/Messages_p.html" class="MenuItemLink lock">YaCy Messages <img src="/notifier.gif" alt="New Messages" /></a></li>+ <li><a href="/share/" class="MenuItemLink">YaCy File Hosting</a></li></ul></li><li class="menugroup" id="menugroupPeerControl">