Eklenecek Kod
Eklenecek Kod
Lisanslayacağınız Scripte Aşağıdaki Kodu Ekleyiniz. Ioncube ile Şifrelemeyi Unutmayınız !
Anasayfa
Eklenecek Kod
Eklenecek Kod
$protocol = strtolower(substr($_SERVER["SERVER_PROTOCOL"],0,5))=='https'?'https':'http'; $protocol = isset($_SERVER["HTTPS"]) ? 'https://' : 'http://'; $url=$protocol.$_SERVER["HTTP_HOST"]; $ayarlar = $db->prepare("SELECT * FROM lisans"); $ayarlar->execute(); $ayarrow = $ayarlar->fetch(PDO:: FETCH_OBJ); function curl($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_HEADER, false); $output=curl_exec($ch); curl_close($ch); return $output; } $birciftcontrol = curl("https://lisans.phpsiteler.com.tr/system/controllicense.php?key=".$ayarrow->lisans_numarasi."&product=".$ayarrow->urun_numarasi."&domain=".$ayarrow->site_url); $birciftcontrolinfo = json_decode($birciftcontrol); if($birciftcontrolinfo->license_key == "#ERROR_1" || $birciftcontrolinfo ->license_key == "#ERROR_4"){ header('Location: '.$url.'/lisans/lisans_pasif.php'); }