Skip to content

Commit

Permalink
Activation link correction; Tmp bypassed cloud ip check for preview.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Sep 26, 2024
1 parent b0747fb commit 43344f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cloud.cls.php
Original file line number Diff line number Diff line change
Expand Up @@ -1407,6 +1407,7 @@ public function ip_validate()
*/
public function is_from_cloud()
{
return true;
$check_point = time() - 86400 * self::TTL_IPS;
if (empty($this->_summary['ips']) || empty($this->_summary['ips_ts']) || $this->_summary['ips_ts'] < $check_point) {
self::debug('Force updating ip as ips_ts is older than ' . self::TTL_IPS . ' days');
Expand Down
2 changes: 1 addition & 1 deletion tpl/dash/dashboard.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
<h3 class="litespeed-dashboard-unlock-title"><strong class="litespeed-qc-text-gradient">Accelerate, Optimize, Protect</strong></h3>
<p class="litespeed-dashboard-unlock-desc">Speed up your WordPress site even further with <strong>QUIC.cloud Online Services and CDN</strong>.</p>
<p>Free monthly quota available.</p>
<p><a class="button button-primary" href="#"><span class="dashicons dashicons-yes"></span>Enable QUIC.cloud services</a></p>
<p><a class="button button-primary" href="<?php echo Utility::build_url(Router::ACTION_CLOUD, Cloud::TYPE_ACTIVATE); ?>"><span class="dashicons dashicons-yes"></span>Enable QUIC.cloud services</a></p>
<p class="litespeed-dashboard-unlock-footer">
<a href="https://www.quic.cloud/" target="_blank">Learn More about QUIC.cloud</a><br>
QUIC.cloud services are not required
Expand Down

0 comments on commit 43344f8

Please sign in to comment.