+ $user = new PanelUser($fail['login']);
+ if ($user->email)
+ self::send_mail(
+ ["email" => $user->email, "name" => $user->first_name . " " . $user->last_name],
+ "Failed login attempt to your account",
+ "Dear $user->first_name, <br><br>".
+ "There was failed login attempt to your account: \"$user->username\"<br><br>".
+ "Details:<br>".
+ "IP: ".$_SERVER['REMOTE_ADDR']." (".$_SERVER['HTTP_CF_IPCOUNTRY'].")<br>".
+ "User Agent: ".$_SERVER['HTTP_USER_AGENT']."<br><br>".
+ "If this was not you, please contact your Panel Administrator."
+ );