# wpremote/6.76/protect/logger/db.php

The WP Remote WordPress Plugin, version 6.76. 26 lines.

- Page: https://pluginprobe.com/plugins/wpremote/6.76/code/protect/logger/db.php
- Raw: https://pluginprobe.com/plugins/wpremote/6.76/raw/protect/logger/db.php
- Modified: 2026-09-17T11:43:22+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wpremote/6.76/code/protect/logger/db.php#L10-L20`.

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

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

	const MAXROWCOUNT = 100000;

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

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

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