*) blacklist patch from lulabad

See: http://www.yacy-forum.de/viewtopic.php?p=15358#15358

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1383 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
theli 19 years ago
parent f4ffa9aee5
commit 91bc67edb5

@ -35,12 +35,12 @@ New list:
<input type="submit" name="newlistbutton" value="create">
</td>
<td valign="top" align="right">
<!--<input type="submit" name="activatelistbutton" value="Enable/disable this list"><br>
<input type="submit" name="activatelistbutton" value="Enable/disable this list"><br>
<input type="submit" name="sharelistbutton" value="Share/don't share this list"><br>
<input type="submit" name="dellistbutton" value="Delete this list"><br>-->
<input type="checkbox" name="proxylist" value="on" />active<br />
<input type="submit" name="dellistbutton" value="Delete this list"><br>
<!--<input type="checkbox" name="proxylist" value="on" />active<br />
<input type="checkbox" name="sharedlist" value="on" />shared<br />
<input type="submit" name="changebutton" value="Change"><br />
<input type="submit" name="changebutton" value="Change"><br />-->
<input type="submit" name="dellistbutton" value="Delete this list"><br />
</td>
</tr>

@ -128,21 +128,12 @@ public class Blacklist_p {
} catch (IOException e) {}
} else if (post.containsKey("changebutton")) {
if (post.containsKey("proxylist")){
if( !(post.get("proxylist").equals("on")) && listManager.ListInListslist(BLACKLIST_ACTIVE, filename) ){
} else if (post.containsKey("activatelistbutton")) {
if( listManager.ListInListslist(BLACKLIST_ACTIVE, filename) ) {
listManager.removeListFromListslist(BLACKLIST_ACTIVE, filename);
} else if ( post.get("proxylist").equals("on") && !(listManager.ListInListslist(BLACKLIST_ACTIVE, filename)) ) { // inactive list -> enable
} else { // inactive list -> enable
listManager.addListToListslist(BLACKLIST_ACTIVE, filename);
}
}
if (post.containsKey("sharedlist")){
if( !(post.get("sharedlist").equals("on")) && listManager.ListInListslist(BLACKLIST_SHARED, filename) ){
listManager.removeListFromListslist(BLACKLIST_SHARED, filename);
} else if ( post.get("sharedlist").equals("on") && !(listManager.ListInListslist(BLACKLIST_SHARED, filename)) ) { // inSHARED list -> enable
listManager.addListToListslist(BLACKLIST_SHARED, filename);
}
}
}
listManager.reloadBlacklists();
} else if (post.containsKey("sharelistbutton")) {

Loading…
Cancel
Save