REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 2.19 KB
Close
/home/nshryvcy/blissfulnepal.com/wp-content/plugins/wordfence/modules/login-security/classes/model/view.php
Text
Base64
<?php namespace WordfenceLS; class Model_View { /** * @var string */ protected $path; /** * @var string */ protected $file_extension = '.php'; /** * @var string */ protected $view; /** * @var array */ protected $data; /** * Equivalent to the constructor but allows for call chaining. * * @param string $view * @param array $data * @return Model_View */ public static function create($view, $data = array()) { return new self($view, $data); } /** * @param string $view * @param array $data */ public function __construct($view, $data = array()) { $this->path = WORDFENCE_LS_PATH . 'views'; $this->view = $view; $this->data = $data; } /** * @return string * @throws ViewNotFoundException */ public function render() { $view = preg_replace('/\.{2,}/', '.', $this->view); $path = $this->path . '/' . $view . $this->file_extension; if (!file_exists($path)) { throw new ViewNotFoundException('The view ' . $path . ' does not exist or is not readable.'); } extract($this->data, EXTR_SKIP); ob_start(); /** @noinspection PhpIncludeInspection */ include $path; return ob_get_clean(); } /** * @return string */ public function __toString() { try { return $this->render(); } catch (ViewNotFoundException $e) { return defined('WP_DEBUG') && WP_DEBUG ? $e->getMessage() : 'The view could not be loaded.'; } } /** * @param $data * @return $this */ public function addData($data) { $this->data = array_merge($data, $this->data); return $this; } /** * @return array */ public function getData() { return $this->data; } /** * @param array $data * @return $this */ public function setData($data) { $this->data = $data; return $this; } /** * @return string */ public function getView() { return $this->view; } /** * @param string $view * @return $this */ public function setView($view) { $this->view = $view; return $this; } /** * Prevent POP */ public function __wakeup() { $this->path = WORDFENCE_LS_PATH . 'views'; $this->view = null; $this->data = array(); $this->file_extension = '.php'; } } class ViewNotFoundException extends \Exception { }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 4 × Files: 12
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
crypto
DIR
-
drwxr-xr-x
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
settings
DIR
-
drwxr-xr-x
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
text
DIR
-
drwxr-xr-x
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
view
DIR
-
drwxr-xr-x
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
2fainitializationdata.php
1.26 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
asset.php
2.48 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
compat.php
248 B
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
crypto.php
8.11 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
ip.php
5.06 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
notice.php
1.51 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
request.php
5.77 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
script.php
2.60 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
settings.php
698 B
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
style.php
1.89 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
tokenbucket.php
5.83 KB
lrw-r--r--
2026-06-03 14:57:34
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
view.php
2.19 KB
lrw-r--r--
2026-06-03 14:57:34
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).