Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "datapanel.php";
- //error_reporting(0);
- set_time_limit(0);
- ignore_user_abort(1);
- @apache_setenv('no-gzip', 1);
- @ini_set('zlib.output_compression', 0);
- @ini_set('implicit_flush', 1);
- if(isset($_POST['tambah'])){
- $user = $_POST['tambah'];
- $uu = json_decode(file_get_contents("https://www.instagram.com/".$user."/?__a=1"), 1);
- if($uu['user']['username']){
- $get3 = file_get_contents("datalimit.txt");
- if(!preg_match("#$user#", $get3)){
- if($_POST['jum'] < 30000){
- if(isset($_POST['per'])){
- $per = $_POST['per'];
- $myfile = fopen("datalimit.txt", "a") or die("Unable to open file!");
- $txt = $user."\n";
- fwrite($myfile, $txt);
- fclose($myfile);
- $jum = $_POST['jum'];
- $myfile = fopen("data/".$user.".jum", "w") or die("Unable to open file!");
- $txt = $jum;
- fwrite($myfile, $txt);
- fclose($myfile);
- $myfile = fopen("data/".$user.".per", "w") or die("Unable to open file!");
- $txt = $per;
- fwrite($myfile, $txt);
- fclose($myfile);
- $file = "user.html";
- $handle = fopen($file, 'a');
- fwrite($handle, "
- <tr>
- $user : $jum <br>
- </tr>");
- fclose($handle);
- header('Location: index.php?msg=1');
- }
- }
- else { header('Location: index.php?msg=2'); }
- }
- else { header('Location: index.php?msg=0'); }
- }
- else { header('Location: index.php?msg=3'); }
- }
- else{
- //header("Refresh:0");
- foreach(file('datalimit.txt') as $line) {
- $line = trim($line);
- $uu = file_get_contents("https://www.instagram.com/".$line."/?__a=1");
- $datas = json_decode($uu, 1);
- $id = $datas['user']['id'];
- $code = $datas['user']['media']['nodes'][0]['code'];
- $id2 = $datas['user']['media']['nodes'][0]['id'];
- $thumb = $datas['user']['media']['nodes'][0]['thumbnail_src'];
- $url = "https://www.instagram.com/p/".$code."/";
- $get3 = file_get_contents("history/".$line.".html");
- $jumlah = trim(file_get_contents("data/".$line.".jum"));
- if (!preg_match("#$url#", $get3))
- {
- //AskaEks_secure=4f112ce09a368219084aa9957074504b&username=fhf&password=fghfg
- for($i=0; $i<file_get_contents("data/".$line.".per"); $i++){
- echo $str = cookie("http://indofoll-media.com/login", null);
- $re = '<input type="hidden" name="AskaEks_secure" value="(.*)" style="display:none;" />';
- preg_match($re, $str, $matches);
- $tok = $matches[1];
- //AskaEks_secure=926ef4db7eefb8babc9a9457d3d4ef539&username=siidhamar&password=siidhamar8816s
- request("http://indofoll-media.com/login", "AskaEks_secure=$tok&username=$username1&password=$password1");
- flush(); ob_flush();
- request("http://indofoll-media.com//ajax", "AskaEks_secure=$tok&url=$url&jumlah=$jumlah");
- flush(); ob_flush();
- }
- $id = $line;
- $status = "Berhasil";
- echo $status."<br>";
- $myfile = fopen("history/".$line.".html", "a") or die("Unable to open file!");
- $txt = "
- <style>
- table, th, td {
- border: 1px solid black;
- border-collapse: collapse;
- }
- th, td {
- padding: 5px;
- text-align: left;
- }
- </style>
- <table style='width:100%'>
- <caption>$line</caption>
- <tr>
- <th>Id Foto</th>
- <th>Link Foto</th>
- <th>Foto</th>
- <th>Jumlah</th>
- <th>Status</th>
- </tr>
- <tr>
- <td>$mediaid</td>
- <td>$url</td>
- <td><img src='$thumb'alt='$line' style='width:304px;height:228px;'></td>
- <td>$jumlah</td>
- <td>$status</td>
- </tr> </table>";
- fwrite($myfile, $txt);
- fclose($myfile);
- flush(); ob_flush();
- }
- else{
- echo "done<br>";
- }
- }
- }
- function cookie($url, $post=null, $proxy=null) {
- $header = array("Host: indofoll-media.com",
- "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
- "Accept-Language: en-US,en;q=0.5",
- "Accept-Encoding: gzip, deflate",
- "Referer: http://indofoll-media.com/login",
- "Connection: keep-alive",
- );
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_URL => $url,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_COOKIEJAR => 'cookie.txt',
- CURLOPT_HTTPHEADER => $header,
- CURLOPT_HEADER =>1,
- CURLOPT_AUTOREFERER =>1,
- CURLOPT_ENCODING => '',
- CURLOPT_USERAGENT => "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
- ));
- if($proxy){
- curl_setopt($curl, CURLOPT_PROXY, $proxy);
- }
- if($post) {
- curl_setopt($curl, CURLOPT_POST, 1);
- curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
- }
- $data = curl_exec($curl);
- if(!$data) {
- return $er = 'error';
- }
- curl_close($curl);
- return $data;
- }
- function request($url, $post=null, $proxy=null) {
- $header = array("Host: indofoll-media.com",
- "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
- "Accept-Language: en-US,en;q=0.5",
- "Accept-Encoding: gzip, deflate",
- "Referer: http://indofoll-media.com/login",
- "Connection: keep-alive",
- );
- $curl = curl_init();
- curl_setopt_array($curl, array(
- CURLOPT_URL => $url,
- CURLOPT_RETURNTRANSFER => 1,
- CURLOPT_COOKIEFILE => 'cookie.txt',
- //CURLOPT_COOKIEJAR => 'cookie.txt',
- CURLOPT_HEADER => 1,
- CURLOPT_HTTPHEADER => $header,
- CURLOPT_AUTOREFERER =>1,
- CURLOPT_ENCODING => '',
- CURLOPT_USERAGENT => "User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:50.0) Gecko/20100101 Firefox/50.0"
- ));
- if($proxy){
- curl_setopt($curl, CURLOPT_PROXY, $proxy);
- }
- if($post) {
- curl_setopt($curl, CURLOPT_POST, 1);
- curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
- }
- $data = curl_exec($curl);
- if(!$data) {
- return $er = 'error';
- }
- curl_close($curl);
- return $data;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement