芝麻web文件管理V1.00
编辑当前文件:/home/freeclou/optimyar/wp-content/plugins/ithemes-security-pro/lib/updater/init.php
filter_update_plugins( $update_plugins ); } add_filter( 'site_transient_update_plugins', 'ithemes_updater_filter_update_plugins' ); add_filter( 'transient_update_plugins', 'ithemes_updater_filter_update_plugins' ); function ithemes_updater_filter_update_themes( $update_themes ) { if ( ! class_exists( 'Ithemes_Updater_Settings' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/settings.php' ); } return $GLOBALS['ithemes-updater-settings']->filter_update_themes( $update_themes ); } add_filter( 'site_transient_update_themes', 'ithemes_updater_filter_update_themes' ); add_filter( 'transient_update_themes', 'ithemes_updater_filter_update_themes' ); function ithemes_updater_get_licensed_site_url() { if ( ! class_exists( 'Ithemes_Updater_Settings' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/settings.php' ); } return $GLOBALS['ithemes-updater-settings']->get_licensed_site_url(); } function ithemes_updater_get_seen_hostnames() { if ( ! class_exists( 'Ithemes_Updater_Settings' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/settings.php' ); } return $GLOBALS['ithemes-updater-settings']->get_hostname_history(); } function ithemes_updater_is_request_on_licensed_site_url() { if ( ! class_exists( 'Ithemes_Updater_Settings' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/settings.php' ); } return $GLOBALS['ithemes-updater-settings']->is_request_on_licensed_site_url(); } function ithemes_updater_get_change_licensed_site_url( $redirect = '' ) { return admin_url( 'options-general.php?page=ithemes-licensing&action=change_licensed_site_url&redirect=' . urlencode( $redirect ) ); } function ithemes_updater_change_licensed_site_url( $redirect = '' ) { wp_redirect( ithemes_updater_get_change_licensed_site_url( $redirect ) ); exit(); } function ithemes_updater_is_licensed_site_url_confirmed() { if ( ! class_exists( 'Ithemes_Updater_Settings' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/settings.php' ); } return $GLOBALS['ithemes-updater-settings']->is_licensed_site_url_confirmed(); } function ithemes_updater_site_has_patchstack( $cache = true, $comparison_url = '' ) { if ( ! class_exists( 'Ithemes_Updater_Keys' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/keys.php' ); } if ( ! class_exists( 'Ithemes_Updater_Packages' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/packages.php' ); } $key = Ithemes_Updater_Keys::get( 'ithemes-security-pro' ); if ( ! $key ) { return false; } if ( ! class_exists( 'Ithemes_Updater_API' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/api.php' ); } $quota = Ithemes_Updater_API::get_patchstack_quota( $key, $cache ); $site_url = ithemes_updater_get_licensed_site_url(); $site_url = preg_replace( '|^https?://|', '', $site_url ); $site_url = str_replace( 'www.', '', $site_url ); if ( $comparison_url ) { $comparison_url = preg_replace( '|^https?://|', '', $comparison_url ); if ( $comparison_url === $site_url && in_array( $comparison_url, $quota['sites'], true ) ) { return true; } return false; } return in_array( $site_url, $quota['sites'], true ); } function ithemes_updater_get_licensed_username( $package ) { if ( ! class_exists( 'Ithemes_Updater_API' ) ) { require( $GLOBALS['ithemes_updater_path'] . '/api.php' ); } $details = Ithemes_Updater_API::get_package_details(); if ( ! isset( $details['packages'][ $package ]['user'] ) ) { return ''; } return $details['packages'][ $package ]['user']; }