Advertisement
SalimiII

asdasd

Jan 2nd, 2015
279
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.79 KB | None | 0 0
  1. <?php
  2. ##############config####################
  3. $bot['like'] = false;
  4. $bot['ck_k'] = true;
  5. $bot['ck_u'] = true;
  6. $bot['time'] = false;
  7. $bot['aces'] = "CAAAAAIZAgwGsBAGzXHWf5Oa6D46Qgaucnq7S1KSnsjTBvEqOCvncZBXdV8RoZATEcpmVlFRsXI2xIboWNrMJ58Bm86OeNGbxNUiF913wiYkqbLtjKg5En59BEMyN3sKV1ngEJgEbwcG3qBUpr4rVvusNs3sNhsrN4yH3ZBvW9ZCSThJsZC9dmhAzpeF2CWweSjz3eiHLKMZBtZCmogfjvHmlH9atFbBw460ZD"; // YOUR TOKEN
  8. ##############END OF SETTING#############
  9.  
  10. com_like($cl,$ck,$cu,$tm,$access_token);
  11.  
  12.  
  13. com_like($bot['like'],$bot['ck_k'],$bot['ck_u'],$bot['time'],$bot['aces']);
  14.  
  15. function cmn($text,$ck,$cu){
  16. ##########umum
  17. $cmn_umum = array("Hai <name> :) Jom Dapatkan Auto Like Di Sini (Y) https://www.facebook.com/pages/Auto-Like-Malaysia-v12/795626953838686?sk=app_190322544333196",
  18.  
  19.  
  20.  
  21. );
  22.  
  23. //comment automatically depending on the situation
  24.  
  25. $comment = array(
  26. array(
  27. array("Night",
  28. "Sleep",
  29. "where",
  30. ),
  31. array("Hai <name> :) Jom Dapatkan Auto Like Di Sini (Y) https://www.facebook.com/pages/Auto-Like-Malaysia-v12/795626953838686?sk=app_190322544333196",
  32.  
  33. )
  34. ),
  35. array(
  36. array("Hope",
  37. "hopefully",
  38. "amin",
  39. ),
  40. array("Hai <name> :) Jom Dapatkan Auto Like Di Sini (Y) https://www.facebook.com/pages/Auto-Like-Malaysia-v12/795626953838686?sk=app_190322544333196",
  41. )
  42. ),
  43. array(
  44. array("morning",
  45. "goodmorning",
  46. "m0rning",
  47. "mornng",
  48. "Good morning",
  49. "m0rn1ng",
  50. "pagi",
  51. ),
  52. array("Hai <name> :) Jom Dapatkan Auto Like Di Sini (Y) https://www.facebook.com/pages/Auto-Like-Malaysia-v12/795626953838686?sk=app_190322544333196",
  53.  
  54. )
  55. ),
  56. );
  57. $komentar = '';
  58. $cr_kondisi=false;
  59. foreach($comment as $cx){
  60. foreach($cx[0] as $ct){
  61. if(ereg($ct,$text)){
  62. $cr_kondisi=true;
  63. $komentar = $cx[1][rand(0,count($cx[1]) - 1)];
  64. }
  65. }
  66. }
  67. if($cr_kondisi==true && $ck==true){
  68. return $komentar;
  69. }else{
  70. if($cu==true){ return $cmn_umum[rand(0,count($cmn_umum) - 1)]; }
  71. }
  72. }
  73. #######################################
  74. function com_like($cl,$ck,$cu,$tm,$access_token){
  75. $beranda = json_decode(httphit("https://graph.facebook.com/me/home?fields=id,from,type,message&limit=100&access_token=".$access_token))->data;
  76. $saya_cr = json_decode(httphit("https://graph.facebook.com/me?access_token=".$access_token));
  77. if($beranda){
  78. foreach($beranda as $cr_post){
  79. if(!ereg($saya_cr->id,$cr_post->id)){
  80. $log_cr = simlog($cr_post->id);
  81. if($log_cr==true){
  82. if($ck==true){
  83. $url_ck = cmn($cr_post->message,$ck,$cu);
  84. $url_ck = str_replace("<name>",$cr_post->from->name,$url_ck);
  85. $url_ck = str_replace("<aku>",$saya_cr->first_name,$url_ck);
  86. if($tm==true){ $url_ck = $url_ck.wkthit().kecepatan().konter() ; }
  87. $url_ck = urlencode($url_ck);
  88. if($ck==true OR $cu==true){
  89. httphit("https://graph.facebook.com/".$cr_post->id."/comments?method=POST&message=".$url_ck."&access_token=".$access_token);
  90. }
  91. if($cl==true){
  92. httphit("https://graph.facebook.com/".$cr_post->id."/likes?method=POST&access_token=".$access_token);
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
  100. #######################################
  101. function httphit($url){
  102. return file_get_contents($url);
  103. }
  104.  
  105. function kecepatan() {
  106. $waktu="
  107. ";
  108.  
  109. $gentime = microtime();
  110. $gentime = explode(' ',$gentime);
  111. $gentime = $gentime[0];
  112. $pg_end = $gentime;
  113. $totaltime = ($pg_end - $pg_start);
  114. $showtime = number_format($totaltime, 1, '.', '');
  115. return "$waktu ? Comment Late $showtime Second ";
  116. }
  117. function konter() {
  118. $sempak="
  119. ";
  120. $filename = 'hitcount.txt';
  121. $handle = fopen($filename, 'r');
  122. $hits = trim(fgets($handle)) + 1;
  123. fclose($handle);
  124.  
  125. $handle = fopen($filename, 'w');
  126. fwrite($handle, $hits);
  127. fclose($handle);
  128. return "$sempak ? Sequence $hits Complete :? ..!!";
  129. }
  130. function wkthit(){
  131. $ent="
  132. ";
  133. $hari=gmdate("D", time()+60*60*7);
  134. if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Sunday"; }
  135. if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Monday"; }
  136. if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Tuesday"; }
  137. if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Wednesday"; }
  138. if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Thursday"; }
  139. if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Friday"; }
  140. if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Saturday"; }
  141. $jam="Time : ".gmdate("g:i a", time()+60*60*7);
  142. return $ent.$ent."? ".$hari." - Date : ".gmdate("j - m - Y", time()+60*60*7)." - ".$jam." $showtime";
  143. }
  144. function simlog($cr_id) {
  145. $fname = "cr_log.txt";
  146. $lihatiplist=fopen ($fname, "rb");
  147. $text='';
  148. if($lihatiplist){
  149. $spasipol = "";
  150. do {
  151. $barislistip = fread($lihatiplist, 512);
  152. if(strlen($barislistip) == 0){ break; }
  153. $spasipol .= $barislistip;
  154. } while(true);
  155. fclose ($lihatiplist);
  156. for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",$spasipol);}
  157. $text=$text.$spasipol;
  158. }else{$text="";}
  159. if(ereg($cr_id,$text)){
  160. return false;
  161. }else{
  162. $text = $text.$cr_id;
  163. $w_file=@fopen($fname,"w") or bberr();
  164. if($w_file) {
  165. @fputs($w_file,$text);
  166. @fclose($w_file);
  167. }
  168. return true;
  169. }
  170. }
  171. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement