modifié: superTornado.py
This commit is contained in:
parent
91d27e848b
commit
d483ea750d
@ -89,8 +89,8 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||
return
|
||||
log.printL("->Websocket opened : " + self.request.remote_ip,25)
|
||||
iden = self.current_user
|
||||
if self.get_autorisation == "yes":
|
||||
log.printL(iden + ",Authorized user connection,"+self.request.remote_ip,20)
|
||||
if self.autorisation == "yes":
|
||||
log.printL("->"iden + " : Authorized user connection : "+self.request.remote_ip,20)
|
||||
if blind == True:
|
||||
log.printL('->Send audio alarm authorized user',20)
|
||||
log.printL('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20autorisee")',10)
|
||||
@ -98,7 +98,7 @@ class WSocketHandler(BaseHandler,tornado.websocket.WebSocketHandler):
|
||||
log.printL('->Send visual alarm authorized user',20)
|
||||
log.printL('maison.request("GET", "micom/lamp.php?room=salon1&order=1")',10)
|
||||
else :
|
||||
log.printL(iden + " as IllegalUser,Unauthorized user connection" + self.request.remote_ip,30)
|
||||
log.printL("->"iden + " as IllegalUser : Unauthorized user connection : " + self.request.remote_ip,30)
|
||||
if blind == True:
|
||||
log.printL('->Send audio alarm unauthorized user',30)
|
||||
log.printL('maison.request("GET", "micom/say.php?source=toto&text=Connection%20a%20la%20camera%20non%20autorisee")',10)
|
||||
|
Reference in New Issue
Block a user