REDROOM
PHP 8.0.30
Path:
Logout
Edit File
Size: 1.50 KB
Close
/home/certprox/template.certproxywizard.com/wp-content/plugins/hostinger/includes/Admin/PluginSettings.php
Text
Base64
<?php /** * Avoid possibility to get file accessed directly */ namespace Hostinger\Admin; use Hostinger\Admin\Options\PluginOptions; if ( ! defined( 'ABSPATH' ) ) { die; } /** * Class for handling Settings */ class PluginSettings { /** * @var PluginOptions|null */ private ?PluginOptions $plugin_options = null; /** * @param PluginOptions|null $plugin_options */ public function __construct( ?PluginOptions $plugin_options = null ) { if ( ! is_null( $plugin_options ) ) { $this->plugin_options = $plugin_options; } } /** * Return plugin settings * * @return PluginOptions */ public function get_plugin_settings(): PluginOptions { if ( ! empty( $this->plugin_options ) ) { $settings = $this->plugin_options; } else { $settings = get_option( HOSTINGER_PLUGIN_SETTINGS_OPTION, array() ); $settings = new PluginOptions( $settings ); } return $settings; } /** * @param PluginOptions $plugin_options plugin settings. * * @return PluginOptions */ public function save_plugin_settings( PluginOptions $plugin_options ): PluginOptions { $existing_settings = $this->get_plugin_settings(); $update = update_option( HOSTINGER_PLUGIN_SETTINGS_OPTION, $plugin_options->to_array(), false ); return ! empty( $update ) ? $plugin_options : $existing_settings; } }
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 3 × Files: 6
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
Jobs
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Options
DIR
-
drwxr-xr-x
2026-06-14 00:11:50
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Views
DIR
-
drwxr-xr-x
2026-06-14 00:11:49
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Assets.php
12.32 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Hooks.php
1.35 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Menu.php
1.40 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
PluginSettings.php
1.50 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Proxy.php
1.63 KB
lrw-r--r--
2026-06-10 16:30:25
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Redirects.php
1.04 KB
lrw-r--r--
2026-06-10 16:30:25
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).