/opt/cpanel/ea-wappspector/src/Matchers
<?php declare(strict_types=1); namespace Plesk\Wappspector\Matchers; use League\Flysystem\Filesystem; use Plesk\Wappspector\Helper\InspectorHelper; use Plesk\Wappspector\MatchResult\EmptyMatchResult; use Plesk\Wappspector\MatchResult\MatchResultInterface; use Plesk\Wappspector\MatchResult\Sitejet as MatchResult; class Sitejet implements MatcherInterface { public function match(Filesystem $fs, string $path): MatchResultInterface { $indexHtmlPath = rtrim($path, '/') . '/index.html'; if (!$fs->fileExists($indexHtmlPath)) { return new EmptyMatchResult(); } $fileContent = $fs->read($indexHtmlPath); $inspectorHelper = new InspectorHelper(); return $inspectorHelper->fileContentContainsString($fileContent, 'ed-element') && $inspectorHelper->fileContentContainsString($fileContent, 'webcard.apiHost=') ? new MatchResult($path) : new EmptyMatchResult(); } }
.
Edit
..
Edit
CakePHP.php
Edit
CodeIgniter.php
Edit
Composer.php
Edit
DotNet.php
Edit
Drupal.php
Edit
Duda.php
Edit
Joomla.php
Edit
Laravel.php
Edit
MatcherInterface.php
Edit
NodeJs.php
Edit
Php.php
Edit
Prestashop.php
Edit
Python.php
Edit
Ruby.php
Edit
Sitejet.php
Edit
Siteplus.php
Edit
Sitepro.php
Edit
Symfony.php
Edit
Typo3.php
Edit
UpLevelMatcherTrait.php
Edit
WebPresenceBuilder.php
Edit
Wordpress.php
Edit
Yii.php
Edit