#!/usr/bin/env python
import cgi 
form = cgi.FieldStorage()
passwd = form.getfirst("Passwd", "no") 
print("Content-type: text/html\n") 
if passwd == "ProxyPass123":
	print("<meta http-equiv='refresh' content='0;main.py'>")
else:
	print("<p>Access deny!</p>")
	print("<p>Wrong password!</p>")
	print("<p><a href='auth.py'>Return back</a></p>")
	print("<meta http-equiv='refresh' content='5;auth.py'>")
