Xóa hàm
$license_key = $_ENV['KEY_KICH_HOAT'];
$domain = $_SERVER['HTTP_HOST'];
$data = array(
'licensekey' => $license_key,
'domain' => $domain
);
$url = 'https://banquyen.dichvuright.com/dichvuright.php';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
if (curl_errno($ch)) {
echo 'CURL Error: ' . curl_error($ch);
exit;
} else {
if ($response === 'Active') {
$license_valid = true;
} else {
$license_valid = false;
}
}
curl_close($ch);
if (!$license_valid) {
require_once(__DIR__.'/../frontend/page/views/banquyen.php');
exit;
}
trong config/function,php để không bị key bản quyền