Advertisement
tobitaz

adminlelaki.php

Oct 20th, 2013
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.85 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. //tuka komen tuk perempuan
  36.  
  37. $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");
  38.  
  39. $koawe = $kokop[array_rand($kokop)];
  40.  
  41. komenawek("https://graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe);
  42.  
  43.  
  44. //no double comment
  45.  
  46.  
  47.  
  48. $nodc = fopen("id.txt", "a+");
  49.               fwrite($nodc, $nod->id.$jagu[0]->id."\n");
  50.               fclose($nodc);
  51.  
  52. }
  53. elseif($jaw->gender == "male" && $nos === false)
  54. {
  55.  
  56. //tuka komen tu lelaki
  57.  
  58. $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");
  59.  
  60. $koawe = $kokop[array_rand($kokop)];
  61.  
  62. komenawek("https://graph.facebook.com/".$jagu[0]->id."/comments?access_token=".$token."&method=post&message=".$koawe);
  63.  
  64.  
  65. //no double comment
  66.  
  67.  
  68.  
  69. $nodc = fopen("id.txt", "a+");
  70.               fwrite($nodc, $nod->id.$jagu[0]->id."\n");
  71.               fclose($nodc);
  72.  
  73. }
  74.  
  75. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement