/opt/cpanel/ea-wappspector/src/Matchers
NameSizeModeActions
CakePHP.php10450644editdlrm
CodeIgniter.php11630644editdlrm
Composer.php11150644editdlrm
DotNet.php10790644editdlrm
Drupal.php16650644editdlrm
Duda.php17610644editdlrm
EmDash.php8130644editdlrm
Joomla.php38790644editdlrm
Laravel.php19460644editdlrm
MatcherInterface.php3430644editdlrm
NodeJs.php8660644editdlrm
Php.php10960644editdlrm
Prestashop.php14430644editdlrm
Python.php7420644editdlrm
Ruby.php7130644editdlrm
Sitejet.php9760644editdlrm
Siteplus.php18340644editdlrm
Sitepro.php9800644editdlrm
Symfony.php9050644editdlrm
Typo3.php18100644editdlrm
UpLevelMatcherTrait.php9820644editdlrm
WebPresenceBuilder.php20160644editdlrm
Wordpress.php15120644editdlrm
Yii.php16800644editdlrm
Edit: /opt/cpanel/ea-wappspector/src/Matchers/Typo3.php (1810B)
'typo3/sysext/core/Classes/Information/Typo3Version.php', 'regexp' => '/VERSION = \'(.*?)\'/', ], [ 'filename' => 'typo3/sysext/core/Classes/Core/SystemEnvironmentBuilder.php', 'regexp' => '/define\\(\'TYPO3_version\', \'(.*?)\'\\)/', ], [ 'filename' => 't3lib/config_default.php', 'regexp' => '/TYPO_VERSION = \'(.*?)\'/', ], ]; public function match(Filesystem $fs, string $path): MatchResultInterface { foreach (self::VERSIONS as $version) { $versionFile = rtrim($path, '/') . '/' . $version['filename']; if (!$fs->fileExists($versionFile)) { continue; } if ($version = $this->detectVersion($version['regexp'], $versionFile, $fs)) { return new MatchResult($path, $version); } } return new EmptyMatchResult(); } public function detectVersion(string $regexPattern, string $versionFile, Filesystem $fs): ?string { try { preg_match($regexPattern, $fs->read($versionFile), $matches); return count($matches) > 1 ? $matches[1] : null; } catch (FilesystemException) { // ignore file reading problem return null; } } }