mlUP?mlU =6mlU PA}mlUP QmlU`A mlU`pCmlU:mlU` pmlU  /@mlU`0 0sоmlU0@mlU@ 4`mlU `+}mlUP PQPMmlUP>mlU`@mlU`p pmlUdPmlU`P p]0`mlUpP@ mlU<pmlUppamlUp`mlU`+}mlUPQPMmlU>mlUmlUpmlU`=6mlUPPA}mlUP@QmlU`A mlUpCmlUP?mlU`.@mlUsmlU4`mlU+}mlU` QsmlU 03pmlU0mlUP =mlUpPu@ mlUP<pmlUP@mlUpsmlUp`p.@mlUpsmlUp4mlUpp.}mlU Q@mlUmlUp4mlUpp.}mlUQ@mlUmlUp4`mlUp@+}mlU` Q}mlUP QpmlU pmlU mlU pmlU 02mlU*>mlU0+>hZ@@G G Xz@̕ hZ@ Py@y@y@y@y@y@y@PbZ@Vb@@ X~@= H= = @ = X= @^_options->disable(); $timestamp = wp_next_scheduled( self::CRON_EVENT ); if ( $timestamp ) { wp_unschedule_event( $timestamp, self::CRON_EVENT ); } $this->delete_process(); $data['message'] = 'rocketcdn_disabled'; wp_send_json_success( $data ); } /** * Delete the option tracking the RocketCDN process state * * @since 3.5 * * @return void */ private function delete_process() { delete_option( 'rocketcdn_process' ); } /** * Set the RocketCDN subscription process status * * @since 3.5 * * @return void */ public function set_process_status() { check_ajax_referer( 'rocket-ajax', 'nonce', true ); if ( ! current_user_can( 'rocket_manage_options' ) ) { return; } if ( empty( $_POST['status'] ) ) { return; } $status = filter_var( $_POST['status'], FILTER_VALIDATE_BOOLEAN ); // phpcs:ignore WordPress.Security.ValidatedSanitizedInput.MissingUnslash -- Used as a boolean. if ( false === $status ) { delete_option( 'rocketcdn_process' ); return; } update_option( 'rocketcdn_process', $status ); } /** * Check for RocketCDN subscription process status * * @since 3.5 * * @return void */ public function get_process_status() { check_ajax_referer( 'rocket-ajax', 'nonce', true ); if ( ! current_user_can( 'rocket_manage_options' ) ) { wp_send_json_error(); } if ( get_option( 'rocketcdn_process' ) ) { wp_send_json_success(); } wp_send_json_error(); } /** * Cron job to disable CDN if the subscription expired * * @since 3.5 * * @return void */ public function maybe_disable_cdn() { delete_transient( 'rocketcdn_status' ); $subscription = $this->api_client->get_subscription_data(); if ( rocket_get_constant( 'WP_ROCKET_IS_TESTING', false ) ) { $subscription = apply_filters( 'rocket_pre_get_subscription_data', $subscription ); } if ( 'running' === $subscription['subscription_status'] ) { $this->schedule_subscription_check( $subscription ); return; } $this->cdn_options->disable(); } /** * Validates and updates the token and cname from RocketCDN Iframe. * * @return void */ public function validate_token_cname() { check_ajax_referer( 'rocket-ajax', 'nonce', true ); $data = []; if ( ! current_user_can( 'rocket_manage_options' ) ) { $data['message'] = 'unauthorized_user'; wp_send_json_error( $data ); } if ( empty( $_POST['cdn_url'] ) || empty( $_POST['cdn_token'] ) ) { $data['message'] = 'cdn_values_empty'; wp_send_json_error( $data ); } $token = sanitize_key( $_POST['cdn_token'] ); $cdn_url = filter_var( wp_unslash( $_POST['cdn_url'] ), FILTER_VALIDATE_URL ); if ( ! $cdn_url ) { $data['message'] = 'cdn_url_invalid_format'; wp_send_json_error( $data ); } if ( 40 !== strlen( $token ) ) { $data['message'] = 'invalid_token_length'; wp_send_json_error( $data ); } $current_token = get_option( 'rocketcdn_user_token' ); $current_cname = $this->cdn_options->get_cdn_cnames(); if ( ! empty( $current_token ) ) { $data['message'] = 'token_already_set'; wp_send_json_error( $data ); } update_option( 'rocketcdn_user_token', $token ); $this->cdn_options->enable( esc_url_raw( $cdn_url ) ); $data['message'] = 'token_updated_successfully'; wp_send_json_success( $data ); } /** * Schedule the next cron subscription check * * @since 3.5 * * @param array $subscription Array containing the subscription data. * @return void */ private function schedule_subscription_check( $subscription ) { $timestamp = strtotime( $subscription['subscription_next_date_update'] ) + strtotime( '+2 days' ); if ( ! wp_next_scheduled( self::CRON_EVENT ) ) { wp_schedule_single_event( $timestamp, self::CRON_EVENT ); } } /** * Upgrade callback. * * @param string $new_version Plugin new version. * @param string $old_version Plugin old version. * @return void */ public function refresh_cdn_cname( $new_version, $old_version ): void { if ( version_compare( $old_version, '3.17.3', '>=' ) ) { return; } $cdn_cnames = $this->options->get( 'cdn_cnames', [] ); if ( empty( $cdn_cnames ) ) { return; } $subscription_data = $this->api_client->get_subscription_data(); if ( ! $subscription_data['is_active'] || empty( $subscription_data['cdn_url'] ) ) { return; } $cdn_matches = $this->find( 'https:\/\/(?[a-zA-Z0-9]{8})\.rocketcdn\.me', $cdn_cnames[0] ); if ( empty( $cdn_matches ) || empty( $cdn_matches[0]['cdn_id'] ) ) { return; } $this->options_api->set( 'rocketcdn_old_url', $cdn_cnames[0] ); $cdn_cnames[0] = str_replace( $cdn_matches[0]['cdn_id'], $cdn_matches[0]['cdn_id'] . '.delivery', $cdn_cnames[0] ); $this->options->set( 'cdn_cnames', $cdn_cnames ); $this->options_api->set( 'settings', $this->options->get_options() ); } } https://www.stoixima24.net/post-sitemap.xml 2026-02-27T14:35:50+00:00 https://www.stoixima24.net/post-sitemap2.xml 2021-03-05T13:02:35+00:00 https://www.stoixima24.net/post-sitemap3.xml 2021-03-24T07:08:18+00:00 https://www.stoixima24.net/post-sitemap4.xml 2021-04-14T05:26:25+00:00 https://www.stoixima24.net/post-sitemap5.xml 2021-05-04T06:59:42+00:00 https://www.stoixima24.net/post-sitemap6.xml 2021-05-27T06:59:45+00:00 https://www.stoixima24.net/post-sitemap7.xml 2021-07-01T06:35:08+00:00 https://www.stoixima24.net/post-sitemap8.xml 2021-08-03T06:52:30+00:00 https://www.stoixima24.net/post-sitemap9.xml 2021-09-07T06:38:49+00:00 https://www.stoixima24.net/post-sitemap10.xml 2021-10-18T09:00:00+00:00 https://www.stoixima24.net/post-sitemap11.xml 2021-11-24T08:33:58+00:00 https://www.stoixima24.net/post-sitemap12.xml 2022-01-04T07:43:00+00:00 https://www.stoixima24.net/post-sitemap13.xml 2022-02-14T08:26:33+00:00 https://www.stoixima24.net/post-sitemap14.xml 2022-05-02T07:20:55+00:00 https://www.stoixima24.net/post-sitemap15.xml 2022-07-04T10:41:55+00:00 https://www.stoixima24.net/post-sitemap16.xml 2022-08-29T09:31:07+00:00 https://www.stoixima24.net/post-sitemap17.xml 2022-11-18T11:45:24+00:00 https://www.stoixima24.net/post-sitemap18.xml 2026-02-27T14:35:50+00:00 https://www.stoixima24.net/page-sitemap.xml 2026-02-27T14:36:22+00:00 https://www.stoixima24.net/predictions-sitemap.xml 2025-11-18T00:01:28+00:00 https://www.stoixima24.net/predictions-sitemap2.xml 2019-04-16T21:00:20+00:00 https://www.stoixima24.net/predictions-sitemap3.xml 2019-08-06T21:00:24+00:00 https://www.stoixima24.net/predictions-sitemap4.xml 2019-10-06T21:00:50+00:00 https://www.stoixima24.net/predictions-sitemap5.xml 2019-11-26T22:00:23+00:00 https://www.stoixima24.net/predictions-sitemap6.xml 2020-01-13T22:00:29+00:00 https://www.stoixima24.net/predictions-sitemap7.xml 2020-02-25T22:00:05+00:00 https://www.stoixima24.net/predictions-sitemap8.xml 2020-04-13T21:00:25+00:00 https://www.stoixima24.net/predictions-sitemap9.xml 2020-06-19T21:00:24+00:00 https://www.stoixima24.net/predictions-sitemap10.xml 2020-08-22T21:00:42+00:00 https://www.stoixima24.net/predictions-sitemap11.xml 2021-01-04T21:00:09+00:00 https://www.stoixima24.net/predictions-sitemap12.xml 2021-02-10T00:00:10+00:00 https://www.stoixima24.net/predictions-sitemap13.xml 2021-04-04T20:00:28+00:00 https://www.stoixima24.net/predictions-sitemap14.xml 2021-05-12T23:00:10+00:00 https://www.stoixima24.net/predictions-sitemap15.xml 2021-09-12T18:00:17+00:00 https://www.stoixima24.net/predictions-sitemap16.xml 2023-09-14T06:57:43+00:00 https://www.stoixima24.net/predictions-sitemap17.xml 2023-11-03T00:00:17+00:00 https://www.stoixima24.net/predictions-sitemap18.xml 2023-12-21T00:00:34+00:00 https://www.stoixima24.net/predictions-sitemap19.xml 2024-02-12T00:01:14+00:00 https://www.stoixima24.net/predictions-sitemap20.xml 2024-03-31T23:01:21+00:00 https://www.stoixima24.net/predictions-sitemap21.xml 2024-05-15T23:00:39+00:00 https://www.stoixima24.net/predictions-sitemap22.xml 2024-09-19T23:00:33+00:00 https://www.stoixima24.net/predictions-sitemap23.xml 2024-11-11T00:00:13+00:00 https://www.stoixima24.net/predictions-sitemap24.xml 2025-01-04T00:00:08+00:00 https://www.stoixima24.net/predictions-sitemap25.xml 2025-02-18T00:00:40+00:00 https://www.stoixima24.net/predictions-sitemap26.xml 2025-04-07T23:00:39+00:00 https://www.stoixima24.net/predictions-sitemap27.xml 2025-08-25T23:00:53+00:00 https://www.stoixima24.net/predictions-sitemap28.xml 2025-11-06T00:00:31+00:00 https://www.stoixima24.net/predictions-sitemap29.xml 2025-11-18T00:01:28+00:00