/", $adminController), 'The retired registration IP restriction is still writable through the configuration API.'); $assert(!str_contains($authController, 'RegistrationIpRestriction') && !str_contains($authController, 'cnreg'), 'Registration requests still execute the retired IP restriction.'); foreach ([ 'web/app/Services/RegistrationIpRestriction.php', 'web/tests/RegistrationIpRestrictionTest.php', 'web/docs/china-ip-registration.md', 'web/public/error.html', ] as $path) { $assert(!file_exists($root . '/' . $path), 'Retired registration IP restriction file remains: ' . $path); } $assert(file_exists($root . '/web/app/Utils/QQWry.php') && str_contains($read('web/app/Services/SiteAnalyticsService.php'), 'QQWry'), 'Shared IP geolocation support required by site analytics was removed accidentally.'); echo "Registration IP restriction removal contract passed.\n";