From 1fb97e5cccd85dd514bdf96b20c0e01d302bacbf Mon Sep 17 00:00:00 2001
From: Hai Zheng ' . $cdn_setup_err . ' ' . __('Last Verification Result', 'litespeed-cache') . ': ' . $setup_summary['cdn_verify_msg'] . ' ' . __('Last Verification Result', 'litespeed-cache') . ': ' . $setup_summary['cdn_verify_msg'] . ' ' . __('You will receive an email upon status update.', 'litespeed-cache') . ' ' . __('This process may take several minutes.', 'litespeed-cache') . '
- ' . __('Account is linked!', 'litespeed-cache') . ''; ?>
+
+
- ',
- false,
- 'litespeed-link-with-icon'
- ); ?>
+
',
+ __('Review DNS records', 'litespeed-cache') . ' ',
false,
'litespeed-link-with-icon'
); ?>
+
-
-
-
-
-
- ',
- false,
- 'litespeed-link-with-icon'
- ); ?>
-
-
-
-
-
-
+
-
-
-
-
-
- title($id); ?>
-
-
- build_switch($id); ?>
-
- Here will show info html from QC carry-on.
form_end();
@@ -41,156 +23,43 @@
: My QUIC.cloud
-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_err'])) {
- $cdn_setup_err = $setup_summary['cdn_setup_err'];
-}
-
-$nameservers = array();
-$cname = $this->conf(Base::O_QC_CNAME);
-if (!empty($setup_summary['cdn_setup_ts'])) {
- $cdn_setup_ts = $setup_summary['cdn_setup_ts'];
-
- 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');
- // wp_date requires WP v5.3+
- if (function_exists('wp_date')) {
- $curr_status .= ' ' . 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 = '
+
+
+
+
+
-
+
+
+
+ $cnt) {
+ echo '
+
+
+
+
+
+ ';
+ } ?>
+
+ ' . wp_kses_post($type) . ' ' . wp_kses_post($cnt) . '
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- $cnt) {
- echo '
-
-
-
-
-
- ';
- } ?>
-
- ' . wp_kses_post($type) . ' ' . wp_kses_post($cnt) . '
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- -
--
- -- -
-