HEX
Server: nginx/1.26.3
System: Linux debian 6.1.0-31-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.128-1 (2025-02-07) x86_64
User: root (0)
PHP: 5.6.40
Disabled: passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,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,imap_open,apache_setenv
Upload Files
File: /www/wwwroot/gxdaosen.net/wp-content/themes/blossom-shop/inc/customizer/customizer.php
<?php
/**
 * Blossom Shop Theme Customizer
 *
 * @package Blossom_Shop
 */

/**
 * Requiring customizer panels & sections
*/
$blossom_shop_panels     = array( 'info', 'site', 'appearance', 'layout', 'home', 'general', 'footer' );

foreach( $blossom_shop_panels as $p ){
    require get_template_directory() . '/inc/customizer/' . $p . '.php';
}

/**
 * Sanitization Functions
*/
require get_template_directory() . '/inc/customizer/sanitization-functions.php';

/**
 * Active Callbacks
*/
require get_template_directory() . '/inc/customizer/active-callback.php';

/**
 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously.
 */
function blossom_shop_customize_preview_js() {
	wp_enqueue_script( 'blossom-shop-customizer', get_template_directory_uri() . '/inc/js/customizer.js', array( 'customize-preview' ), BLOSSOM_SHOP_THEME_VERSION, true );
}
add_action( 'customize_preview_init', 'blossom_shop_customize_preview_js' );

function blossom_shop_customize_script(){
    $array = array(
        'home'    => get_permalink( get_option( 'page_on_front' ) ),
        'flushFonts'        => wp_create_nonce( 'blossom-shop-local-fonts-flush' ),
    );
    wp_enqueue_style( 'blossom-shop-customize', get_template_directory_uri() . '/inc/css/customize.css', array(), BLOSSOM_SHOP_THEME_VERSION );
    wp_enqueue_script( 'blossom-shop-customize', get_template_directory_uri() . '/inc/js/customize.js', array( 'jquery', 'customize-controls' ), BLOSSOM_SHOP_THEME_VERSION, true );
    wp_localize_script( 'blossom-shop-customize', 'blossom_shop_cdata', $array );

    wp_localize_script( 'blossom-shop-repeater', 'blossom_shop_customize',
		array(
			'nonce' => wp_create_nonce( 'blossom_shop_customize_nonce' )
		)
	);
}
add_action( 'customize_controls_enqueue_scripts', 'blossom_shop_customize_script' );

/**
 * Reset font folder
 *
 * @access public
 * @return void
 */
function blossom_shop_ajax_delete_fonts_folder() {
    // Check request.
    if ( ! check_ajax_referer( 'blossom-shop-local-fonts-flush', 'nonce', false ) ) {
        wp_send_json_error( 'invalid_nonce' );
    }
    if ( ! current_user_can( 'edit_theme_options' ) ) {
        wp_send_json_error( 'invalid_permissions' );
    }
    if ( class_exists( '\Blossom_Shop_WebFont_Loader' ) ) {
        $font_loader = new \Blossom_Shop_WebFont_Loader( '' );
        $removed = $font_loader->delete_fonts_folder();
        if ( ! $removed ) {
            wp_send_json_error( 'failed_to_flush' );
        }
        wp_send_json_success();
    }
    wp_send_json_error( 'no_font_loader' );
}
add_action( 'wp_ajax_blossom_shop_flush_fonts_folder', 'blossom_shop_ajax_delete_fonts_folder' );