Add MultiAccount Detection, Add Push Protection Detection, Add register Default Gold

Add MultiAccount Detection, Add Push Protection Detection, Add register Default Gold
This commit is contained in:
novgorodschi catalin
2026-07-15 14:23:05 +03:00
parent 1925f45001
commit b87cf27396
23 changed files with 1798 additions and 8 deletions
+9
View File
@@ -201,6 +201,15 @@ function __construct() {
$logging->addLoginLog($dbarray['id'], \App\Utils\IpResolver::getClientIp() ?? ($_SERVER['REMOTE_ADDR'] ?? '0.0.0.0'));
// Multi-account detection: record this login's fingerprint (IP + User-Agent).
// Best-effort — MultiAccount::recordSession() swallows all errors so it can
// never block a login, and it self-creates its table on first use.
MultiAccount::recordSession(
$dbarray['id'],
\App\Utils\IpResolver::getClientIp() ?? ($_SERVER['REMOTE_ADDR'] ?? '0.0.0.0'),
$_SERVER['HTTP_USER_AGENT'] ?? ''
);
if ($dbarray['id'] == 1) {
header("Location: nachrichten.php");
exit;