mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-16 09:36:08 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user