<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"   %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>HOST BLOCKED</title>
	</head>
	<body>
		<h1>HOST BLOCKED</h1>
		<hr/>
		<hr/>
		<br/>
		You IP: <c:out value="${param['ip']}"/> has been
		<c:if test="${param['perm'] == null}">
			<form>
			<span style="color:red">temperaly blocked.</span><br/>
			Time to unblock:&nbsp;&nbsp;<input type="textfield" name="time" disabled/>&nbsp;&nbsp;in ms.<br/>
			<br/>
			<br/>
			</form>
		</c:if>
		<c:if test="${param['perm'] != null}">
			You are <span style="color:red">permenent blocked.</span><br/>
			<br/>
		</c:if>
			Please consult the IDCA crew howto unblock if u think its not your fault.<br/>
			(Bring some cold drinks. ;-)<br/>
		<br/>
		<hr/>
		<hr/>
		<br/>
		Last reason: <c:out value="${param['reason']}"/>
		<br/>
		
		<script type="text/javascript">	
			var time = <c:out value="${param['time']}"/>+30000;
			var obj = document.forms[0].elements[0];
			var timeInterval = 1795;
			doTime();
			
			function doTime()
			{
				time = time - timeInterval;
				if(time>0)
				{
					obj.value = time;
					setTimeout("doTime()",timeInterval);
					return;
				}
				window.location='/search';
			}
		</script>
	</body>
</html>