Şu koddaki İnstagram bağlantısını kesmek istiyorum yardımcı olabilecek varmı ücretli ücretsiz
<?php
function convertAmk($secs){
$output = '';
if($secs >= 86400) {
$days = floor($secs/86400);
$secs = $secs%86400;
$output = $days.' Gün';
if($days != 1) $output .= '';
if($secs > 0) $output .= ', ';
}
if($secs>=3600){
$hours = floor($secs/3600);
$secs = $secs%3600;
$output .= $hours.' Saat';
if($hours != 1) $output .= '';
if($secs > 0) $output .= ', ';
}
if($secs>=60){
$minutes = floor($secs/60);
$secs = $secs%60;
$output .= $minutes.' Dakika';
if($minutes != 1) $output .= '';
if($secs > 0) $output .= ' ';
}
if($secs != 1) $output .= '';
return $output;
}
function IDForUsername($id){
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://i.instagram.com/api/v1/users/$id/info/");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (iPhone; CPU iPhone OS 12_3_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 Instagram 105.0.0.11.118 (iPhone11,8; iOS 12_3_1; en_US; en-US; scale=2.00; 828x1792; 165586599)');
$response = curl_exec($ch);
$hi = json_decode($response, true);
$hi = $hi['user']['username'];
return $hi;
}
define('PATH',$_SERVER['DOCUMENT_ROOT'].'/');
include PATH."botcuyuz-fonksiyon.php";
$url=$_GET['url'];
$key=$_GET['key'];
$limit=$_GET['limit'];
$id=array("292","292","292");
$services=$id[rand(0,2)];
if(!$key=="Güvenlik Kodu"){
echo "api key hatalı";
exit();
}
$fonksiyon = new Fonksiyon();
$media= $fonksiyon->CheckLink($url);
if($media!= TRUE){
echo 'Hesap gizli veya link yanlış';
exit();
}
$gelenid=IDForUsername($media->author_id);
$list = $db->prepare("SELECT * FROM takipci WHERE username=? order by id desc");
$list-> execute(array($gelenid));
$list = $list->fetchAll(PDO::FETCH_OBJ);
$sonsiparis = $list[0]->tarih;
$suan = date("Y-m-d H:i:s");
$fark=strtotime($suan)-strtotime($sonsiparis);
if($fark<=60){
echo "her 1 dakikada bir sipariş gönderebilirsiniz 60 saniye bekleyin..";
exit();
}
$query = $db->prepare("INSERT INTO takipci SET link = ?, username = ?, ip = ?");
$ekle = $query->execute(array($url, $gelenid, "$ip_adresi"));
$querya = $db->prepare("INSERT INTO islem_log SET username = ?, userid = ?, tarih = ?, cesit = ?");
$eklea = $querya->execute(array($url, $gelenid, date('d.m.Y'), "takipci"));
if ( $ekle ){
$last_id = $db->lastInsertId();
$ch = curl_init();
$siparis = array
(
'key' => 'ApiKEy',//api key buraya
'action' => 'add',
'service' => '292',//servis buraya
'link' => $url,
'quantity' => $limit//miktar buraya
);
curl_setopt($ch, CURLOPT_URL, "APiLink"); //api url buraya
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($siparis));
curl_setopt($ch, CURLOPT_ENCODING, 'gzip, deflate');
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
$response = curl_exec($ch);
$hi = json_decode($response, true);
if($hi['order']) {
$hata = 'Takipçi Siparişi Başarılı tahmini atılım süresi 60 daika altındadır.';
$guncelle=$db->prepare("UPDATE takipci SET siparisID=? WHERE link=?");
$guncelle->execute(array($hi['order'],$url));
}else {
$hata = print_r($hi);
}
}
?>
<?php if(!empty($hata)){ ?>
<?php echo $hata; ?>
<?php } ?>
<?php if(!empty($hi['order'])){ ?>
<?php } ?>



