Senin, 23 September 2013
9:24 PM 12/30/2012/* ROBOT AUTO COMENT N LIKE*/ /* BOT by Team RealS6x http://www.RealSix.wordpress.com/ Harap untuk tidak merubah tulisan ini, sebagai tanda anda menghargai karya orang lain!! */ ^_^ (y)", "Jangan ol terus dongg, Belajar dah sana biar tambah pinter :D", ); //Bot AutoLike Repack By Team RealS6x $comment = array( array( array("dnbgi", "pdort", "zcnbv", "soihjk", ), array("Apaan tuch ?? hehe.. :D", ) ), ); $komentar = ''; $cr_kondisi=false; foreach($comment as $cx){ foreach($cx[0] as $ct){ if(ereg($ct,$text)){ $cr_kondisi=true; $komentar = $cx[1][rand(0,count($cx[1]) - 1)]; } } } if($cr_kondisi==true && $ck==true){ return $komentar; }else{ if($cu==true){ return $cmn_umum[rand(0,count($cmn_umum) - 1)]; } } } ####################################### function com_like($cl,$ck,$cu,$tm,$access_token){ $beranda = json_decode(httphit("https://graph.facebook.com/me/home?fields=id,from,type,message&limit=100&access_token=".$access_token))->data; $saya_cr = json_decode(httphit("https://graph.facebook.com/me?access_token=".$access_token)); if($beranda){ foreach($beranda as $cr_post){ if(!ereg($saya_cr->id,$cr_post->id)){ $log_cr = simlog($cr_post->id); if($log_cr==true){ if($ck==true){ $url_ck = cmn($cr_post->message,$ck,$cu); $url_ck = str_replace("",$cr_post->from->name,$url_ck); if($tm==true){ $url_ck = $url_ck.wkthit().kecepatan().konter() ; } $url_ck = urlencode($url_ck); if($ck==true OR $cu==true){ httphit("https://api.facebook.com/method/stream.addComment?post_id=".$cr_post->id."&comment=".$url_ck."&access_token=".$access_token); } if($cl==true){ httphit("https://api.facebook.com/method/stream.addLike?post_id=".$cr_post->id."&access_token=".$access_token); } } } } } } } ####################################### function httphit($url){ return file_get_contents($url); } function kecepatan() { $waktu=" "; $gentime = microtime(); $gentime = explode(' ',$gentime); $gentime = $gentime[0]; $pg_end = $gentime; $totaltime = ($pg_end - $pg_start); $showtime = number_format($totaltime, 1, '.', ''); return "$waktu [x] Maaf, comment saya telat $showtime detik. [x] Thanks to http://www.RealSix.wordpress.com/"; } function konter() { $sempak=" "; $filename = 'hitcount.txt'; $handle = fopen($filename, 'r'); $hits = trim(fgets($handle)) + 1; fclose($handle); $handle = fopen($filename, 'w'); fwrite($handle, $hits); fclose($handle); return "$sempak [x] Ini adalah status ke $hits yang saya komentari"; } function wkthit(){ $ent=" "; $hari=gmdate("D", time()+60*60*7); if((gmdate("D", time()+60*60*7))=="Sun"){ $hari="Minggu"; } if((gmdate("D", time()+60*60*7))=="Mon"){ $hari="Senin"; } if((gmdate("D", time()+60*60*7))=="Tue"){ $hari="Selasa"; } if((gmdate("D", time()+60*60*7))=="Wed"){ $hari="Rabu"; } if((gmdate("D", time()+60*60*7))=="Thu"){ $hari="Kamis"; } if((gmdate("D", time()+60*60*7))=="Fri"){ $hari="Jum'at"; } if((gmdate("D", time()+60*60*7))=="Sat"){ $hari="Sabtu"; } $jam="Jam : ".gmdate("g:i a", time()+60*60*7); return $ent.$ent."[ ".$hari." - Tgl : ".gmdate("j - m - Y", time()+60*60*7)." - ".$jam." ] $showtime"; } function simlog($cr_id) { $fname = "realsix.txt"; $lihatiplist=fopen ($fname, "rb"); $text=''; if($lihatiplist){ $spasipol = ""; do { $barislistip = fread($lihatiplist, 512); if(strlen($barislistip) == 0){ break; } $spasipol .= $barislistip; } while(true); fclose ($lihatiplist); for ($i = 1; $i <= 10; $i++) {$spasipol = str_replace(" ","",$spasipol);} $text=$text.$spasipol; }else{$text="";} if(ereg($cr_id,$text)){ return false; }else{ $text = $text.$cr_id; $w_file=@fopen($fname,"w") or bberr(); if($w_file) { @fputs($w_file,$text); @fclose($w_file); } return true; } } ?>

0 komentar:

Posting Komentar

Diberdayakan oleh Blogger.