24 h de deconnexion
darcs-hash:20060117222006-6d78a-b73847dd64da47f0e005ab0730facfcbd7ce1398.gz
This commit is contained in:
parent
549dad8c93
commit
bd39e71db7
1 changed files with 5 additions and 5 deletions
|
@ -453,12 +453,12 @@ for ip, id_p2p, nombre in fraudeurs :
|
||||||
################################
|
################################
|
||||||
corps = p2p.deconnection % {'From':upload.expediteur, 'To':proprio.email(), 'protocole': protocole, 'hostname':hostname}
|
corps = p2p.deconnection % {'From':upload.expediteur, 'To':proprio.email(), 'protocole': protocole, 'hostname':hostname}
|
||||||
corps = corps.encode('iso 8859-15')
|
corps = corps.encode('iso 8859-15')
|
||||||
mail.sendmail(upload.expediteur,proprio.email(),corps)
|
#mail.sendmail(upload.expediteur,proprio.email(),corps)
|
||||||
|
|
||||||
# Blacklistage
|
# Blacklistage
|
||||||
date = time()
|
debut = localtime(time())
|
||||||
debut = localtime(date)
|
|
||||||
#7 jours
|
#7 jours
|
||||||
fin = localtime(date+60*60*24*7)
|
fin = localtime(time()+60*60*24)
|
||||||
proprio.blacklist(["%d/%d/%d %d:%d" % (debut[2],debut[1],debut[0],debut[3],debut[4]),"%d/%d/%d %d:%d" % (fin[2],fin[1],fin[0],fin[3],fin[4]),'p2p',"P2P (auto)" % protocole])
|
# proprio.blacklist(["%d/%d/%d %d:%d" % (debut[2],debut[1],debut[0],debut[3],debut[4]),"%d/%d/%d %d:%d" % (fin[2],fin[1],fin[0],fin[3],fin[4]),'p2p',"P2P %s (auto)" % protocole])
|
||||||
|
proprio.blacklist(["%d/%d/%d %d:%d" % (debut[2],debut[1],debut[0],debut[3],debut[4]),"%d/%d/%d %d:%d" % (fin[2],fin[1],fin[0],fin[3],fin[4]),'autodisc',"P2P %s (auto)" % protocole])
|
||||||
proprio.save()
|
proprio.save()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue