$remote_addr,
'forwarded_addr' => $http_x_forwarded_for,
'ua' => $user_agent,
]);
// If not matched, send email
if ($matched_history == null) {
sendEmail($user['username'], '新登录', <<
如果这是您进行的登录操作,请忽略此邮件。如果您没有进行过登录操作,请立即重置您账号的密码。
EOD); } return "ok"; } if (isset($_POST['login'])) { echo handleLoginPost(); unset($_SESSION['phrase']); die(); } ?>