Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

New Errorpage

allob88a9584f849
diff --git a/htroot/proxymsg/proxylimits.inc b/htroot/proxymsg/proxylimits.inc
new file mode 100644
index 000000000..a8b452493
--- /dev/null
+++ b/htroot/proxymsg/proxylimits.inc
@@ -0,0 +1,3 @@
+#(limit)#
+Your Timelimit (#[timelimit]# Minutes per Day) is reached.
+#(/limit)#
diff --git a/source/de/anomic/http/httpd.java b/source/de/anomic/http/httpd.java
index 781effd67..4c1071d1b 100644
--- a/source/de/anomic/http/httpd.java
+++ b/source/de/anomic/http/httpd.java
@@ -329,7 +329,10 @@ public final class httpd implements serverHandler {
if(entry.canSurf()){
return true;
} else {
- sendRespondError(this.prop,this.session.out,5,403,null, "Internet-Timelimit reached", null);
+ HashMap tp=new HashMap();
+ tp.put("limit", "0");//time per day
+ tp.put("limit_timelimit", entry.getTimeLimit());
+ sendRespondError(this.prop, this.session.out, 403, "Internet-Timelimit reached", new File("proxymsg/proxylimits.inc"), tp, null);
return false;
}
}