|
Server : Apache System : Linux s1230 5.15.0-139-generic #149~20.04.1 SMP Tue Jul 14 11:21:49 UTC 2026 x86_64 User : p141464 ( 418825) PHP Version : 7.4.33.12 Disable Function : NONE Directory : /html/KMU-CSR-PLANER/wp-content/plugins/wtec-webp/includes/ATEC/ |
Upload File : |
<?php
namespace ATEC;
defined('ABSPATH') || exit;
use ATEC\GROUP;
use ATEC\INIT;
use ATEC\TOOLS;
final class LICENSE
{
private static function feature_list($slug, $is_atec)
{
echo
'<div class="atec-db atec-mt-10">
🎁 ';
if ($slug=== 'wpmc') echo '<strong>Six storage options</strong>';
else echo '<strong>Including over 60+ valuable plugins</strong>';
echo
'<br class="atec-mb-10">
<div class="atec-dilb atec-mr-10">
<ul class="atec-border-white atec-bg-w">
<li>⭐ Priority support</li>
<li>⭐ Upgrades & updates</li>
</ul>
</div>';
if ($slug=== 'wpmc')
{
echo
'<div class="atec-dilb atec-ml-10">
<ul class="atec-border-white atec-bg-w">
<li>⭐ Custom post types</li>
<li>⭐ Full page cache priming</li>
<li>⭐ Exclude URLs</li>
</ul>
</div>';
}
echo
'<div class="atec-dilb atec-ml-10">
<ul class="atec-border-white atec-bg-w">
<li>⭐ ‘Lifetime-site-License’</li>
<li>⭐ Access to all the ‘PRO’ features</li>
</ul>
</div>
</div>';
}
public static function init($una)
{
if (!extension_loaded('openssl')) INIT::admin_notice($una->slug, 'warning', 'The openSSL extension is required for license handling.');
$is_atec = !in_array($una->slug,['wpmc'],true);
echo
'<div class="atec-center" style="margin: 20px auto; padding: 20px;">
<h3 class="atec-row atec-fit atec-m-auto" style="align-items: baseline;">';
\ATEC\SVG::echo($una->slug=== 'wpmc' ? 'wpmc' : 'wpa', 'atec-vat');
if ($una->slug=== 'wpmc') echo 'Mega Cache';
else echo '<span class="atec-logo-text" style="margin-right: -10px;">atec</span>-Plugins';
echo ' ‘PRO’ package',
'</h3>
<div id="pro_package" style="display: none; style="padding: 5px 15px 10px 15px;">';
self::feature_list($una->slug, $is_atec);
echo
'<div class="atec-db atec-m-auto atec-border-white atec-bg-w" style="padding: 5px;">';
if (!$is_atec)
{
$arr = $una->slug=== 'wpmc' ? ['disk', 'apcu', 'redis', 'memcached', 'mariadb', 'mysql'] : ['redis', 'memcached'];
foreach ($arr as $a) \ATEC\SVG::echo($a, 'atec-m-3');
}
else
{
$atec_group = GROUP::all_plugins();
$halfway = round(count($atec_group)/2);
foreach ($atec_group as $index => $p)
{
if (in_array($p->slug,['wpmc'])) continue;
if ($index>0 && $index % $halfway===0) echo '<br>';
\ATEC\SVG::echo($p->slug, 'atec-m-3');
}
}
echo
'</div>';
echo
'<p style="font-size: 1.2em; line-height: 1.3em;">',
'Buy the ‘PRO’ package through one time payment.<br>',
'The license is valid for the lifetime of your site (domain).<br><b>',
'No subscription. No registration required.</b>',
'</p>';
$domain = $una->slug === 'wpmc' ? 'wpmegacache' : 'atecplugins';
$licenseUrl = 'https://'.$domain.'.com/license/';
echo
'<div class=" atec-m-auto">
<a class="atec-nodeco atec-fit" href="', esc_url($licenseUrl), '" target="_blank">
<button class="button button-primary">GET YOUR ‘PRO’ PACKAGE NOW</button>
<div class="atec-mt-5 atec-small">', esc_textarea($licenseUrl), '</div>
</a>
</div>';
echo
'</div>';
if (method_exists('\ATEC\PRO', 'pro_form')) \ATEC\PRO::pro_form($una);
else TOOLS::reg_inline_script('group_pro_package', 'jQuery("#pro_package").show();');
echo
'</div>';
TOOLS::reg_inline_script('atec_pro_banner', 'jQuery("#atec_pro_banner").remove();');
}
}
?>