diff --git a/web/composer.lock b/web/composer.lock index dda41aabf..59239d3de 100644 --- a/web/composer.lock +++ b/web/composer.lock @@ -8,16 +8,16 @@ "packages": [ { "name": "adodb/adodb-php", - "version": "v5.22.8", + "version": "v5.22.10", "source": { "type": "git", "url": "https://github.com/ADOdb/ADOdb.git", - "reference": "bc0d3e05ce89f3c73c24d1cb78de57793d1afe3a" + "reference": "38ce257600e67b1e854f2e9054166569cff4bf6b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/ADOdb/ADOdb/zipball/bc0d3e05ce89f3c73c24d1cb78de57793d1afe3a", - "reference": "bc0d3e05ce89f3c73c24d1cb78de57793d1afe3a", + "url": "https://api.github.com/repos/ADOdb/ADOdb/zipball/38ce257600e67b1e854f2e9054166569cff4bf6b", + "reference": "38ce257600e67b1e854f2e9054166569cff4bf6b", "shasum": "" }, "require": { @@ -65,7 +65,7 @@ "issues": "https://github.com/ADOdb/ADOdb/issues", "source": "https://github.com/ADOdb/ADOdb" }, - "time": "2025-01-25T01:10:09+00:00" + "time": "2025-08-03T16:20:39+00:00" }, { "name": "doctrine/lexer", @@ -286,16 +286,16 @@ }, { "name": "maxmind-db/reader", - "version": "v1.12.0", + "version": "v1.13.1", "source": { "type": "git", "url": "https://github.com/maxmind/MaxMind-DB-Reader-php.git", - "reference": "5b2d7a721dedfaef9dc20822c5fe7d26f9f8eb90" + "reference": "2194f58d0f024ce923e685cdf92af3daf9951908" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/5b2d7a721dedfaef9dc20822c5fe7d26f9f8eb90", - "reference": "5b2d7a721dedfaef9dc20822c5fe7d26f9f8eb90", + "url": "https://api.github.com/repos/maxmind/MaxMind-DB-Reader-php/zipball/2194f58d0f024ce923e685cdf92af3daf9951908", + "reference": "2194f58d0f024ce923e685cdf92af3daf9951908", "shasum": "" }, "require": { @@ -308,12 +308,13 @@ "friendsofphp/php-cs-fixer": "3.*", "phpstan/phpstan": "*", "phpunit/phpunit": ">=8.0.0,<10.0.0", - "squizlabs/php_codesniffer": "3.*" + "squizlabs/php_codesniffer": "4.*" }, "suggest": { "ext-bcmath": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder", "ext-gmp": "bcmath or gmp is required for decoding larger integers with the pure PHP decoder", - "ext-maxminddb": "A C-based database decoder that provides significantly faster lookups" + "ext-maxminddb": "A C-based database decoder that provides significantly faster lookups", + "maxmind-db/reader-ext": "C extension for significantly faster IP lookups (install via PIE: pie install maxmind-db/reader-ext)" }, "type": "library", "autoload": { @@ -343,9 +344,9 @@ ], "support": { "issues": "https://github.com/maxmind/MaxMind-DB-Reader-php/issues", - "source": "https://github.com/maxmind/MaxMind-DB-Reader-php/tree/v1.12.0" + "source": "https://github.com/maxmind/MaxMind-DB-Reader-php/tree/v1.13.1" }, - "time": "2024-11-14T22:43:47+00:00" + "time": "2025-11-21T22:24:26+00:00" }, { "name": "psr/clock", @@ -1403,6 +1404,6 @@ "ext-openssl": "*", "php": ">=8.2" }, - "platform-dev": [], - "plugin-api-version": "2.2.0" + "platform-dev": {}, + "plugin-api-version": "2.6.0" } diff --git a/web/pages/admin.blockit.php b/web/pages/admin.blockit.php index c4849f8bc..a8f237db9 100644 --- a/web/pages/admin.blockit.php +++ b/web/pages/admin.blockit.php @@ -80,13 +80,13 @@ function BlockPlayer($check, int $sid, $num, $type, int $length) return $objResponse; } -// $GLOBALS['PDO']->query("SELECT ip, port FROM `:prefix_servers` WHERE sid = :sid"); -// $GLOBALS['PDO']->bind(':sid', $sid); -// $sdata = $GLOBALS['PDO']->single(); + $GLOBALS['PDO']->query("SELECT ip, port FROM `:prefix_servers` WHERE sid = :sid"); + $GLOBALS['PDO']->bind(':sid', $sid); + $sdata = $GLOBALS['PDO']->single(); // show hostname instead of the ip, but leave the ip in the title $hostsearch = preg_match_all('/hostname:[ ]*(.+)/', $ret, $hostname, PREG_PATTERN_ORDER); - $hostname = trunc(htmlspecialchars($hostname[1][0]), 25); + $hostname = trunc(htmlspecialchars($hostname[1][0] ?? ''), 25); if (!empty($hostname)) $objResponse->addAssign("srvip_$num", "innerHTML", "" . $hostname . "");