Begeni.phpnin kodlarini atar misn ? Ne yazik ki api hakkinda bilgim yok . Ben de yakin zamanda admin panelli bir script yapip paylasacagim o zaman sana daha cok yardim edebilirim
Kod:
<?php include"header.php";?>
<?php
$url = $_POST["link"];
$oku = file_get_contents('gonder/begeni.txt');
$oku = $oku+1;
$oku = file_get_contents('gonder/begeni.txt');
$oku = $oku+5;
file_put_contents('gonder/begeni.txt',$oku);
?>
<?php
if(isset($_POST['url'])){
class Api
{
public $api_url = 'api_url_gir'; // API URL
public $api_key = 'api_key_gir'; // Api Key adresine girip alabilirsiniz.
public function order($data) { // add order
$post = array_merge(array('key' => $this->api_key, 'action' => 'add'), $data);
return json_decode($this->connect($post));
}
public function status($order_id) { // get order status
return json_decode($this->connect(array(
'key' => $this->api_key,
'action' => 'status',
'order' => $order_id,
)));
}
private function connect($post) {
$_post = Array();
if (is_array($post)) {
foreach ($post as $name => $value) {
$_post[] = $name.'='.urlencode($value);
}
}
$ch = curl_init($this->api_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_FOLLOW********, true);
if (is_array($post)) {
curl_setopt($ch, CURLOPT_POSTFIELDS, join('&', $_post));
}
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
$result = curl_exec($ch);
print_r($result);
if (curl_errno($ch) != 0 && empty($result)) {
$result = false;
}
curl_close($ch);
return $result;
}
}
?>
<?
$url = htmlspecialchars(trim(addslashes($_POST['url'])));
$api = New Api();
$order = $api->order(array('service' => 2, 'link' => $url, 'quantity' => 5)); # Normal siparis gönderir ?>
<**** http-equiv="*******" content="0;URL=https://araclar.tk/gecis.php"> <?
$status = $api->status(10); //Siparis id'ye göre durumunu sorgular.
}
?>
<!-- Sidebar Navigation end-->
<style type="text/css">
body
{
background-color:#6a008b;
background-image:url('assets/background/boş.gif');
background-repeat:no-repeat;
}
</style>
<br><br><br>
<div align="center"><p> <h2><strong><span style="color:white;">İnstagram Şifresiz Beğeni</span></strong></p> </div>
</div>
<p class="mb-5"><form method="post" action="">
<center><b><span style="color:white;"><label>Fotoğraf Url Giriniz</label></span></b></center>
<center>
</span><input class="form-control" type="text" name="url" id="url" required placeholder="Foto Url Giriniz" autocomplete="on"><br>
<input class="btn btn-primary btn-lg rounded-pill portfolio-modal-dismiss" type="submit" value="Beğeni Gönder" title="Beğeni Gönder"> <br><br>
<img src="" alt="">
</div>
</div>
</div>
</div>
<?php include('footer.php');?>