REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 3.20 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/malcare-security/callback/wings/protect.php
Text
Base64
<?php if (!defined('ABSPATH')) exit; if (!class_exists('MCProtectCallback')) : require_once dirname( __FILE__ ) . '/../../protect/lp.php'; class MCProtectCallback extends MCCallbackBase { public $db; public $settings; const PROTECT_WING_VERSION = 1.3; public function __construct($callback_handler) { $this->db = $callback_handler->db; $this->settings = $callback_handler->settings; } public function serverConfig() { return array( 'software' => MCHelper::getRawParam('SERVER', 'SERVER_SOFTWARE'), 'sapi' => (function_exists('php_sapi_name')) ? php_sapi_name() : false, 'has_apache_get_modules' => function_exists('apache_get_modules'), 'posix_getuid' => (function_exists('posix_getuid')) ? posix_getuid() : null, 'uid' => (function_exists('getmyuid')) ? getmyuid() : null, 'user_ini' => ini_get('user_ini.filename'), 'php_major_version' => PHP_MAJOR_VERSION ); } public function unBlockLogins() { $this->settings->deleteTransient('bvlp_block_logins'); $this->settings->setTransient('bvlp_allow_logins', 'true', 1800); return $this->settings->getTransient('bvlp_allow_logins'); } public function blockLogins($time) { $this->settings->deleteTransient('bvlp_allow_logins'); $this->settings->setTransient('bvlp_block_logins', 'true', $time); return $this->settings->getTransient('bvlp_block_logins'); } public function unBlockIP($ip, $attempts, $time) { $transient_name = MCProtectLP_V648::UNBLOCK_IP_TRANSIENT_PREFIX . $ip; $this->settings->setTransient($transient_name, $attempts, $time); return $this->settings->getTransient($transient_name); } public function process($request) { $bvinfo = new MCInfo($this->settings); $params = $request->params; switch ($request->method) { case "gtipprobeinfo": $resp = array(); $headers = $params['hdrs']; $hdrsinfo = array(); if ($headers && is_array($headers)) { foreach($headers as $hdr) { if (array_key_exists($hdr, $_SERVER)) { $hdrsinfo[$hdr] = MCHelper::getRawParam('SERVER', $hdr); } } } $resp["hdrsinfo"] = $hdrsinfo; break; case "gtrulcnf": $resp = array('conf' => $this->settings->getOption('bvruleset')); break; case "clrrulcnf": $this->settings->deleteOption('bvruleset'); $resp = array("clearconfig" => true); break; case "dorulcnf": $this->settings->updateOption('bvruleset', $params['conf']); $resp = array('conf' => $this->settings->getOption('bvruleset')); break; case "gtraddr": $raddr = MCHelper::getRawParam('SERVER', 'REMOTE_ADDR'); $resp = array("raddr" => $raddr); break; case "svrcnf": $resp = array("serverconfig" => $this->serverConfig()); break; case "unblklogins": $resp = array("unblocklogins" => $this->unBlockLogins()); break; case "blklogins": $time = array_key_exists('time', $params) ? $params['time'] : 1800; $resp = array("blocklogins" => $this->blockLogins($time)); break; case "unblkip": $resp = array("unblockip" => $this->unBlockIP($params['ip'], $params['attempts'], $params['time'])); break; case "rmwatchtime": $this->settings->deleteOption('bvwatchtime'); $resp = array("rmwatchtime" => !$bvinfo->getWatchTime()); break; default: $resp = false; } return $resp; } } endif;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 15
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
account.php
2.71 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
actlog.php
1.65 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
brand.php
1.27 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
bv_upgrader_skin.php
2.23 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
db.php
11.76 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
dynsync.php
2.57 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fs.php
15.51 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
fs_write.php
15.01 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
info.php
17.77 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ipstore.php
4.03 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
manage.php
35.19 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
misc.php
8.17 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
protect.php
3.20 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
security.php
5.36 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
watch.php
10.43 KB
lrw-r--r--
2026-06-07 01:29:47
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).