. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 87.98.249.37 / Your IP : 216.73.216.208 [ Web Server : Microsoft-IIS/10.0 System : Windows NT NS3076740 10.0 build 17763 (Windows Server 2019) AMD64 User : IWPD_292(growel19p) ( 0) PHP Version : 8.3.12 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Inetpub/vhosts/growel.com/httpdocs/blog/wp-content/plugins/wordfence/lib/ |
Upload File : |
<?php
require_once __DIR__ . '/wfFileUtils.php';
require_once __DIR__ . '/wfScanFileProperties.php';
class wfScanFile {
private $realPath = null;
private $wordpressPath = null;
public function __construct($realPath, $wordpressPath) {
$this->realPath = $realPath;
$this->wordpressPath = $wordpressPath;
}
public function getRealPath() {
return $this->realPath;
}
public function getWordpressPath() {
return $this->wordpressPath;
}
public function getDisplayPath() {
if (wfFileUtils::matchPaths($this->realPath, $this->wordpressPath)) {
return '~/' . $this->getWordpressPath();
}
return $this->realPath;
}
public function createChild($childPath) {
return new self(
wfFileUtils::realPath(wfFileUtils::joinPaths($this->realPath, $childPath)),
wfFileUtils::joinPaths($this->wordpressPath, $childPath)
);
}
public function __toString() {
return $this->getRealPath();
}
public function initializeProperties() {
return new wfScanFileProperties($this->realPath, $this->wordpressPath);
}
}