parse_qc_redir();
$cloud_summary = Cloud::get_summary();
$can_token = $__cloud->can_token();
$is_requesting = !empty($cloud_summary['token_ts']) && (empty($cloud_summary['apikey_ts']) || $cloud_summary['token_ts'] > $cloud_summary['apikey_ts']);
$apply_btn_txt = __('Request Domain Key', 'litespeed-cache');
if ($this->conf(Base::O_API_KEY)) {
$apply_btn_txt = __('Refresh Domain Key', 'litespeed-cache');
if ($is_requesting) {
$apply_btn_txt = __('Waiting for Refresh', 'litespeed-cache');
}
} elseif ($is_requesting) {
$apply_btn_txt = __('Waiting for Approval', 'litespeed-cache');
}
$apply_ts_txt = '';
if (!empty($cloud_summary['token_ts'])) {
$apply_ts_txt .= ' ' . __('Requested', 'litespeed-cache') . ': ' . Utility::readable_time($cloud_summary['token_ts']) . '
';
}
if (!empty($cloud_summary['apikey_ts'])) {
$apply_ts_txt .= ' ' . __('Approved', 'litespeed-cache') . ': ' . Utility::readable_time($cloud_summary['apikey_ts']) . '
';
}
if (!$can_token) {
$next_available_req = $cloud_summary['token_ts'] + Cloud::EXPIRATION_TOKEN - time();
$apply_ts_txt .= ' ' . sprintf(__('Next available request time: After %s
', 'litespeed-cache'), Utility::readable_time($next_available_req, 0, true));
}
$this->form_action();
?>
title($id); ?> |
build_input($id); ?>
build_input($id, null, null, 'text', true); ?>
qc_link(), __('Visit My Dashboard on QUIC.cloud', 'litespeed-cache'), false, 'button litespeed-btn-success litespeed-right'); ?>
can_link_qc()) : ?>
:' . $apply_btn_txt . ''); ?> : 1) ' . home_url() . '/' . (function_exists('rest_get_url_prefix') ? rest_get_url_prefix() : apply_filters('rest_url_prefix', 'wp-json')) . '/litespeed/v1/token'); ?> 2) : ::' . Lang::title(Base::O_API_KEY) . '') . ' See Terms.'; ?> :' . __('Link to QUIC.cloud', 'litespeed-cache') . ''); ?> :
⚠️
' data-litespeed-cfm="">
Service: |
---|---|
title($id); ?> |
build_switch($id); ?>
🚨
conf(Base::O_GUEST) && !$this->conf(Base::O_OPTM_UCSS)) {
$typeList[] = 'UCSS';
}
if ($this->conf(Base::O_GUEST) && !$this->conf(Base::O_OPTM_CSS_ASYNC)) {
$typeList[] = 'CCSS';
}
if (!empty($typeList)) {
$theType = implode('/', $typeList);
echo '
'; echo ''; echo '⚠️ ' . sprintf(__('Your %1s quota on %2s will still be in use.', 'litespeed-cache'), $theType, 'QUIC.cloud'); echo ''; } ?> conf(Base::O_GUEST)) : ?> ⚠️ : ' . Lang::title(Base::O_GUEST) . ''); ?> conf(Base::O_CACHE_MOBILE)) : ?> ⚠️ : ' . Lang::title(Base::O_CACHE_MOBILE) . ''); ?> conf(Base::O_IMG_OPTM_WEBP)) : ?> ⚠️ : ' . Lang::title(Base::O_IMG_OPTM_WEBP) . ''); ?> |
title($id); ?> | build_input($id); ?> |
title($id); ?> |
build_switch($id); ?>
|