Advertisement
tobitaz

boto.php

Mar 11th, 2014 (edited)
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.22 KB | None | 0 0
  1.   <?php
  2. function tobitaz($alamat)
  3. {
  4. $jawa = curl_init("https://".$alamat);
  5.              curl_setopt($jawa, CURLOPT_RETURNTRANSFER, 1);
  6.              curl_setopt($jawa, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.6 (KHTML, like Gecko) Chrome/16.0.897.0 Safari/535.6');
  7.              $jowo =curl_exec($jawa);
  8.              curl_close($jawa);
  9.  
  10.         return $jowo;
  11. }
  12.  
  13.  
  14. $token = "letaktokenkokatsini";
  15.  
  16. //chek id
  17.  
  18.  
  19. $jadu = json_decode(tobitaz("graph.facebook.com/me/home?fields=id&access_token=".$token))->data;
  20.  
  21.  
  22.  
  23. $nod = json_decode(tobitaz("graph.facebook.com/me?access_token=".$token));
  24.  
  25. $fnod = file_get_contents("id.txt");
  26.  
  27. //cek id strripos
  28.  
  29.  
  30. foreach($jadu as $jagu)
  31. {
  32. $nos = strripos($fnod, $jagu->id);
  33.  
  34. if($nos === false)
  35. {
  36.  
  37.  
  38.  
  39. $kokop = array("jom guna noelectron .mobie .in", "jom try noelectron .mobie .in", "hai jom guna noelectron .mobie .in", "try jap noelectron .mobie .in");
  40.  
  41. $koawe = $kokop[array_rand($kokop)];
  42.  
  43.  
  44. tobitaz("graph.facebook.com/".$jagu->id."/comments?access_token=".$token."&method=post&message=".$koawe);
  45.  
  46.  
  47. //no double comment
  48.  
  49.  
  50.  
  51. $nodc = fopen("id.txt", "a+");
  52.               fwrite($nodc, $jagu->id."\n");
  53.               fclose($nodc);
  54.  
  55. }
  56.  
  57. }
  58. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement