Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
new Class for UserAccounts
allo9e1485c13bf6
diff --git a/source/de/anomic/http/httpdProxyAccount.java b/source/de/anomic/http/httpdProxyAccount.javanew file mode 100644index 000000000..b38a02185--- /dev/null+++ b/source/de/anomic/http/httpdProxyAccount.java@@ -0,0 +1,22 @@+import java.net.InetAddress;++public final class httpdProxyAccount {+ String username;+ InetAddress ip;+ int timeLimit; //max. Time for this user+ int timeUsed;+ boolean timeBlock; //count linear or only activity?++ public httpdProxyAccount(InetAddress myip){+ ip=myip;+ timeLimit=0;+ timeUsed=0;+ timeBlock=false;+ }+ public httpdProxyAccount(InetAddress myip, int mytimeLimit){+ ip=myip;+ timeLimit=mytimeLimit;+ timeUsed=0;+ timeBlock=false;+ }+}diff --git a/source/de/anomic/http/httpdProxyHandler.java b/source/de/anomic/http/httpdProxyHandler.javaindex 3ee2ff179..9992e521f 100644--- a/source/de/anomic/http/httpdProxyHandler.java+++ b/source/de/anomic/http/httpdProxyHandler.java@@ -119,6 +119,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements httprivate File htRootPath = null;private static boolean doAccessLogging = false;+ private static HashSet users = null;/*** Do logging configuration for special proxy access log file@@ -168,6 +169,7 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htt} catch (Exception e) {serverLog.logSevere("PROXY","Unable to configure proxy access logging.",e);}+ users = new HashSet();}/**@@ -1391,4 +1393,4 @@ public final class httpdProxyHandler extends httpdAbstractHandler implements htthttp://xlists.aza.org/moderator/cookietest/cookietest1.phphttp://vancouver-webpages.com/proxy/cache-test.html- */\ No newline at end of file+ */