HEX
Server: Apache/2.4.65 (Debian)
System: Linux 88f31f35b0b8 6.1.0-38-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.147-1 (2025-08-02) x86_64
User: www-data (33)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/malcare-security/protect/logger.php
<?php
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;

if (!class_exists('MCProtectLogger_V644')) :
require_once dirname( __FILE__ ) . '/logger/fs.php';
require_once dirname( __FILE__ ) . '/logger/db.php';

class MCProtectLogger_V644 {
	private $log_destination;

	const TYPE_FS = 0;
	const TYPE_DB = 1;

	function __construct($name, $type = MCProtectLogger_V644::TYPE_DB) {
		if ($type == MCProtectLogger_V644::TYPE_FS) {
			$this->log_destination = new MCProtectLoggerFS_V644($name);
		} else {
			$this->log_destination = new MCProtectLoggerDB_V644($name);
		}
	}

	public function log($data) {
		$this->log_destination->log($data);
	}
}
endif;