403Webshell
Server IP : 64.223.137.62  /  Your IP : 104.23.197.97
Web Server : Apache/2.4.52 (Ubuntu)
System : Linux webserver9 5.15.0-170-generic #180-Ubuntu SMP Fri Jan 9 16:10:31 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.1.2-1ubuntu2.24
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/cwalakestreet.com/wp-content/plugins/diviflash/includes/handler/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/cwalakestreet.com/wp-content/plugins/diviflash/includes/handler/Plugin.php
<?php

namespace DIFL\Handler;

/**
 * Issue handler with various plugin and scenarios.
 */
class Plugin {
	public function __construct() {
		add_filter( 'difl_dashboard_local_vars', [ $this, 'extra_vars_on_dashboard' ] );
		add_action( 'wp_enqueue_scripts', [ $this, 'disable_wpforms_pro_style' ], PHP_INT_MAX );
		add_action( 'init', [$this,'difl_flush_rewrite_rules'] );
	}

	public function extra_vars_on_dashboard( $vars ) {
		if ( class_exists( 'WPForms_Pro' ) ) {
			$vars['wpforms_pro'] = true;
		}

		return $vars;
	}

	public function disable_wpforms_pro_style() {
		if ( ! class_exists( 'WPForms_Pro' ) ) {
			return;
		}
		if ( ! get_option( 'df_disable_wpforms_pro_style' ) ) {
			return;
		}
		wp_deregister_style( 'wpforms-divi-pro-modern-full' );
		wp_dequeue_style( 'wpforms-divi-pro-modern-full' );
		wp_deregister_style( 'wpforms-modern-full' );
		wp_dequeue_style( 'wpforms-modern-full' );
		wp_deregister_style( 'wpforms-pro-integrations' );
		wp_dequeue_style( 'wpforms-pro-integrations' );
	}

	public function difl_flush_rewrite_rules() {
		if ( wp_doing_ajax() ) {
			return;
		}

		$flush_it = get_transient( 'difl_flush_rewrite_rules' );
		if ( 'true' === $flush_it ) {
			flush_rewrite_rules( false );
			delete_transient( 'difl_flush_rewrite_rules' );
		}
	}
}

new Plugin();

Youez - 2016 - github.com/yon3zu
LinuXploit