403Webshell
Server IP : 89.108.64.180  /  Your IP : 216.73.217.95
Web Server : Apache/2.4.41 (Ubuntu)
System : Linux 89-108-64-180.cloudvps.regruhosting.ru 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User : www-root ( 1010)
PHP Version : 8.0.30
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /var/www/www-root/data/www/sirius-azau.ru/wp-content/plugins/widget-options/includes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/www-root/data/www/sirius-azau.ru/wp-content/plugins/widget-options/includes/transient.php
<?php
/**
 * Shortcodes Handler
 *
 * @copyright   Copyright (c) 2016, Jeffrey Carandang
 * @since       4.0
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) exit;

//remove widgetopts_pages transient when new page created
if( !function_exists( 'widgetopts_delete_transient_pages' ) ){
	add_action( 'transition_post_status', 'widgetopts_delete_transient_pages', 10, 3 );
	function widgetopts_delete_transient_pages( $new_status, $old_status, $post  ){
		global $widgetopts_types;

		if ( 'page' == $post->post_type ){
	        delete_option( 'widgetopts_global_all_pages' );
	    }

		if( 'publish' == $new_status && 'publish' != $old_status ){
			if( is_array( $widgetopts_types ) && !empty( $widgetopts_types ) && !in_array( $post->post_type, $widgetopts_types ) ){
				delete_option( 'widgetopts_global_types' );
			}
		}
	}
}

//remove widgetopts_categories transient when new category created
if( !function_exists( 'widgetopts_delete_transient_terms' ) ){
	add_action( 'create_term', 'widgetopts_delete_transient_terms', 10, 3 );
	add_action( 'edit_term', 'widgetopts_delete_transient_terms', 10, 3 );
	add_action( 'delete_term', 'widgetopts_delete_transient_terms', 10, 3 );
	function widgetopts_delete_transient_terms( $term_id, $tt_id, $taxonomy ){
		global $widgetopts_taxonomies;

		delete_transient( 'widgetopts_taxonomy_' . $taxonomy );

		if( is_array( $widgetopts_taxonomies ) && !empty( $widgetopts_taxonomies ) && !in_array( $taxonomy, $widgetopts_taxonomies ) ){
			delete_option( 'widgetopts_global_taxonomies' );
		}

		if( $taxonomy == 'category' ){
			delete_option( 'widgetopts_global_categories' );
		}
	}
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit