PHP 8.2.31
Preview: db.php Size: 672 B
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/malcare-security/protect/logger/db.php

<?php
if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;

if (!class_exists('MCProtectLoggerDB_V648')) :
class MCProtectLoggerDB_V648 {
	private $tablename;
	private $bv_tablename;

	const MAXROWCOUNT = 100000;

	function __construct($tablename) {
		$this->tablename = $tablename;
		$this->bv_tablename = MCProtect_V648::$db->getBVTable($tablename);
	}

	public function log($data) {
		if (is_array($data)) {
			if (MCProtect_V648::$db->rowsCount($this->bv_tablename) > MCProtectLoggerDB_V648::MAXROWCOUNT) {
				MCProtect_V648::$db->deleteRowsFromtable($this->tablename, 1);
			}

			MCProtect_V648::$db->replaceIntoBVTable($this->tablename, $data);
		}
	}
}
endif;

Directory Contents

Dirs: 0 × Files: 2

Name Size Perms Modified Actions
672 B lrw-r--r-- 2026-06-07 01:29:47
Edit Download
506 B lrw-r--r-- 2026-06-07 01:29:47
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).