From b88a9584f8495a9a8bbb6a48d012a51c1470a674 Mon Sep 17 00:00:00 2001 From: allo Date: Thu, 13 Oct 2005 07:47:57 +0000 Subject: [PATCH] New Errorpage git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@928 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/proxymsg/proxylimits.inc | 3 +++ source/de/anomic/http/httpd.java | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 htroot/proxymsg/proxylimits.inc 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; } }