/
Flypig
/
vendor.antispam
Обзор
Документация
Войти
/
Flypig
/
vendor.antispam
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
include.php
36 строк
1 KB
timoshenko
Fix include.php syntax error and rename files to match include paths
07 июл 2026, 11:35
07 июл 2026, 11:35
990a8a2
Код
Авторство
О чём код?
<?php use Bitrix\Main\Loader; use Bitrix\Main\Application; Loader::includeModule("main"); // Автозагрузка классов модуля $autoloader = function($className) { if (strpos($className, "Vendor\\Antispam\\") === 0) { $classPath = str_replace("Vendor\\Antispam\\", "", $className); $classPath = str_replace("\\", "/", $classPath); $filePath = __DIR__ . "/lib/" . $classPath . ".php"; if (file_exists($filePath)) { require_once $filePath; } } }; spl_autoload_register($autoloader); // Подключаем основные классы require_once __DIR__ . "/lib/Options.php"; require_once __DIR__ . "/lib/Logger.php"; require_once __DIR__ . "/lib/captcha/BaseCaptcha.php"; require_once __DIR__ . "/lib/captcha/MathCaptcha.php"; require_once __DIR__ . "/lib/captcha/TextCaptcha.php"; require_once __DIR__ . "/lib/captcha/ImageCaptcha.php"; require_once __DIR__ . "/lib/captcha/PuzzleCaptcha.php"; require_once __DIR__ . "/lib/captcha/HoneypotCaptcha.php"; require_once __DIR__ . "/lib/AntispamManager.php"; require_once __DIR__ . "/lib/SpamChecker.php"; require_once __DIR__ . "/lib/AutoChecker.php"; require_once __DIR__ . "/lib/EventHandler.php"; require_once __DIR__ . "/lib/Statistics.php";