autolikeFB


SUBMITTED BY: Guest

DATE: March 14, 2014, 8:53 a.m.

FORMAT: Text only

SIZE: 9.4 kB

HITS: 2072

  1. <?php
  2. error_reporting(0);
  3. ##############SETTING BOT####################
  4. $bot['like'] = true; //Bot Like
  5. $bot['ck_k'] = true; // Comment
  6. $bot['ck_u'] = true; // General Comment
  7. $bot['time'] = true; // Date
  8. $bot['aces'] = "USE YOUR TOKEN IN HERE !! "; // YOUR TOKEN
  9. ##############END OF SETTING#############
  10. com_like($cl,$ck,$cu,$tm,$access_token);
  11. com_like($bot['like'],$bot['ck_k'],$bot['ck_u'],$bot['time'],$bot['aces']);
  12. function cmn($text,$ck,$cu){
  13. ##########umum
  14. $cmn_umum = array("Hello I like Your Stat :D ",
  15. "This is awesome Quote i like it ;) ",
  16. "Hello <name> <aku> always like your post.. ",
  17. "ωσω?? Ļιкє тнιѕ <name>, ",
  18. "Iam coming <name> .. please dont angry again :P.. ",
  19. "<name> Like Back Oke :D ",
  20. "<name> How Are you ? ",
  21. "Dont Sad :) <name> ",
  22. "I will back <name> on your stat ;) тнχ",
  23. "This is Robot ? <name> ●●●ωωкωкωкωк ?",
  24. "Dont Cry <name>, hope you happy anytime ",
  25. "Hello <name> dont forget to join at madleets ",
  26. "Iam Mad member, How about you ? <name>●●",
  27. "Iam comming again Bro <name> :)",
  28. "<name> Like + Comment Back Ok ! (у) ",
  29. "Whats that ? :O <name> ",
  30. "Gud Post ;) ",
  31. "Dont Sad Bro <name> :) ",
  32. "Happy Birthday Bro <name> lol haha ",
  33. "<name> Ļιкє+¢σммєηт ѕυ¢¢єđєđ :) ",
  34. "<name> time for Ļιкє+¢σммєηт ●● :đ",
  35. "<name> Nice POST and i will like it ;) ",
  36. "нαι <name> ؟ ",
  37. " Assalamualaikum <name>... :) ",
  38. "What :O ..!! <name> ",
  39. );
  40. //comment automatically depending on the situation
  41. $comment = array(
  42. array(
  43. array("Night",
  44. "Sleep",
  45. "where",
  46. ),
  47. array("Dont SLeep Please :( ",
  48. "anywhere :) ",
  49. "you want to sleep ? <name> ?",
  50. )
  51. ),
  52. array(
  53. array("Hope",
  54. "hopefully",
  55. "amin",
  56. ),
  57. array("αмιη <name>●● ",
  58. "why <name>●?",
  59. "Allah Bless you <name>",
  60. )
  61. ),
  62. array(
  63. array("morning",
  64. "goodmorning",
  65. "m0rning",
  66. "mornng",
  67. "Good morning",
  68. "m0rn1ng",
  69. "page",
  70. ),
  71. array("yes morning bro <name> ",
  72. "good morning to <name>",
  73. "Thank you <name>",
  74. )
  75. ),
  76. array(
  77. array("night",
  78. "good night",
  79. "godninght",
  80. "ni9ht",
  81. ),
  82. array("Good night <name> ",
  83. "нι <name> Sweet dream ",
  84. "yes night <name> dont forget to pray?",
  85. )
  86. ),
  87. array(
  88. array("sweet child of mine",
  89. "my heart is broken",
  90. ),
  91. array("who sings ? i think Obama lol :v hahah ",
  92. )
  93. ),
  94. array(
  95. array("sick",
  96. "damn",
  97. "hurt",
  98. ),
  99. array("dont sad <name> pray will make you happy ",
  100. " hope Allah bless you :) ",
  101. )
  102. ),
  103. array(
  104. array("God",
  105. "Allah",
  106. "ya allah",
  107. ),
  108. array("Dont Sad Bro <name> Allah bless you anywhere",
  109. )
  110. ),
  111. array(
  112. array("cool",
  113. "handsome",
  114. "rock",
  115. "beautiful",
  116. ),
  117. array("yes iam very cool <name> ",
  118. "you say <aku> handsome ? Thank you :) ",
  119. )
  120. ),
  121. array(
  122. array("promise",
  123. "InsyaAllah",
  124. ),
  125. array("dont promise <name> i believe you ",
  126. )
  127. ),
  128. array(
  129. array("Hot",
  130. "very hot",
  131. "weather hot",
  132. "h0t",
  133. ),
  134. array("swimming bro <name> lol :v ",
  135. )
  136. ),
  137. array(
  138. array("fasting",
  139. "imsak",
  140. "sahur",
  141. "iftar",
  142. "waiting afternoon",
  143. ),
  144. array("Masya Allah <name>",
  145. "awesome <name> :) ",
  146. "Good Job <name> :D ",
  147. )
  148. ),
  149. );
  150. $komentar = '';
  151. $cr_kondisi=false;
  152. foreach($comment as $cx){
  153. foreach($cx[0] as $ct){
  154. if(ereg($ct,$text)){
  155. $cr_kondisi=true;
  156. $komentar = $cx[1][rand(0,count($cx[1]) - 1)];
  157. }
  158. }
  159. }
  160. if($cr_kondisi==true && $ck==true){
  161. return $komentar;
  162. }else{
  163. if($cu==true){ return $cmn_umum[rand(0,count($cmn_umum) - 1)]; }
  164. }
  165. }
  166. #######################################
  167. function com_like($cl,$ck,$cu,$tm,$access_token){
  168. $beranda = json_decode(httphit("https://graph.facebook.com/me/home?fields=id,from,type,message&limit=100&access_token=".$access_token))->data;
  169. $saya_cr = json_decode(httphit("https://graph.facebook.com/me?access_token=".$access_token));
  170. if($beranda){
  171. foreach($beranda as $cr_post){
  172. if(!ereg($saya_cr->id,$cr_post->id)){
  173. $log_cr = simlog($cr_post->id);
  174. if($log_cr==true){
  175. if($ck==true){
  176. $url_ck = cmn($cr_post->message,$ck,$cu);
  177. $url_ck = str_replace("<name>",$cr_post->from->name,$url_ck);
  178. $url_ck = str_replace("<aku>",$saya_cr->first_name,$url_ck);
  179. if($tm==true){ $url_ck = $url_ck.wkthit().kecepatan().konter() ; }
  180. $url_ck = urlencode($url_ck);
  181. if($ck==true OR $cu==true){
  182. httphit("https://graph.facebook.com/".$cr_post->id."/comments?method=POST&message=".$url_ck."&access_token=".$access_token);
  183. }
  184. if($cl==true){
  185. httphit("https://graph.facebook.com/".$cr_post->id."/likes?method=POST&access_token=".$access_token);
  186. }
  187. }
  188. }
  189. }
  190. }
  191. }
  192. }
  193. #######################################
  194. function httphit($url){
  195. return file_get_contents($url);
  196. }
  197. function kecepatan() {
  198. $waktu="
  199. ";
  200. $gentime = microtime();
  201. $gentime = explode(' ',$gentime);
  202. $gentime = $gentime[0];
  203. $pg_end = $gentime;
  204. $totaltime = ($pg_end - $pg_start);
  205. $showtime = number_format($totaltime, 1, '.', '');
  206. return "$waktu ★ Comment Late $showtime Second ";
  207. }
  208. function konter() {
  209. $sempak="
  210. ";
  211. $filename = 'hitcount.txt';
  212. $handle = fopen($filename, 'r');
  213. $hits = trim(fgets($handle)) + 1;
  214. fclose($handle);
  215. $handle = fopen($filename, 'w');
  216. fwrite($handle, $hits);
  217. fclose($handle);
  218. return "$sempak ★ Sequence $hits Complete :ᴅ ..!!";
  219. }
  220. function wkthit(){
  221. $ent="
  222. ";
  223. $hari=gmdate("D", time()+60*60*7);
  224. if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Sunday"; }
  225. if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Monday"; }
  226. if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Tuesday"; }
  227. if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Wednesday"; }
  228. if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Thursday"; }
  229. if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Friday"; }
  230. if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Saturday"; }
  231. $jam="Time : ".gmdate("g:i a", time()+60*60*7);
  232. return $ent.$ent."★ ".$hari." - Date : ".gmdate("j - m - Y", time()+60*60*7)." - ".$jam." $showtime";
  233. }
  234. function simlog($cr_id) {
  235. $fname = "cr_log.txt";
  236. $lihatiplist=fopen ($fname, "rb");
  237. $text='';
  238. if($lihatiplist){
  239. $spasipol = "";
  240. do {
  241. $barislistip = fread($lihatiplist, 512);
  242. if(strlen($barislistip) == 0){ break; }
  243. $spasipol .= $barislistip;
  244. } while(true);
  245. fclose ($lihatiplist);
  246. for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",$spasipol);}
  247. $text=$text.$spasipol;
  248. }else{$text="";}
  249. if(ereg($cr_id,$text)){
  250. return false;
  251. }else{
  252. $text = $text.$cr_id;
  253. $w_file=@fopen($fname,"w") or bberr();
  254. if($w_file) {
  255. @fputs($w_file,$text);
  256. @fclose($w_file);
  257. }
  258. return true;
  259. }
  260. }
  261. ?>

comments powered by Disqus