|
23 | 23 | exit; // Exit if accessed directly. |
24 | 24 | } |
25 | 25 |
|
26 | | -add_filter( 'pre_http_request', 'custom_acf_request_intercept', 10, 3 ); |
27 | | -function custom_acf_request_intercept( $preempt, $parsed_args, $url ) { |
28 | | - // Intercept ACF activation request |
29 | | - if ( strpos( $url, 'https://connect.advancedcustomfields.com/v2/plugins/activate?p=pro' ) !== false ) { |
30 | | - $response = array( |
31 | | - 'headers' => array(), |
32 | | - 'body' => json_encode(array( |
33 | | - "message" => "Licence key activated. Updates are now enabled", |
34 | | - "license" => "E7B0U5F7CC8189E6ACL19DD6F6E1B662", |
35 | | - "license_status" => array( |
36 | | - "status" => "active", |
37 | | - "lifetime" => true, |
38 | | - "name" => "Agency", |
39 | | - "view_licenses_url" => "https://www.advancedcustomfields.com/my-account/view-licenses/" |
40 | | - ), |
41 | | - "status" => 1 |
42 | | - )), |
43 | | - 'response' => array( |
44 | | - 'code' => 200, |
45 | | - 'message' => 'OK' |
46 | | - ) |
47 | | - ); |
48 | | - return $response; |
49 | | - } |
50 | | - |
51 | | - // Intercept ACF validation request |
52 | | - if ( strpos( $url, 'https://connect.advancedcustomfields.com/v2/plugins/validate?p=pro' ) !== false ) { |
53 | | - $response = array( |
54 | | - 'headers' => array(), |
55 | | - 'body' => json_encode(array( |
56 | | - "expiration" => 864000, |
57 | | - "license_status" => array( |
58 | | - "status" => "active", |
59 | | - "lifetime" => true, |
60 | | - "name" => "Agency", |
61 | | - "view_licenses_url" => "https://www.advancedcustomfields.com/my-account/view-licenses/" |
62 | | - ), |
63 | | - "status" => 1 |
64 | | - )), |
65 | | - 'response' => array( |
66 | | - 'code' => 200, |
67 | | - 'message' => 'OK' |
68 | | - ) |
69 | | - ); |
70 | | - return $response; |
71 | | - } |
72 | | - |
73 | | - // Proceed with the original request if the URL doesn't match |
74 | | - return $preempt; |
75 | | -} |
| 26 | +//nulled raz0r |
| 27 | +$lic_data = base64_encode( |
| 28 | + maybe_serialize( |
| 29 | + array( |
| 30 | + 'key' => '********', |
| 31 | + 'url' => home_url(), |
| 32 | + ) |
| 33 | + ) |
| 34 | +); |
| 35 | +update_option('acf_pro_license', $lic_data); |
| 36 | +update_option('acf_pro_license_status', array('status' => 'active', 'next_check' => time() * 9)); |
| 37 | +add_action('init', function () { |
| 38 | + add_filter('pre_http_request', function ($pre, $url, $request_args) { |
| 39 | + if (is_string($url) && strpos($url, 'https://connect.advancedcustomfields.com/') !== false) { |
| 40 | + return array('response' => array('code' => 200, 'message' => 'OK')); |
| 41 | + } |
| 42 | + return $pre; |
| 43 | + }, 10, 3); |
| 44 | +}); |
| 45 | +delete_site_transient( 'update_plugins' ); |
| 46 | +delete_transient( 'acf_plugin_updates' ); |
76 | 47 |
|
77 | 48 | if ( ! class_exists( 'ACF' ) ) { |
78 | 49 |
|
|
0 commit comments