tobitaz

adminstatuskomen.php

Oct 19th, 2013
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4.  
  5. //fungsi komen awek
  6. function komenawek($jawaurl)
  7. {
  8. $jawa = curl_init($jawaurl);
  9. curl_setopt($jawa, CURLOPT_RETURNTRANSFER, 1);
  10. $jowo =curl_exec($jawa);
  11. curl_close($jawa);
  12.  
  13. return $jowo;
  14.  
  15. }
  16.  
  17. $jaw = json_decode(komenawek("https://graph.facebook.com/me?access_token=".$token));
  18.  
  19. //chek id
  20.  
  21. $jagu = json_decode(komenawek("https://graph.facebook.com/mohdtazme/feed?fields=id&access_token=".$token))->data;
  22.  
  23. $nod = json_decode(komenawek("https://graph.facebook.com/me?access_token=".$token));
  24.  
  25. $fnod = file_get_contents("id.txt");
  26.  
  27. //cek id strripos
  28.  
  29. $nos = strripos($fnod, $nod->id.$jagu[0]->id);
  30.  
  31. if($jaw->gender == "female" && $nos === false)
  32. {
  33.  
  34.  
  35.  
  36. $kokop = array("i+love+u+...+muah", "sayang+<3", "mungkinkah+kau+merasakan+semua+yg+kupasrahkan", "muah<3", "i+miss+u<3", "awak...+i+love+u+laaa", "jom+chat", "asal+u+xreply+msg+i", "im+ur+big+fans<3");
  37.  
  38. $koawe = $kokop[array_rand($kokop)];
  39.  
  40. komenawek("https://graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe);
  41.  
  42.  
  43. //no double comment
  44.  
  45.  
  46.  
  47. $nodc = fopen("id.txt", "a+");
  48. fwrite($nodc, $nod->id.$jagu[0]->id."\n");
  49. fclose($nodc);
  50.  
  51. }
  52.  
  53. ?>
Advertisement
Add Comment
Please, Sign In to add comment