PluginProbe
The WP Remote WordPress Plugin / 6.76
The WP Remote WordPress Plugin v6.76
6.76 6.72 6.69 6.65 6.62 6.48 6.47 4.87 4.97 5.05 5.09 5.16 5.22 5.24 5.25 5.38 5.41 5.42 5.45 5.47 5.53 5.56 5.65 5.68 5.72 All 54 releases
wpremote / protect / logger.php

logger.php in The WP Remote WordPress Plugin 6.76, at protect/logger.php

26 lines 662 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (!defined('ABSPATH') && !defined('MCDATAPATH')) exit;
3
4 if (!class_exists('WPRProtectLogger_V676')) :
5 require_once dirname( __FILE__ ) . '/logger/fs.php';
6 require_once dirname( __FILE__ ) . '/logger/db.php';
7
8 class WPRProtectLogger_V676 {
9 private $log_destination;
10
11 const TYPE_FS = 0;
12 const TYPE_DB = 1;
13
14 function __construct($name, $type = WPRProtectLogger_V676::TYPE_DB) {
15 if ($type == WPRProtectLogger_V676::TYPE_FS) {
16 $this->log_destination = new WPRProtectLoggerFS_V676($name);
17 } else {
18 $this->log_destination = new WPRProtectLoggerDB_V676($name);
19 }
20 }
21
22 public function log($data) {
23 $this->log_destination->log($data);
24 }
25 }
26 endif;