?????????? ????????? - ??????????????? - /home/agenciai/public_html/cd38d8/CodeIgniter.php.tar
???????
opt/cpanel/ea-wappspector/src/Matchers/CodeIgniter.php 0000644 00000002213 15126717300 0017004 0 ustar 00 <?php declare(strict_types=1); namespace Plesk\Wappspector\Matchers; use League\Flysystem\Filesystem; use League\Flysystem\FilesystemException; use Plesk\Wappspector\MatchResult\CodeIgniter as MatchResult; use Plesk\Wappspector\MatchResult\EmptyMatchResult; use Plesk\Wappspector\MatchResult\MatchResultInterface; class CodeIgniter implements MatcherInterface { public function match(Filesystem $fs, string $path): MatchResultInterface { $path = rtrim($path, '/'); if (!$fs->fileExists($path . '/spark')) { return new EmptyMatchResult(); } return new MatchResult($path, $this->detectVersion($fs, $path)); } /** * @throws FilesystemException */ private function detectVersion(Filesystem $fs, string $path): ?string { $versionFile = $path . '/vendor/codeigniter4/framework/system/CodeIgniter.php'; if (!$fs->fileExists($versionFile)) { return null; } preg_match("/CI_VERSION\\s*=\\s*'([^']+)'/", $fs->read($versionFile), $matches); if ($matches !== []) { return $matches[1]; } return null; } } opt/cpanel/ea-wappspector/src/MatchResult/CodeIgniter.php 0000644 00000000302 15130137105 0017460 0 ustar 00 <?php declare(strict_types=1); namespace Plesk\Wappspector\MatchResult; class CodeIgniter extends MatchResult { public const ID = 'codeigniter'; public const NAME = 'CodeIgniter'; }
| ver. 1.6 |
Github
|
.
| PHP 8.2.30 | ??????????? ?????????: 0 |
proxy
|
phpinfo
|
???????????