Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
* allow to force login for xbel, needed for yacybar
f1oria5a1f1936887
diff --git a/htroot/xml/bookmarks/xbel/xbel.java b/htroot/xml/bookmarks/xbel/xbel.javaindex 002370d4c..177b60328 100644--- a/htroot/xml/bookmarks/xbel/xbel.java+++ b/htroot/xml/bookmarks/xbel/xbel.java@@ -17,11 +17,19 @@ public class xbel {public static serverObjects respond(httpHeader header, serverObjects post, serverSwitch<?> env) {int count = 0;;-+prop.clear();switchboard = (plasmaSwitchboard) env;isAdmin=switchboard.verifyAuthentication(header, true);-++ if(post != null) {+ if(!isAdmin) {+ if(post.containsKey("login")) {+ prop.put("AUTHENTICATE","admin log-in");+ }+ }+ }+if(isAdmin) {count = recurseFolders(switchboard.bookmarksDB.getFolderList(isAdmin),"/",0,true,"");prop.put("xbel", count);@@ -79,4 +87,4 @@ public class xbel {}return count;}-}\ No newline at end of file+}