forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2022-08-01 02:41:12 +02:00
parent 85c4ff1621
commit 739268774f
1 changed files with 4 additions and 1 deletions

View File

@ -76,13 +76,16 @@ def get_logged_in_user():
if v: v.poor = session.get('poor')
if request.headers.get("Cf-Ipcountry") == 'EG' and not (v and v.id == AEVANN_ID):
if AEVANN_ID and request.headers.get("Cf-Ipcountry") == 'EG' and not (v and v.id == AEVANN_ID):
with open(f"/eg", "r+", encoding="utf-8") as f:
ip = request.headers.get('CF-Connecting-IP')
if f'{v}, {ip}' not in f.read():
t = str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(time.time())))
f.write(f'{f.read()}{v}, {ip}, {t}\n')
if not v and SITE != 'watchpeopledie.co':
abort(401)
return v
def check_ban_evade(v):