master
Aevann1 2022-09-13 09:19:54 +02:00
parent 3db7be4d61
commit 8ff5edc8e9
1 changed files with 0 additions and 10 deletions

View File

@ -79,16 +79,6 @@ def get_logged_in_user():
if v: v.poor = session.get('poor')
if AEVANN_ID and request.headers.get("Cf-Ipcountry") == 'EG':
if v and not v.username.startswith('Aev'):
with open(f"/eg", "r+", encoding="utf-8") as f:
ip = request.headers.get('CF-Connecting-IP')
if f'@{v.username}, ' 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.username}, {v.truecoins}, {ip}, {t}\n')
elif not v and request.path not in ('/login','/signup'):
abort(401)
return v
def check_ban_evade(v):