maybe_extract_token(); $cloud_linked = Cloud::get_summary('is_linked'); $setup_summary = Cdn_Setup::get_summary(); $cdn_setup_done_ts = 0; if (!empty($setup_summary['cdn_setup_done_ts'])) { $cdn_setup_done_ts = $setup_summary['cdn_setup_done_ts']; } $has_setup_token = $__cdnsetup->has_cdn_setup_token(); if (!empty($setup_summary['cdn_setup_ts'])) { $cdn_setup_ts = $setup_summary['cdn_setup_ts']; if (!empty($setup_summary['cdn_setup_err'])) { $cdn_setup_err = $setup_summary['cdn_setup_err']; } if ($this->conf(Base::O_QC_NAMESERVERS)) { $nameservers = explode(',', $this->conf(Base::O_QC_NAMESERVERS)); } } else { $cdn_setup_ts = 0; } $curr_status = '' . __('Not running', 'litespeed-cache') . ''; $apply_btn_txt = __('Run CDN Setup', 'litespeed-cache'); $apply_btn_type = Cdn_Setup::TYPE_RUN; $disabled = ''; $dom = parse_url(home_url(), PHP_URL_HOST); if ($cdn_setup_done_ts) { $curr_status = ' ' . __('Done', 'litespeed-cache') . ' ' . sprintf(__('Completed at %s', 'litespeed-cache'), wp_date(get_option('date_format') . ' ' . get_option('time_format'), $cdn_setup_done_ts)) . ''; $disabled = 'disabled'; } else if (!$has_setup_token) { $disabled = 'disabled'; } else if (!empty($cdn_setup_err)) { $curr_status = ' ' . __('Paused', 'litespeed-cache'); $curr_status_subline = '
' . $cdn_setup_err . '
'; } else if ($cdn_setup_ts > 0) { if (isset($nameservers)) { $curr_status = ' ' . __('Verifying, waiting for nameservers to be updated.', 'litespeed-cache') . ' ' . __('Click the refresh button below to refresh status.', 'litespeed-cache'); if (isset($setup_summary['cdn_verify_msg'])) { $curr_status_subline = '' . __('Last Verification Result', 'litespeed-cache') . ': ' . $setup_summary['cdn_verify_msg'] . '
'; } } else { $curr_status = ' ' . __('In Progress', 'litespeed-cache'); $curr_status_subline = '' . __('You will receive an email upon status update.', 'litespeed-cache') . ' ' . __('This process may take several minutes.', 'litespeed-cache') . '
'; } $apply_btn_txt = __('Refresh CDN Setup Status', 'litespeed-cache'); $apply_btn_type = Cdn_Setup::TYPE_STATUS; } ?>
' . __('Account is linked!', 'litespeed-cache') . ''; ?>
', false, 'litespeed-link-with-icon' ); ?> ', false, 'litespeed-link-with-icon' ); ?>
' . __('Ready to run CDN setup.', 'litespeed-cache') . ''; ?>
' . wp_kses_post($type) . ' | ' . wp_kses_post($cnt) . ' |
', false, 'litespeed-link-with-icon' ); ?>