HEX
Server: Apache
System: Linux intelligent-franklin.159-253-45-41.plesk.page 3.10.0-962.3.2.lve1.5.79.el7.x86_64 #1 SMP Wed Mar 15 09:10:44 UTC 2023 x86_64
User: sysuser_f (10029)
PHP: 7.3.33
Disabled: opcache_get_status
Upload Files
File: /var/www/vhosts/3chukuk.com/httpdocs/wp-content/plugins/wordfence/lib/wfModuleController.php
<?php

class wfModuleController {
	private $_optionIndexes;
	private $_optionBlocks;
	
	public static function shared() {
		static $_shared = false;
		if ($_shared === false) {
			$_shared = new wfModuleController();
		}
		return $_shared;
	}
	
	public function __construct() {
		$this->_optionIndexes = array();
		$this->_optionBlocks = array();
	}
	
	public function __get($key) {
		switch ($key) {
			case 'optionIndexes':
				return $this->_optionIndexes;
			case 'optionBlocks':
				return $this->_optionBlocks;
		}
		
		throw new OutOfBoundsException('Invalid key');
	}
	
	public function addOptionIndex($target, $text) {
		$this->_optionIndexes[$target] = $text;
	}
	
	public function addOptionBlock($html) {
		$this->_optionBlocks[] = $html;
	}
}