Update login_backend.php

This commit is contained in:
jakani24
2024-06-06 15:56:01 +02:00
parent 3aab770a5b
commit 3e3b9b0911

View File

@@ -179,7 +179,8 @@ try {
$_SESSION["allow_pw_login"]=$row["allow_pw_login"];
$_SESSION["send_login_message"]=$row["send_login_message"];
if($_SESSION["send_login_message"]=="1"){
$ip = $_SERVER['HTTP_CLIENT_IP'];
$ip = $_SERVER['REMOTE_ADDR'];
$username=$row["username"];
send_to_user("[LOGIN WARNING]\nHello $username\nSomebody has logged into Cyberhex with your account.\nIf this was you, you can ignore this message. Else please take steps to secure your account!\nIP: $ip\n",$username);
}