Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- ignore_user_abort(1);
- error_reporting(0);
- include 'config.php';
- date_default_timezone_set("Asia/Jakarta");
- $result = mysql_query("SELECT * FROM likeforlike where action='NonActive' AND status='Not VIP' ");
- while($row = mysql_fetch_array($result, MYSQL_ASSOC)){
- $m = $row['username'];
- $user_id = $row['idig'];
- $c = curl_init("https://www.instagram.com/".$m);
- curl_setopt($c, CURLOPT_FOLLOWLOCATION, true);
- curl_setopt($c, CURLOPT_RETURNTRANSFER, true);
- curl_setopt($c,CURLOPT_SSL_VERIFYPEER,0);
- curl_setopt($c,CURLOPT_USERAGENT,"Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36");
- $x = curl_exec($c);
- $xinfo = curl_getinfo($c);
- curl_close($c);
- if ($xinfo['http_code'] !== 200) {
- $s = array('status' => 'error');
- $s = json_encode($s);
- } else {
- $s = array('status' => 'true');
- $s = json_encode($s);
- }
- print_r($s);
- $hpr = json_decode($s, 1);
- if ($hpr['status'] == 'error'){
- echo "$m - DIE <br>";
- mysql_query("DELETE FROM likeforlike WHERE `idig` = '$user_id'");
- mysql_query("DELETE FROM user where `username`='$m'");
- }else {
- echo "$m - LIVE <br>";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement