HEX
Server: Apache
System: Linux sg241.singhost.net 2.6.32-896.16.1.lve1.4.51.el6.x86_64 #1 SMP Wed Jan 17 13:19:23 EST 2018 x86_64
User: honghock (909)
PHP: 8.0.30
Disabled: passthru,system,shell_exec,show_source,exec,popen,proc_open
Upload Files
File: /home/honghock/public_html/wp-content/plugins/wordfence/lib/wfScanFile.php
<?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);
	}

}