forked from MarseyWorld/MarseyWorld
wtf?
parent
3db7be4d61
commit
8ff5edc8e9
|
@ -79,16 +79,6 @@ def get_logged_in_user():
|
||||||
|
|
||||||
if v: v.poor = session.get('poor')
|
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
|
return v
|
||||||
|
|
||||||
def check_ban_evade(v):
|
def check_ban_evade(v):
|
||||||
|
|
Loading…
Reference in New Issue