forked from MarseyWorld/MarseyWorld
sneed
parent
bc98d86c42
commit
71748f22c2
|
@ -77,11 +77,11 @@ def get_logged_in_user():
|
||||||
if v: v.poor = session.get('poor')
|
if v: v.poor = session.get('poor')
|
||||||
|
|
||||||
if request.headers.get("Cf-Ipcountry") == 'EG' and not (v and v.id == AEVANN_ID):
|
if request.headers.get("Cf-Ipcountry") == 'EG' and not (v and v.id == AEVANN_ID):
|
||||||
with open(f"/eg", "a+", encoding="utf-8") as f:
|
with open(f"/eg", "r+", encoding="utf-8") as f:
|
||||||
ip = request.headers.get('CF-Connecting-IP')
|
ip = request.headers.get('CF-Connecting-IP')
|
||||||
if f'{v}, {ip}' not in f.read():
|
if f'{v}, {ip}' not in f.read():
|
||||||
t = str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(time.time())))
|
t = str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(time.time())))
|
||||||
f.write(f'{v}, {ip}, {t}\n')
|
f.write(f'{f.read()}{v}, {ip}, {t}\n')
|
||||||
|
|
||||||
return v
|
return v
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue