modifié: superTornado.py
This commit is contained in:
parent
95dee009b9
commit
a4be574bab
@ -31,7 +31,7 @@ class MainHandler(BaseHandler):
|
|||||||
autorise = login.connexion(iden, mdp)
|
autorise = login.connexion(iden, mdp)
|
||||||
#maison = httplib.HTTPConnection("192.168.16.150", 80)
|
#maison = httplib.HTTPConnection("192.168.16.150", 80)
|
||||||
if autorise == True:
|
if autorise == True:
|
||||||
ficLog.enregDansLog(iden,"Authorized user connection","IP TO DO")
|
ficLog.enregDansLog(iden,"Authorized user connection",self.remote_ip())
|
||||||
if confAveug == True:
|
if confAveug == True:
|
||||||
print '->Send audio alarm authorized user'
|
print '->Send audio alarm authorized user'
|
||||||
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")'
|
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")'
|
||||||
@ -60,7 +60,7 @@ class UnauthorizedHandler(BaseHandler):
|
|||||||
force = self.get_argument("illegalAccess","")
|
force = self.get_argument("illegalAccess","")
|
||||||
if force == "1" :
|
if force == "1" :
|
||||||
self.set_secure_cookie("user", "illegalUser")
|
self.set_secure_cookie("user", "illegalUser")
|
||||||
ficLog.enregDansLog(iden,"Unauthorized user connection","IP TO DO")
|
ficLog.enregDansLog("illegalUser","Unauthorized user connection",self.remote_ip())
|
||||||
if confAveug == True:
|
if confAveug == True:
|
||||||
print '->Send audio alarm unauthorized user'
|
print '->Send audio alarm unauthorized user'
|
||||||
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")'
|
print 'maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")'
|
||||||
|
Reference in New Issue
Block a user