- new authorization rule: localhost is always authorized for administration. This solves many problems with ajax, and also fixed a problem in rssTerminal
- fix bug in RSSFeed which prevented that entries had been recognized as individual, new entries
- added reloading/updating of status image on status page
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4796 6c8d7289-2bf4-0310-a012-ef5d649a1542
// security check against too long authorization strings
if(authorization.length()>256)return0;
// authorization by encoded password, only for localhost access
if((((String)header.get(httpHeader.CONNECTION_PROP_CLIENTIP,"")).equals("localhost"))&&(adminAccountBase64MD5.equals(authorization)))return3;// soft-authenticated for localhost
if((clientIP.equals("localhost")||clientIP.startsWith("0:0:0:0:0:0:0:1"))/*&& (adminAccountBase64MD5.equals(authorization))*/)return3;// soft-authenticated for localhost
// authorization by hit in userDB
if(userDB.hasAdminRight((String)header.get(httpHeader.AUTHORIZATION,"xxxxxx"),((String)header.get(httpHeader.CONNECTION_PROP_CLIENTIP,"")),header.getHeaderCookies()))return4;//return, because 4=max
RSSFeed.channels((entry.initiator().equals(seedDB.mySeed().hash))?RSSFeed.LOCALINDEXING:RSSFeed.REMOTEINDEXING).addMessage(newRSSMessage("Indexed web page","",entry.url().toNormalform(true,false)));
RSSFeed.channels((entry.initiator().equals(seedDB.mySeed().hash))?RSSFeed.LOCALINDEXING:RSSFeed.REMOTEINDEXING).addMessage(newRSSMessage("Indexed web page",dc_title,entry.url().toNormalform(true,false)));