From b88379ebc65294e93ec7af0c33ecfa24446e435a Mon Sep 17 00:00:00 2001 From: sidya82 Date: Thu, 27 Feb 2014 23:42:47 +0100 Subject: [PATCH] =?UTF-8?q?=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20ille?= =?UTF-8?q?gal.html=20=09modifi=C3=A9:=20=20=20=20=20=20=20=20=20superTorn?= =?UTF-8?q?ado.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- illegal.html | 4 ++-- superTornado.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/illegal.html b/illegal.html index 2af0506..433865b 100644 --- a/illegal.html +++ b/illegal.html @@ -9,8 +9,8 @@

Acces securise camera

Forcer l'acces a la camera :

- Oui - Non :
+ Oui : + Non :
diff --git a/superTornado.py b/superTornado.py index ecd6191..0e7e649 100644 --- a/superTornado.py +++ b/superTornado.py @@ -47,7 +47,7 @@ class MainHandler(BaseHandler): print '->Send visual alarm unauthorized user' print 'maison.request("GET", "micom/lamp.php?room=salon1&order=1")' print "->An unauthorized user try to access" - self.redirect("/illegal.html") + self.redirect("/unauthorized") class VideoHandler(BaseHandler): def get(self): @@ -61,7 +61,7 @@ class UnauthorizedHandler(BaseHandler): def get(self): self.render("illegal.html") def post(self): - force = self.get_argument("id","") + force = self.get_argument("illegalAccess","") if force == 1 : self.set_secure_cookie("user", "illegalUser") else :