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